/* The homepage's ink, paper and coastal linework, carried into everyday tasks. */
.member-theme { -webkit-font-smoothing: antialiased; }
.member-theme .sidebar { background: #f7f7f7; }
.member-theme .topbar { background: #fff; }
.member-theme .workspace { min-height: 100svh; }
.member-theme .workspace > main { width: 100%; }
.member-theme .sidebar .brand-logo { width: 150px; }
.member-theme .nav-link { color: var(--muted); border: 1px solid transparent; }
.member-theme .nav-link:hover { background: #eee; color: var(--ink); }
.member-theme .nav-link.active,
.member-theme .nav-link.active:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.member-theme .nav-link.active .dot { background: #fff; }
.member-theme .nav-link .sketch-icon { stroke-width: 1.65; }
.member-theme .sidebar-coast { display: block; width: 100%; max-width: 174px; height: auto; margin: 16px auto 0; }
.member-theme .user-chip { border-color: var(--line); }
.member-theme .text-button { color: var(--muted); }
.member-theme .text-button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.member-theme .page-heading { position: relative; padding-bottom: 24px; }
.member-theme .page-heading::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: url("/assets/ink-rule-9c18e7f5.svg") center / 100% 100% no-repeat; pointer-events: none; }
.member-theme .page-heading .page-date { margin: 9px 0 0; }
.member-theme .dashboard-heading h1 { font-size: clamp(30px, 3.5vw, 44px); letter-spacing: -1.7px; }
.member-theme .dashboard-heading .button { flex-shrink: 0; }
.member-theme :is(.panel, .stats-grid, .events-calendar, .events-agenda-card, .confirmation-modal, .post-modal, .channel-modal) { border-radius: 5px; }
.member-theme .stats-grid { gap: 0; }
.member-theme .stat:first-child { background: var(--surface); }
.member-theme .stat h2 { color: var(--muted); font-size: 13px; }
.member-theme .stat p { font-size: 12px; }
.member-theme .section-heading h2 { font-size: 18px; }
.member-theme .section-heading a { text-decoration: underline; text-underline-offset: 4px; }
.member-theme .section-heading a:hover { text-decoration-thickness: 2px; }
.member-theme .empty { color: var(--muted); }
.member-theme .today-booking-notice { background: var(--surface); border: 1px solid var(--ink); border-radius: 5px; }
.member-theme :is(button, input[type=submit], .button) { border-radius: 4px; }
.member-theme :is(input[type=submit], .button) { border: 1px solid var(--ink); }
.member-theme :is(input[type=submit], .button):hover { background: #fff; color: var(--ink); }
.member-theme .secondary { background: #fff !important; color: var(--ink) !important; border: 1px solid #aaa; }
.member-theme .secondary:hover { background: var(--surface) !important; border-color: var(--ink); }
.member-theme .page-heading .button { font-size: 13px; }
.member-theme label { font-size: 13px; }
.member-theme input:not([type=submit],[type=checkbox],[type=radio]),
.member-theme select,
.member-theme textarea { background: #fff; border-color: #aaa; border-radius: 4px; font-size: 16px; }
.member-theme input::placeholder,
.member-theme textarea::placeholder { color: var(--muted); opacity: 1; }
.member-theme :is(input, select, textarea)[aria-invalid=true],
.member-theme .field_with_errors :is(input, select, textarea) { border: 2px solid var(--ink); }
.member-theme :is(input, select, textarea):focus { outline-color: var(--ink); }
.member-theme :is(a, button, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.member-theme :is(input[type=checkbox], input[type=radio]) { accent-color: var(--ink); }
.member-theme :is(.flash.alert, .recurrence-preview-error, .channel-form-error) { background: #fff; color: var(--ink); border: 1px solid var(--ink); border-left-width: 4px; }
.member-theme .pill { background: #eee; color: #333; }
.member-theme .pill.waitlisted { background: #fff; color: var(--ink); outline: 1px dashed var(--ink); outline-offset: -1px; }
.member-theme .week-grid .day-card { border-radius: 4px; color: var(--muted); }
.member-theme .week-grid .day-card.booked { border-color: var(--ink); border-style: dashed; background: var(--surface); color: var(--ink); }
.member-theme .week-grid .day-card.selected,
.member-theme .week-grid .day-card.selected:hover { border: 1px solid var(--ink); background: var(--ink); color: #fff; box-shadow: none; }
.member-theme .week-grid .day-card.selected .capacity-bar { background: #626262; }
.member-theme .week-grid .day-card.selected .capacity-bar i { background: #fff; }
.member-theme .day-card.unavailable { opacity: .7; }
.member-theme .founder-avatar > .avatar { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.member-theme .founder-badge { background: var(--ink); color: #fff; border-color: #fff; }
.member-theme .avatar { background: #eee; color: #333; }
.member-theme .workspace > footer { flex-wrap: wrap; gap: 8px 20px; }
.member-theme .workspace > footer span { font-size: inherit; letter-spacing: 0; }
.member-theme .workspace > footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.member-theme .workspace > footer nav a { padding-block: 8px; }

/* Preserve the compact conversation layout and give it the same ink palette. */
.member-theme .channel-sidebar { background: #171717; color: #eee; border-color: #333; }
.member-theme .channel-sidebar :is(a, button, input):focus-visible { outline-color: #fff; }
.member-theme .channel-search input[type=search] { background: #262626; border-color: #626262; color: #fff; font-size: 14px; }
.member-theme .channel-search input::placeholder { color: #bdbdbd; }
.member-theme .channel-search > span { color: #bdbdbd; }
.member-theme .channel-search input:focus { outline-color: #fff; }
.member-theme .channel-link { color: #dedede; }
.member-theme .channel-link.active { background: #fff; color: var(--ink); }
.member-theme .channel-sidebar :is(.channel-list-heading h3, .channel-add, .channel-create-link, .channel-members-link, .channel-members-link > span, .channel-house-rules, .channel-mobile-close) { color: #bdbdbd; }
.member-theme .channel-link:hover:not(.active),
.member-theme .channel-sidebar :is(.channel-create-link, .channel-members-link, .channel-house-rules a):hover { color: #fff; }
.member-theme .channel-composer:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.member-theme .channel-composer textarea:focus { outline: 0; }
.member-theme .channel-composer-toolbar button { background: var(--ink); color: #fff; }
.member-theme .channel-composer-toolbar button:hover { background: #333; }
.member-theme .channel-live-state[data-state=connected]::before { background: var(--ink); box-shadow: none; }
.member-theme .channel-live-state[data-state=offline]::before,
.member-theme .channel-live-state[data-state=reconnecting]::before { background: transparent; border: 1px solid var(--muted); }
.member-theme .community-action[aria-pressed=true] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.member-theme .channel-messages .reaction-chip[aria-pressed=true] { border-color: var(--ink); background: #eee; }
.member-theme .notification-bell [data-notification-count] { background: var(--ink); color: #fff; }

@media (min-width: 801px) {
  .member-theme.community-page #app-sidebar { background: #f7f7f7; }
  .member-theme.community-page #app-sidebar .nav-link.active { background: var(--ink); color: #fff; }
  .member-theme.community-page .sidebar-coast { display: none; }
}
@media (max-width: 800px) {
  .member-theme .dashboard-heading { flex-wrap: wrap; gap: 14px; }
  .member-theme .dashboard-heading > div { flex: 1; min-width: 190px; }
  .member-theme .dashboard-heading .button { order: 1; }
  .member-theme .navigation-drawer .sidebar-coast { max-width: 150px; margin-block: 12px 0; }
  .member-theme .page-heading { padding-bottom: 22px; }
}
@media (max-width: 480px) {
  .member-theme .stat { border-right: 0; }
  .member-theme .stat p { font-size: 11px; }
  .member-theme .dashboard-heading > div { flex-basis: 100%; }
  .member-theme .dashboard-heading .button { font-size: 13px; padding: 12px 18px; }
}
@media (max-height: 760px) {
  .member-theme .sidebar-coast { max-width: 140px; margin-top: 10px; }
}
@media (max-height: 700px) {
  .member-theme .sidebar-coast { display: none; }
}

/* Repetition is an optional part of the booking form. */
.member-theme .booking-repeat-fields { min-width: 0; margin: 12px 0 20px; padding: 20px; border: 1px solid var(--line); border-radius: 4px; }
.member-theme .booking-repeat-fields[hidden] { display: none; }
.member-theme .booking-repeat-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
.member-theme .booking-repeat-layout > div { min-width: 0; }
.member-theme .booking-repeat-layout .form-note:first-child { margin-top: 0; }
.member-theme .booking-repeat-preview { padding-left: 28px; border-left: 1px solid var(--line); }
.member-theme .booking-repeat-preview h3 { font-size: 17px; }
.member-theme .booking-repeat-preview .recurrence-preview-dates { display: block; margin-bottom: 12px; }
.member-theme .recurring-dates { margin-top: 16px; }
.member-theme .recurring-dates summary { cursor: pointer; font-size: 13px; }
.member-theme #repeating-bookings { scroll-margin-top: 24px; }
@media (max-width: 800px) {
  .member-theme .booking-repeat-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .member-theme .booking-repeat-preview { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 450px) {
  .member-theme .booking-repeat-fields { padding: 16px; }
  .member-theme .booking-repeat-fields .form-grid { grid-template-columns: minmax(0, 1fr); }
}
