:root {
  color-scheme: light;
  font: 15px/1.55 "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f4f7f6;
  color: #182a2d;
  --ink: #182a2d;
  --muted: #546568;
  --line: #dbe5e4;
  --blue: #187c79;
  --focus: #0e8884;
  --white: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: #176b69; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-inner, .shell { width: min(100% - 48px, 1320px); margin-inline: auto; }
.top-inner { min-height: 66px; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand strong { font-size: .91rem; letter-spacing: .12em; line-height: 1; }
.brand span { padding-inline-start: 14px; border-inline-start: 1px solid var(--line); font-size: .87rem; font-weight: 620; }
nav { display: flex; align-self: stretch; gap: 29px; }
nav a { display: grid; place-items: center; position: relative; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: .92rem; }
nav a[aria-current] { color: #176b69; font-weight: 650; }
nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.user { color: var(--muted); margin-inline-start: auto; font-size: .88rem; white-space: nowrap; }
.shell { padding-block: 30px 72px; }
.intro { min-height: 111px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-block-end: 20px; padding: 21px 30px; border: 1px solid #d6e7e4; border-radius: 15px; background: linear-gradient(102deg,#eaf5f2 4%,#f1f8f6 66%,#f8fbfa); }
h1 { font-size: clamp(1.64rem, 2.3vw, 2.15rem); line-height: 1.22; letter-spacing: -.026em; }
.intro p { margin-block-start: 7px; color: var(--muted); }
.primary, .secondary, .quiet, .icon-button, .filter { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 13px; border: 1px solid transparent; border-radius: 8px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.primary { background: var(--blue); color: var(--white); }
.primary:hover { background: #106a66; }
.secondary { background: var(--white); color: #263956; border-color: #d6deed; }
.secondary:hover, .quiet:hover, .icon-button:hover { background: #eef3fc; }
.quiet, .icon-button, .filter { color: #415472; background: transparent; }
.icon-button { min-width: 38px; padding-inline: 7px; font-size: 1.2rem; line-height: 1; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-block-end: 15px; }
.filters, .utilities, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.filter { min-height: 35px; padding: 5px 12px; font-size: .87rem; }
.filter[aria-pressed="true"] { background: #e1f1ed; color: #176964; }
.filter:hover:not([aria-pressed="true"]) { background: #e9edf4; }
.utilities { font-size: .87rem; color: var(--muted); }
.slot-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; align-items: stretch; }
.week-range { color: var(--muted); margin-top: 4px; font-size: .88rem; }
.pill { display: inline-flex; padding: 3px 8px; border-radius: 6px; white-space: nowrap; font-size: .8rem; font-weight: 650; background: #edf0f6; color: #48566b; }
.pill.available { background: #e8f6ee; color: #175937; }
.pill.deadline { background: #fff1db; color: #78450e; }
.pill.pending { background: #e2f2ed; color: #206c66; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 0; text-align: center; }
.metrics dt { color: var(--muted); font-size: .76rem; }
.metrics dd { margin: 0; font-variant-numeric: tabular-nums; }
.agenda-panel { padding: 14px 17px; overflow-wrap: anywhere; }
.agenda-panel h3 { font-size: .9rem; font-weight: 670; margin-bottom: 6px; }
.agenda-panel p, .project-list { font-size: .85rem; color: var(--muted); }
.project-list { margin: 4px 0 8px; padding-inline-start: 19px; }
.project-list li + li { margin-block-start: 3px; }
.project-list a { text-decoration: none; }
.project-list a:hover { text-decoration: underline; }
.slot-footer .meta { font-size: .78rem; }
.more { margin-block-start: 15px; display: flex; justify-content: center; }
.empty, .detail { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.empty { padding: 36px 22px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.login { width: min(100%,440px); margin: 7vh auto 0; padding: 36px; text-align: start; border-top: 3px solid var(--blue); }
.login p { margin: 9px 0 23px; }
.login h1 { color: var(--ink); font-size: 1.55rem; }
.error { color: #a32631; }
.meta { color: var(--muted); font-size: .88rem; }
.table-wrapper { overflow: auto; container-type: inline-size; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.table-wrapper table { width: 100%; border-collapse: collapse; text-align: start; }
.table-wrapper th, .table-wrapper td { padding: 12px 16px; border-bottom: 1px solid #ebeff5; text-align: start; }
.table-wrapper thead th { font-size: .82rem; font-weight: 650; background: #eff3fa; color: var(--muted); }
.table-wrapper tbody th { font-weight: 640; overflow-wrap: anywhere; }
.table-wrapper tbody tr:last-child > * { border-bottom: 0; }
.table-wrapper tbody tr:hover { background: #f7faf9; }
@container (width < 520px) {
  .table-wrapper :is(table,tbody,tr,th,td) { display: block; }
  .table-wrapper thead { display: none; }
  .table-wrapper tbody tr { padding: 10px 16px; }
  .table-wrapper tbody tr + tr { border-top: 1px solid var(--line); }
  .table-wrapper tbody tr > * { padding: 3px 0; border-bottom: 0; }
  .table-wrapper td::before { content: attr(data-label) " " / ""; color: var(--muted); padding-inline-end: 10px; }
}
.detail { max-width: 820px; margin-block-start: 12px; padding: 24px; }
.detail > :not(:first-child) { margin-block-start: 12px; }
.detail > a { display: table; }
.row-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.history { margin: 0; padding: 0 0 0 18px; }
.history > li { padding: 10px 3px; border-bottom: 1px solid #ebeff5; }
#page-status { position: fixed; z-index: 3; right: 18px; bottom: 18px; max-width: calc(100% - 36px); border-radius: 8px; background: #1d2b4b; color: white; padding: 10px 14px; box-shadow: 0 2px 14px #192a5a20; }
#page-status.error { background: #8a2831; }
#page-status:empty { display: none; }

dialog { width: min(584px,calc(100% - 26px)); max-height: calc(100dvh - 26px); padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--white); box-shadow: 0 18px 80px #10204940; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #10203c66; }
dialog form { min-height: 0; display: flex; flex-direction: column; }
.dialog-head, .dialog-actions, .week-footer { padding: 13px 20px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.dialog-head { border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.28rem; }
.fields, .week-body { flex: 1; overflow: auto; padding: 17px 20px; display: grid; align-content: start; gap: 14px; }
.fields label, fieldset { display: grid; gap: 5px; font-size: .91rem; font-weight: 600; }
.fields small { color: var(--muted); font-weight: normal; }
.fields input:not([type=checkbox]), .fields textarea, .fields select { width: 100%; min-width: 0; min-height: 39px; padding: 7px 9px; border: 1px solid #cbd5e7; border-radius: 7px; background: var(--white); color: var(--ink); }
.fields textarea { min-height: 82px; resize: vertical; }
.fields fieldset { min-inline-size: 0; border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 7px; }
.checks label { display: inline-flex; align-items: center; gap: 5px; font-size: .83rem; font-weight: 500; border: 1px solid #dae3f2; background: #f7f9fe; padding: 5px 8px; border-radius: 7px; color: #304969; cursor: pointer; }
.checks label:has(:checked) { border-color: #79b7ae; background: #e2f2ed; color: #186d66; }
.checks input { margin: 0; accent-color: var(--blue); }
.field-context { background: #edf6f4; border-radius: 7px; padding: 8px 11px; font-size: .87rem; color: #365e60; }
.dialog-actions, .week-footer { border-top: 1px solid var(--line); }
.feedback { flex: 1; font-size: .84rem; }
.week-body .metrics, .week-body .agenda-panel { margin: 0; padding-inline: 0; }
@media (max-width: 960px) { .slot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .top-inner { gap: 23px; } nav { gap: 16px; } }
@media (max-width: 630px) {
  .top-inner,.shell { width: calc(100% - 28px); }
  .top-inner { min-height: 49px; flex-wrap: wrap; gap: 0 10px; }
  .brand,.user { min-height: 49px; align-content: center; }
  nav { order: 3; flex-basis: 100%; min-height: 40px; gap: 18px; }
  .shell { padding-block-start: 16px; }
  .intro { padding: 15px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .intro p { font-size: .87rem; }
  .slot-grid { grid-template-columns: minmax(0,1fr); }
  .slot-top { padding-inline: 14px; }
  .toolbar .filter { padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) { .slot { transition: none; } }

.project-actions { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-inline-start: 5px; }
.project-actions button { min-height: 30px; padding: 2px 7px; font-size: .79rem; }
.metrics > div { display: flex; flex-direction: column-reverse; }

/* Official release calendar */
body[data-route="schedule"] { background: #fdfdfd; }
body[data-route="schedule"] .shell { width: min(100% - 64px, 1400px); padding-block-start: 25px; }
body[data-route="schedule"] .top-inner { width: min(100% - 64px, 1400px); min-height: 54px; }
body[data-route="schedule"] nav a { color: #3c4648; }
body[data-route="schedule"] nav a[aria-current] { color: #136d6d; }
body[data-route="schedule"] .intro {
  min-height: 0; margin: 0 0 15px; padding: 0; border: 0; border-radius: 0; background: transparent;
}
body[data-route="schedule"] .intro h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 400; letter-spacing: -.04em; }
body[data-route="schedule"] .intro p { display: none; }
body[data-route="schedule"] .intro .primary { border-radius: 0; }
body[data-route="schedule"] .toolbar {
  margin: 0 0 30px; padding: 0 0 22px; border-bottom: 1px solid #ebeeee;
}
body[data-route="schedule"] .filters { gap: 8px; }
body[data-route="schedule"] .utilities { gap: 13px; font-size: .83rem; }
body[data-route="schedule"] .utilities span + span { padding-inline-start: 13px; border-inline-start: 1px solid #cbd0d0; }
body[data-route="schedule"] :is(.filter,.secondary) {
  min-height: 33px; padding: 5px 13px; border: 1px solid #e1e5e5; background: #fdfdfd;
  color: #475658; border-radius: 0; font-weight: 500; font-size: .83rem;
}
body[data-route="schedule"] .filter[aria-pressed="true"] { border-color: #121718; background: #121718; color: white; }
body[data-route="schedule"] :is(.filter:not([aria-pressed="true"]),.secondary):hover { background: #f1f5f5; }
.slot {
  min-width: 0; display: flex; flex-direction: column; min-height: 350px;
  border: 1px solid #e1e5e5; background: #fdfdfd; transition: border-color .15s;
}
.slot:hover { border-color: #c4d1d1; }
.slot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; min-height: 88px; padding: 19px 22px 13px; }
.slot h2, #week-title { font: 400 1.63rem/1.15 "Helvetica Neue", Arial, sans-serif; letter-spacing: -.06em; }
.slot-title { appearance: none; padding: 0; background: transparent; border: 0; color: #131b1c; font: inherit; text-align: start; letter-spacing: inherit; }
.slot-title:hover { color: #136d6d; }
.slot .pill, .drawer .pill { border-radius: 0; padding: 3px 8px; font-size: .77rem; font-weight: 500; }
.slot .pill.available, .drawer .pill.available { background: #e4f0ef; color: #176e70; }
.slot .pill.deadline, .drawer .pill.deadline { background: #f9eedc; color: #835019; }
.slot .pill.expired, .drawer .pill.expired { background: #eef0f0; color: #606b6d; }
.slot .pill.full, .drawer .pill.full { background: #e6e9e9; color: #465253; }
.slot .pill.overbooked, .drawer .pill.overbooked { background: #f8e6e7; color: #8a2831; }
.slot .week-range { color: #4c595a; font-size: .81rem; margin-top: 5px; }
.slot .metrics { margin: 0; border: 0; border-block: 1px solid #e1e5e5; border-radius: 0; background: transparent; padding: 0; }
.slot .metrics > div, .week-data .metrics > div { padding: 13px 0 14px; }
.slot .metrics > div + div, .week-data .metrics > div + div { border-inline-start: 1px solid #e1e5e5; }
.slot .metrics dd, .week-data .metrics dd { color: #182123; font-size: 1.55rem; font-weight: 350; }
.slot .metrics dt, .week-data .metrics dt { color: #4d595a; letter-spacing: .07em; }
.slot .agenda-panel { padding: 17px 22px 10px; }
.slot .agenda-panel h3, .drawer .agenda-panel h3, .week-data h3 { color: #4c595a; font-size: .82rem; font-weight: 500; letter-spacing: .08em; margin-bottom: 9px; }
.slot .project-list, .drawer .project-list { list-style: square; padding-inline-start: 14px; }
.slot .project-list li::marker, .drawer .project-list li::marker { color: #829492; }
.slot .project-list a, .drawer .project-list a { color: #1c292b; }
.slot-footer { margin-top: auto; min-height: 58px; padding: 10px 22px 16px; text-align: center; }
.slot-footer .primary, .week-footer .primary { width: 100%; border-radius: 0; background: #208486; font-size: .84rem; letter-spacing: .07em; }
.slot-footer .primary:hover, .week-footer .primary:hover { background: #166e70; }
.slot-footer .meta { padding: 7px 0; }
dialog.drawer { margin: 0 0 0 auto; width: min(640px, 100%); height: 100dvh; max-height: 100dvh; border-radius: 0; background: #fdfdfd; }
.drawer .dialog-head { padding: 24px 30px; }
#week-title { font-size: 1.95rem; }
.week-controls { display: flex; gap: 12px; align-items: center; padding: 12px 30px; border-bottom: 1px solid #e1e5e5; }
.week-controls .week-range { margin: 0; }
.week-arrows { display: flex; gap: 6px; margin-inline-start: auto; }
.week-arrows .icon-button { min-width: 34px; min-height: 33px; border: 1px solid #e0e6e6; border-radius: 0; }
.week-arrows button:disabled { cursor: default; }
.drawer .week-body { padding: 21px 30px; gap: 22px; }
.week-data .metrics { margin: 0; border: 0; border-radius: 0; background: #edf2f2; padding: 0; }
.drawer .week-footer { display: grid; gap: 7px; padding: 15px 30px; }
.week-position, .week-closed { font-size: .78rem; }
.week-closed { text-align: center; }
@media (max-width: 630px) {
  body[data-route="schedule"] :is(.shell,.top-inner) { width: calc(100% - 30px); }
  body[data-route="schedule"] .intro { flex-direction: row; align-items: center; gap: 12px; }
  body[data-route="schedule"] .intro h1 { font-size: 1.48rem; }
  body[data-route="schedule"] .intro .primary { font-size: .79rem; padding-inline: 8px; }
  body[data-route="schedule"] .toolbar { margin-bottom: 20px; padding-bottom: 13px; }
  body[data-route="schedule"] .filter { padding-inline: 6px; }
  .slot { min-height: 276px; }
  .slot-grid { gap: 14px; }
  .drawer :is(.dialog-head,.week-controls,.week-body,.week-footer) { padding-inline: 17px; }
}
