:root {
  --bg-a: #fff9fc;
  --bg-b: #f2f7ff;
  --panel: rgba(255,255,255,0.96);
  --text: #25233b;
  --muted: #7c7892;
  --border: #e7e7f4;
  --shadow: 0 6px 18px rgba(125, 132, 186, 0.08);
  --pink: #ff79c7;
  --purple: #9779ff;
  --blue-soft: #e8f0ff;
  --green-soft: #e4f7ee;
  --orange-soft: #fff0dc;
  --gray-soft: #f3f5fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 204, 233, .4), transparent 22%),
    radial-gradient(circle at 100% 0%, rgba(204, 225, 255, .45), transparent 26%),
    linear-gradient(180deg, var(--bg-a), var(--bg-b));
}

.wrap {
  width: min(100%, 2800px);
  margin: 0 auto;
  padding: 8px clamp(10px, 1.5vw, 28px) 10px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.overview {
  padding: 8px 10px;
  margin-bottom: 6px;
}

.overview-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 9px;
}

.overview-intro {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.overview-intro .overview-emoji {
  font-size: 0.82rem;
  line-height: 1;
}

.overview-intro h2 {
  font-size: 0.64rem;
}

.overview-hint {
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
  margin-left: 2px;
}

h1, h2, p { margin: 0; }
h1 { font-size: .95rem; line-height: 1.2; }
h2 { font-size: .78rem; font-weight: 800; line-height: 1.2; }
p { color: var(--muted); font-size: .68rem; line-height: 1.2; }

.overview-weeks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.overview-week {
  background: rgba(255,255,255,.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 6px;
  min-width: 0;
}

.overview-week-title strong {
  display: block;
  font-size: .62rem;
  line-height: 1.15;
}

.overview-week-range {
  display: inline;
  font-size: .56rem;
  color: var(--muted);
  line-height: 1.15;
  margin-left: 4px;
}

.overview-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
}

.overview-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: var(--green-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 3px 2px;
  text-align: center;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.invitation-pill:hover {
  border-color: rgba(151, 121, 255, 0.45);
  transform: translateY(-1px);
}

.overview-pill.today {
  border-color: rgba(255, 121, 199, .5);
}

.overview-pill.quiet {
  background: var(--gray-soft);
}

.overview-pill.busy {
  background: #d4f3e4;
}

.pill-dow {
  font-size: .5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.pill-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: .72rem;
  line-height: 1;
}

.pill-event-badge {
  font-size: .58rem;
  line-height: 1;
}

.pill-count {
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
}

.pill-of {
  font-size: .58rem;
  font-weight: 700;
  color: var(--muted);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 6px;
  align-items: start;
}

.person-card {
  display: grid;
  gap: 4px;
  padding: 6px;
  min-width: 0;
}

.person-head {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.person-info {
  min-width: 0;
}

.person-name-row {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.title-badge {
  font-size: .72rem;
  line-height: 1;
  flex-shrink: 0;
}

.person-points {
  font-size: .58rem;
  font-weight: 800;
  color: var(--muted);
  line-height: 1.1;
}

.person-points.negative {
  color: #d45d7a;
}

.person-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.head-action { margin: 0; }

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .68rem;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.person-name {
  font-size: .8rem;
  font-weight: 900;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.head-pattern { margin: 0; }

.week-main {
  min-width: 0;
}

.week-future {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.future-group {
  min-width: 0;
}

.future-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
  margin-bottom: 2px;
}

.future-head form { margin: 0; }

.future-tag {
  font-size: .56rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
}

.day-form {
  margin: 0;
  min-width: 0;
  position: relative;
  overflow: visible;
}

.day-button {
  width: 100%;
  position: relative;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: transform .1s ease, box-shadow .1s ease;
  color: var(--text);
  background: white;
}

.day-emoji {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.day-reported-flag {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  font-size: .55rem;
  line-height: 1;
  z-index: 3;
  pointer-events: none;
}

.day-button.future .day-reported-flag {
  font-size: .46rem;
}

.day-countdown-float {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 2px 6px;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(110, 120, 175, 0.18);
  font-size: .46rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(50, 56, 90, 0.16);
  text-align: center;
}

.day-button.main .day-countdown-float {
  font-size: .5rem;
}

.day-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(110, 120, 175, .1);
}

.day-button.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 52px;
  padding: 3px 2px 4px;
  gap: 1px;
}

.day-button.future {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 2px 1px 3px;
  gap: 0;
  border-radius: 6px;
}

.day-meta {
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--muted);
}

.day-button.main .day-meta {
  font-size: .58rem;
  color: var(--text);
}

.day-status {
  font-weight: 800;
  line-height: 1;
  font-size: .58rem;
}

.day-emoji {
  font-size: .95rem;
  line-height: 1;
}

.day-button.main .day-emoji { font-size: 1.05rem; }
.day-button.future .day-emoji { font-size: .82rem; }

.day-button.office { background: var(--green-soft); }
.day-button.remote { background: var(--blue-soft); }
.day-button.out { background: var(--orange-soft); }
.day-button.unsure { background: var(--gray-soft); }
.day-button.pattern { border-color: rgba(151, 121, 255, .35); }
.day-button.today { border-color: rgba(255, 121, 199, .65); }
.day-button.locked { box-shadow: inset 0 0 0 2px rgba(73, 190, 142, .55); }
.day-button.past {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}
.day-button.past:hover { transform: none; }


button {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 6px 14px rgba(151, 121, 255, .18);
}

.pattern-btn {
  background: #eef1fb;
  color: var(--muted);
  box-shadow: none;
  font-size: .78rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 5px;
  line-height: 1;
}

.pattern-btn:hover {
  background: #e4e9f8;
  color: var(--text);
}

.pattern-btn-tiny {
  width: 18px;
  height: 18px;
  font-size: .68rem;
  border-radius: 4px;
}

.report-btn {
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: .68rem;
  line-height: 1;
  border-radius: 5px;
  background: #fff0f2;
  color: #d45d7a;
  box-shadow: none;
}

.report-btn:hover {
  background: #ffe0e6;
}

.rules-panel {
  margin-top: 6px;
  padding: 0;
  overflow: hidden;
}

.rules-panel > summary {
  cursor: pointer;
  font-weight: 800;
  font-size: .78rem;
  padding: 8px 12px;
  list-style-position: inside;
}

.rules-list {
  margin: 0;
  padding: 0 12px 12px 28px;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.45;
}

.rules-list li + li {
  margin-top: 4px;
}

.manage-panel {
  margin-top: 6px;
  padding: 0;
  overflow: hidden;
}

.manage-panel > summary {
  cursor: pointer;
  font-weight: 800;
  font-size: .78rem;
  padding: 8px 12px;
  list-style-position: inside;
}

.manage-body {
  padding: 0 12px 12px;
  display: grid;
  gap: 10px;
}

.add-form {
  display: grid;
  grid-template-columns: minmax(0, 220px) auto;
  gap: 8px;
}

input, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: rgba(255,255,255,.92);
  color: var(--text);
}

.manage-list { display: grid; gap: 8px; }

.manage-list details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  padding: 8px 10px;
}

.manage-list summary {
  cursor: pointer;
  font-weight: 800;
  font-size: .88rem;
}

.manage-inner {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.rename-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.pattern-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.pattern-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

button.danger { background: linear-gradient(135deg, #ff8da8, #ff5f89); }

.celebration-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

#celebration-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.celebration-toast {
  position: fixed;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 280px);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(70, 78, 130, 0.18);
  pointer-events: auto;
  cursor: pointer;
  animation: celebration-slide-in 0.35s ease-out;
  z-index: 10000;
}

.celebration-toast.queen {
  border-color: rgba(255, 201, 107, 0.75);
  box-shadow: 0 12px 32px rgba(255, 170, 90, 0.22);
}

.celebration-emoji {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.celebration-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.celebration-headline {
  font-size: .82rem;
  line-height: 1.2;
}

.celebration-message {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
}

@keyframes celebration-slide-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.break-confirm-root {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
}

.break-confirm-root[hidden] {
  display: none !important;
}

.break-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 22, 40, 0.42);
}

.break-confirm-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 300px);
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(45, 40, 80, 0.22);
}

.break-confirm-title {
  margin: 0 0 6px;
  font-size: .92rem;
  font-weight: 900;
}

.break-confirm-copy {
  margin: 0 0 12px;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.35;
}

.break-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

.break-confirm-cancel {
  background: #eef1fb;
  color: var(--muted);
  box-shadow: none;
}

.break-confirm-ok {
  background: linear-gradient(135deg, #d45d7a, #e87890);
}

.invite-modal-root {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 16px;
}

.invite-modal-root[hidden] {
  display: none !important;
}

.invite-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 22, 40, 0.42);
}

.invite-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(88vh, 640px);
  overflow: auto;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(45, 40, 80, 0.22);
}

.invite-modal-title {
  margin: 0 0 4px;
  font-size: .95rem;
  font-weight: 900;
}

.invite-modal-subtitle {
  margin: 0 0 12px;
  font-size: .76rem;
  color: var(--muted);
}

.invite-modal-body {
  margin-bottom: 10px;
}

.invite-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.invite-modal-actions-inline {
  margin-top: 10px;
}

.invite-modal-cancel {
  background: #eef1fb;
  color: var(--muted);
  box-shadow: none;
}

.invite-modal-danger {
  background: linear-gradient(135deg, #d45d7a, #e87890);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.invite-create-form {
  display: grid;
  gap: 10px;
}

.invite-create-form label {
  display: grid;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
}

.invite-create-form input,
.invite-create-form select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.invite-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #faf9fd;
}

.invite-member-row.attending {
  background: #e8f7ef;
  border-color: #b8e6cc;
}

.invite-member-row.denounced {
  background: #fff0f3;
  border-color: #ffd0dc;
}

.invite-denounce-btn {
  border: 0;
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff5f7;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.invite-denounce-btn:hover {
  background: #ffe8ee;
}

.invite-create-submit {
  margin-top: 4px;
  background: linear-gradient(135deg, #9779ff, #ff79c7);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.invite-member-list {
  display: grid;
  gap: 6px;
}

.invite-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #faf9fd;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
}

.invite-member.attending {
  background: #e8f7ef;
  border-color: #b8e6cc;
}

.invite-member-name {
  color: #2d2942;
  font-weight: 800;
  font-size: .84rem;
}

.invite-member-state {
  font-size: .7rem;
  font-weight: 700;
  color: var(--muted);
}

.invite-member.attending .invite-member-state {
  color: #2f8f57;
}

.invite-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff6f0;
  border: 1px solid #ffe0c8;
  font-size: .72rem;
  color: #8a5d3c;
  line-height: 1.35;
}

.invite-penalty-copy {
  margin: 0;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--text);
}

.invite-note-cancel {
  background: #fff0f3;
  border-color: #ffd0dc;
  color: #8a3d52;
}

.invite-cancel-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #ffd0dc;
  border-radius: 10px;
  background: #fff5f7;
  color: #b44a62;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
}

.invite-cancel-btn:hover {
  background: #ffe8ee;
  border-color: #efb8c8;
}

.sailor-panel {
  margin: 6px 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.sailor-panel > summary {
  cursor: pointer;
  font-weight: 800;
  font-size: clamp(0.78rem, 1.5vw, 1rem);
  padding: 8px 12px;
  list-style-position: inside;
  background: #fff;
}

.sailor-body {
  padding: clamp(8px, 1.5vw, 14px) clamp(10px, 2.5vw, 28px) clamp(12px, 2.5vw, 28px);
  background: #fff;
}

.sailor-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(14px, 3vw, 36px);
  max-width: 1600px;
  margin: 0 auto;
}

.sailor-mascot-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: start;
  min-width: 0;
  background: #fff;
}

.sailor-mascot {
  width: min(100%, clamp(280px, 44vw, 600px));
  height: auto;
  object-fit: contain;
  display: block;
}

.sailor-feeds {
  min-width: 0;
  align-self: start;
  display: grid;
  gap: clamp(10px, 1.6vw, 16px);
}

.sailor-feed-card {
  padding: clamp(12px, 2vw, 22px) clamp(12px, 2.2vw, 24px);
  border-radius: clamp(14px, 2vw, 20px);
}

.sailor-news {
  background: linear-gradient(145deg, #faf8ff 0%, #fff7fc 100%);
  border: 1px solid #ece8f8;
}

.sailor-learning {
  background: linear-gradient(145deg, #f4fbff 0%, #f8fff9 100%);
  border: 1px solid #dceef5;
}

.sailor-feed-intro {
  margin: 0 0 clamp(10px, 1.5vw, 16px);
  font-size: clamp(0.84rem, 1.45vw, 1.05rem);
  font-weight: 700;
  color: #8d86a8;
  line-height: 1.35;
}

.sailor-learning .sailor-feed-intro {
  color: #6f8f9a;
}

.sailor-feed-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(8px, 1.2vw, 12px);
}

.sailor-feed-list li {
  padding: clamp(10px, 1.4vw, 14px) clamp(10px, 1.6vw, 16px);
  border-radius: clamp(10px, 1.4vw, 14px);
  background: #fff;
  border: 1px solid #f1edf9;
  font-size: clamp(0.82rem, 1.65vw, 1.15rem);
  line-height: 1.45;
  color: var(--muted);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sailor-learning .sailor-feed-list li {
  border-color: #e4f0f4;
}

.sailor-feed-list li:hover {
  border-color: #ddd4ff;
  box-shadow: 0 4px 14px rgba(151, 121, 255, 0.1);
}

.sailor-learning .sailor-feed-list li:hover {
  border-color: #b8dce8;
  box-shadow: 0 4px 14px rgba(72, 156, 186, 0.12);
}

.sailor-feed-list a {
  color: #3d3858;
  font-weight: 700;
  text-decoration: none;
}

.sailor-feed-list a:hover {
  color: var(--purple);
}

.sailor-learning .sailor-feed-list a:hover {
  color: #2f7f96;
}

.sailor-feed-source {
  display: inline-block;
  margin-top: clamp(4px, 0.6vw, 6px);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: clamp(0.68rem, 1.1vw, 0.88rem);
  font-weight: 700;
  color: #7f79a0;
  background: #f3f0fb;
}

.sailor-learning .sailor-feed-source {
  color: #5f8794;
  background: #e8f4f8;
}

.sailor-resource-sections {
  display: grid;
  gap: clamp(8px, 1.2vw, 10px);
}

.sailor-resource-group {
  border-radius: clamp(12px, 1.8vw, 16px);
  border: 1px solid #ebe7f4;
  background: #fff;
  overflow: hidden;
}

.sailor-resource-group > summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  gap: 2px;
  padding: clamp(10px, 1.4vw, 14px) clamp(12px, 1.8vw, 16px);
  font-weight: 700;
  color: #4a4568;
}

.sailor-resource-group > summary::-webkit-details-marker {
  display: none;
}

.sailor-resource-group > summary::after {
  content: "▾";
  float: right;
  color: #9a94b8;
  transition: transform 0.15s ease;
}

.sailor-resource-group[open] > summary::after {
  transform: rotate(180deg);
}

.sailor-resource-title {
  font-size: clamp(0.82rem, 1.45vw, 1rem);
}

.sailor-resource-hint {
  font-size: clamp(0.72rem, 1.15vw, 0.88rem);
  font-weight: 600;
  color: #8d86a8;
}

.sailor-resource-list {
  margin: 0;
  padding: 0 clamp(10px, 1.6vw, 14px) clamp(10px, 1.6vw, 14px);
  list-style: none;
  display: grid;
  gap: clamp(6px, 1vw, 8px);
}

.sailor-resource-list li {
  padding: clamp(8px, 1.2vw, 10px) clamp(10px, 1.4vw, 12px);
  border-radius: clamp(8px, 1.2vw, 10px);
  background: #faf9fd;
  border: 1px solid #f0edf8;
  font-size: clamp(0.78rem, 1.35vw, 0.98rem);
  line-height: 1.4;
}

.sailor-resource-list a {
  color: #3d3858;
  font-weight: 700;
  text-decoration: none;
}

.sailor-resource-list a:hover {
  color: var(--purple);
}

@media (min-width: 2200px) {
  .board-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 1100px) {
  .overview-weeks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .board-grid,
  .overview-weeks,
  .week-future {
    grid-template-columns: 1fr;
  }

  .pattern-form,
  .add-form,
  .rename-form {
    grid-template-columns: 1fr;
  }

  .pattern-form {
    grid-template-columns: 1fr 1fr;
  }

  .pattern-form button {
    grid-column: 1 / -1;
  }

  .sailor-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sailor-mascot {
    width: min(92vw, clamp(280px, 70vw, 520px));
  }

  .sailor-mascot-wrap {
    justify-content: center;
  }

  .sailor-feeds {
    text-align: left;
  }
}