:root {
  color-scheme: light;
  --sea: #133d42;
  --ink: #173639;
  --muted: #506868;
  --sand: #f8f3e7;
  --paper: #fffcf4;
  --white: #fffef8;
  --line: #c8d5cc;
  --wash: #e5eee7;
  --sun: #ffd783;
  --bad: #8f311a;
  font-family: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0 0 .55rem; overflow-wrap: anywhere; }
h1, h2 { letter-spacing: -.04em; line-height: 1.1; }
h1 { font: 700 clamp(2.1rem, 4vw, 3.45rem)/1 "Avenir Next Condensed", "Arial Narrow", "Avenir Next", sans-serif; }
h2 { font-size: 1.45rem; }
h3 { line-height: 1.2; font-size: 1.08rem; }
p { line-height: 1.46; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button, select, input, textarea { max-width: 100%; }
button {
  min-height: 42px;
  padding: .5rem .78rem;
  border-radius: 7px;
  border: 1px solid transparent;
  background: var(--sea);
  color: var(--white);
  font-size: .89rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
}
button:hover { filter: brightness(.92); }
button:disabled { cursor: wait; opacity: .64; }
button.secondary, .text-button {
  color: var(--sea);
  background: var(--paper);
  border-color: var(--line);
}
button.text-button { border: 0; background: transparent; text-decoration: underline; text-underline-offset: .23em; }
:focus-visible { outline: 2px solid #a44a1e; outline-offset: 3px; }
label { display: flex; flex-direction: column; gap: .25rem; font-size: .81rem; font-weight: 650; }
select, input, textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: .45rem;
  min-height: 42px;
}
textarea { resize: vertical; }
ul, ol { padding-left: 1.3rem; }
form { margin: 0; }
[hidden] { display: none !important; }
.isurf-own-chat-launcher .msb_circle_trigger,
.isurf-own-chat-launcher #small_preview_msb { visibility: hidden !important; }

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 70px;
  padding: .65rem clamp(1rem, 4vw, 4rem);
  background: var(--sea);
  color: var(--white);
}
.brand { font-weight: 800; letter-spacing: -.07em; font-size: 1.65rem; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--sun); padding-inline: .12em; }
.demo-label { font-size: .84rem; text-align: right; color: #e6f0e6; }
.layout {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.05rem, 3vw, 3rem);
  max-width: 94rem;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.4rem) clamp(1rem, 4vw, 4rem) 5rem;
}
.chat-rail {
  position: sticky;
  top: 1rem;
  overflow-wrap: anywhere;
  background: var(--sea);
  color: var(--white);
  border-radius: 12px;
  padding: 1.05rem;
  min-width: 0;
}
.chat-top { display: flex; align-items: start; gap: .65rem; }
.chat-top h2 { margin-bottom: .2rem; }
.chat-top p, .chat-status, .hints p { color: #dcebe2; font-size: .87rem; }
.spark { background: var(--sun); width: .54rem; height: .54rem; border-radius: 50%; margin-top: .4rem; flex: 0 0 .54rem; }
#chat-dock:empty { display: none; }
#chat-dock { min-height: 19rem; margin-top: .5rem; }
.chat-status:empty { display: none; }
.hints { padding-top: .62rem; border-top: 1px solid #426467; margin-top: .9rem; }
.hints summary { font-size: .92rem; font-weight: 650; }
.hints p { margin: .65rem 0; }
.examples { display: flex; flex-wrap: wrap; gap: .4rem; }
.hints .secondary { background: var(--sea); color: var(--white); border-color: #729093; }
.wide { width: 100%; background: var(--sun); color: var(--ink); }

.roles { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.roles form { min-width: 0; }
.roles button { color: var(--muted); background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; }
.roles button[aria-pressed="true"] { border-color: var(--sea); color: var(--sea); }
.section-top { display: flex; gap: .7rem; justify-content: space-between; align-items: start; margin-bottom: .75rem; }
.section-top p, .muted { color: var(--muted); }
.week-controls, .controls { display: flex; flex-wrap: wrap; align-items: end; gap: .45rem; }
.week-controls { flex-wrap: nowrap; }
.week-controls button { font-size: 1.15rem; }
.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 8px;
}
.day { min-width: 0; min-height: 9rem; background: var(--paper); padding: .25rem; }
.day-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .15rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  padding: .24rem .24rem .45rem;
}
.day-heading time, .slot time { font-variant-numeric: tabular-nums; }
.day form + form { margin-top: .24rem; }
.slot {
  width: 100%;
  display: grid;
  gap: .18rem;
  color: var(--ink);
  background: var(--wash);
  padding: .4rem;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.slot span, .slot time { font-size: .75rem; font-weight: 600; }
.slot strong { font-size: .81rem; }
.slot[aria-pressed="true"] { background: var(--sun); border-color: #bc8b30; }
.cards { display: grid; gap: .7rem; margin-top: .85rem; }
.panel {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .95rem;
}
.panel .controls form:not(.edit-inputs) { display: flex; flex-wrap: wrap; gap: .55rem; align-items: end; }
.panel form > label { margin-bottom: .4rem; }
.panel .controls form > label { margin: 0; }
.tag {
  color: var(--sea);
  background: var(--wash);
  border-radius: 5px;
  padding: .27rem .42rem;
  font-size: .78rem;
  line-height: 1.35;
  white-space: nowrap;
}
.staff-line { color: var(--muted); font-size: .92rem; }
.staff-line strong { color: var(--ink); margin-right: .3rem; }
.roster { margin: .45rem 0 .7rem; }
.roster span { color: var(--muted); font-size: .82rem; display: inline-block; margin-left: .35rem; }
.details-card { padding: .72rem; margin-top: .65rem; background: var(--wash); border-radius: 7px; }
.details-card summary { font-weight: 650; }
.details-card form, .details-card p { margin-top: .65rem; }
.edit-inputs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .65rem; }
.edit-inputs > * { flex: 1 1 7rem; min-width: 0; }
.callout, .error { padding: .66rem .78rem; border-radius: 7px; margin: .6rem 0; background: var(--wash); }
.callout { color: var(--sea); }
.error { color: var(--bad); background: #ffe8da; }
.facts { margin: .45rem 0; }
.facts > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; }
.facts dt { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.facts dd { margin: 0; }
.reference { font: .82rem/1.4 ui-monospace, monospace; overflow-wrap: anywhere; }
.inquiries { display: grid; gap: .8rem; overflow-wrap: anywhere; }
.compact p { font-size: .92rem; }
.deliveries { font-size: .88rem; }
.deliveries li + li { margin-top: .4rem; }
.delivery-status { margin: 0 .38rem; color: var(--muted); }
.learning { margin-top: .8rem; }
.learning li + li { margin-top: .45rem; }
.workspace-footer { border-top: 1px solid var(--line); margin-top: .95rem; justify-content: end; padding-top: .35rem; }
.standalone { width: min(100% - 2rem, 45rem); margin: 2rem auto; }
.standalone > a { display: inline-block; margin-bottom: 1rem; }
.standalone form { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; margin-top: .9rem; }

@media (max-width: 1070px) {
  .layout { grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr); gap: 1rem; }
  .day-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 880px) {
  .week { grid-template-columns: repeat(7, minmax(5.6rem, 1fr)); overflow-x: auto; }
}
@media (max-width: 720px) {
  .layout { display: flex; flex-direction: column; padding-bottom: 5.5rem; }
  .layout > * { width: 100%; }
  .chat-rail { position: static; }
  .section-top { align-items: start; }
  .day { min-height: 5.45rem; }
  #chat-dock:empty { display: none; }
  .isurf-widget-docked iframe#parent_frame {
    right: 0 !important;
    max-width: 100vw !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0s !important; transition-duration: 0s !important; }
}

@media (min-width: 721px) {
  .chat-rail.widget-mounted #chat-dock {
    display: block;
    height: clamp(290px, 54vh, 495px);
  }
  .isurf-widget-docked iframe#parent_frame {
    position: fixed !important;
    inset: auto !important;
    left: var(--widget-left) !important;
    top: var(--widget-top) !important;
    width: var(--widget-width) !important;
    height: var(--widget-height) !important;
    max-width: var(--widget-width) !important;
  }
  .isurf-widget-docked .msb_circle_trigger,
  .isurf-widget-docked #small_preview_msb.small_top_panel {
    left: var(--widget-left) !important;
    right: auto !important;
  }
}
