/* 课间 Agent Demo。作者：sdr。 */
.stream-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8faf7;
}
.stream-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 10px;
}
.stream-text {
  margin: 0;
  padding: 12px;
  min-height: 85px;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    11px/1.85 ui-monospace,
    Consolas,
    "Microsoft YaHei",
    monospace;
  color: #4e705b;
  background: white;
  border: 1px solid #e6ede3;
  border-radius: 7px;
  tab-size: 2;
}
.stream-panel summary {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 0;
}
.stream-panel summary span {
  font-size: 10px;
}
.stream-panel .thinking-text {
  max-height: 170px;
  color: #82917f;
}
.stream-panel > p {
  font-size: 10px;
  margin: 10px 0 0;
}
.stream-panel.failed {
  border-color: #dfb5a9;
}
.stream-panel.failed .pill {
  background: #fbefec;
  color: var(--danger);
}
.model-picker {
  padding: 14px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf6;
}
.model-picker .section-heading {
  margin-bottom: 8px;
}
.model-picker .section-heading label {
  margin: 0;
}
.model-picker input {
  font-size: 12px;
  margin-bottom: 8px;
}
.model-picker select {
  font-size: 12px;
}
.model-picker p {
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.8;
}
#advanced-model {
  margin-bottom: 18px;
}
#advanced-model summary {
  font-size: 12px;
  cursor: pointer;
  color: var(--green);
}
#advanced-model summary span {
  font-size: 10px;
  margin-left: 7px;
}
:root {
  --ink: #203b35;
  --muted: #81918b;
  --green: #17664f;
  --green-light: #eaf2ed;
  --line: #e3e9e4;
  --bg: #f5f7f3;
  --white: #fff;
  --danger: #ac463e;
  --radius: 18px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.65;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #8ebfab;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 650;
  line-height: 1.4;
}
h2 {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 650;
}
h3 {
  font-size: 14px;
}
p {
  margin-bottom: 12px;
}
small,
.small {
  font-size: 12px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dbe4dc;
  background: white;
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--ink);
  min-width: 0;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  padding: 0;
  flex-shrink: 0;
}
input[type="color"] {
  padding: 4px;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #9ca8a1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
  margin: 16px 0;
}
input,
textarea {
  font-weight: 400;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
  font-weight: 400;
}
.eyebrow {
  color: #8b9a8f;
  font-size: 10px;
  letter-spacing: 2.2px;
  margin-bottom: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sidebar {
  width: 218px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: white;
  border-right: 1px solid var(--line);
  padding: 43px 22px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 29px;
  font-weight: 700;
  padding: 0 7px;
}
.brand-icon {
  width: 48px;
  height: 52px;
  border-radius: 15px;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-size: 25px;
  box-shadow: 0 8px 18px #17664f14;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.1px;
  margin-top: 0;
  color: #90a091;
}
.nav-label {
  margin-top: 61px;
  margin-left: 15px;
  letter-spacing: 1px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 12px;
  text-align: left;
  color: #7e8d85;
  font-size: 14px;
}
nav button > span {
  font-size: 20px;
  width: 22px;
  line-height: 1;
}
nav button.active {
  background: var(--green-light);
  color: var(--green);
  font-weight: 650;
}
nav i {
  font-size: 9px;
  background: #dbeade;
  padding: 1px 5px;
  border-radius: 4px;
  font-style: normal;
  margin-left: auto;
}
nav button:hover {
  background: var(--bg);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
  color: #8c9a91;
  font-size: 12px;
}
.sidebar-bottom p {
  line-height: 2.2;
  margin: 20px 0 36px;
}
.sidebar-bottom small {
  font-size: 8px;
  letter-spacing: 2px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: #59816c;
  border-radius: 30px;
  padding: 5px 11px;
  font-size: 10px;
  white-space: nowrap;
}
.workspace {
  margin-left: 218px;
}
.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  background: #ffffffb8;
  font-size: 12px;
  color: #95a096;
  gap: 16px;
}
.topbar b {
  font-weight: 400;
  margin: 0 14px;
  color: #c2cbc3;
}
.topbar strong {
  color: #657c6e;
  font-weight: 500;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-actions select {
  max-width: 220px;
  font-size: 12px;
  padding: 7px 10px;
  background: #ffffff70;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6ecdd;
  color: #8b976f;
  font-size: 13px;
  width: 32px;
  height: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  font-size: 12px;
  white-space: nowrap;
  min-height: 40px;
  font-weight: 500;
}
.button:hover {
  background: #edf3ef;
  border-color: #c8d9cd;
}
.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.button.primary:hover {
  background: #12533f;
}
.button.ghost {
  border-color: transparent;
  background: none;
}
.wide {
  width: 100%;
  margin-top: 10px;
}
.text-button {
  font-size: 12px;
  color: var(--green);
  padding: 4px 0;
}
.text-button:hover {
  text-decoration: underline;
}
.danger {
  color: var(--danger);
}
main {
  max-width: 1520px;
  margin: 0 auto;
  padding: 36px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 2px 0 30px;
}
.page-heading h1 {
  margin-bottom: 10px;
}
.page-heading .muted {
  font-size: 13px;
  margin: 0;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 21px;
}
.section-heading .eyebrow {
  margin-bottom: 6px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.fields {
  display: grid;
  gap: 14px;
}
.fields.two {
  grid-template-columns: 1fr 1fr;
}
.fields label {
  margin: 0;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-weight: 400;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.stat {
  padding: 22px 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.stat small {
  color: var(--muted);
}
.stat strong {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
  display: block;
  margin: 6px 0;
}
.stat em {
  font-style: normal;
  font-size: 12px;
  color: #779181;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.note-panel {
  background: #eaf0e2;
  border-color: #e4eadb;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.note-panel h2 {
  font-size: 25px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.note-panel > p:not(.eyebrow) {
  font-size: 12px;
  color: #829079;
  max-width: 300px;
  line-height: 1.9;
}
.note-panel .button {
  margin-top: auto;
}
.note-panel #next-course {
  font-size: 12px;
  margin-bottom: 18px;
}
.course-event {
  display: flex;
  align-items: start;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid #edf0eb;
  text-align: left;
  width: 100%;
}
.course-event:last-child {
  border-bottom: 0;
}
.course-event:hover .event-title {
  color: var(--green);
}
.event-time {
  font-size: 12px;
  color: var(--green);
  width: 76px;
  flex-shrink: 0;
  font-weight: 600;
}
.event-time small {
  display: block;
  color: #92a095;
  font-weight: 400;
  font-size: 10px;
}
.event-content {
  min-width: 0;
  flex: 1;
}
.event-title {
  font-weight: 550;
  margin-bottom: 3px;
  overflow-wrap: anywhere;
}
.event-meta {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.event-dot {
  width: 6px;
  height: 6px;
  background: #6b9b7c;
  border-radius: 50%;
  margin-top: 8px;
}
.empty {
  padding: 30px 12px;
  text-align: center;
  color: #8f9b93;
  font-size: 13px;
}
.empty strong {
  display: block;
  font-size: 15px;
  color: #708376;
  margin-bottom: 7px;
}
.upcoming {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.upcoming-day {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.upcoming-day header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 10px;
}
.upcoming-day header small {
  color: var(--muted);
  font-size: 10px;
}
.mini-event {
  display: block;
  border-left: 3px solid #96b29d;
  padding: 5px 9px;
  margin: 8px 0;
  font-size: 12px;
  text-align: left;
  overflow-wrap: anywhere;
}
.mini-event small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.rest-day {
  font-size: 11px;
  color: #8ea18e;
  padding: 8px 0;
}
.import-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}
.dropzone {
  border: 1.5px dashed #becdbf;
  border-radius: 12px;
  min-height: 330px;
  margin: 0;
  background: #f8faf6;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  padding: 26px;
  gap: 8px;
  color: #8a9b8c;
  font-weight: 400;
}
.dropzone strong {
  font-size: 15px;
  color: #597663;
  font-weight: 500;
}
.dropzone.dragging {
  background: #e3efdf;
  border-color: var(--green);
}
.upload-symbol {
  font-size: 38px;
  color: var(--green);
  margin-bottom: 10px;
}
.image-panel {
  min-width: 0;
}
.image-viewport {
  width: 100%;
  max-height: 70vh;
  max-height: 70dvh;
  overflow: auto;
  border-radius: 10px;
  background: #f6f7f4;
}
#image-preview {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
}
.actual-pixels #image-preview {
  width: auto;
}
.image-tools button[aria-pressed="true"],
.crop-view-tools button[aria-pressed="true"] {
  color: var(--green);
  border-color: var(--green);
  background: #edf5ef;
}
.image-meta {
  font-size: 12px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.image-tools {
  margin-top: 16px;
  flex-wrap: wrap;
}
.review-filter-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.review-filter-info p {
  margin: 0;
}
#stream-ready {
  color: var(--green);
}
#app-build {
  display: block;
  margin-top: 8px;
}
#crop-dialog {
  width: 1200px;
  height: 92vh;
  height: 92dvh;
  max-height: 94vh;
  max-height: 94dvh;
  overflow: auto;
}
#crop-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#crop-dialog > :not(.crop-workspace) {
  flex-shrink: 0;
}
#crop-dialog .section-heading,
#crop-dialog > p,
#crop-dialog label,
#crop-dialog .dialog-footer {
  margin-top: 0;
  margin-bottom: 0;
}
.crop-view-tools {
  flex-wrap: wrap;
}
.crop-workspace {
  flex: 1 1 0;
  min-height: 140px;
  overflow: auto;
  background: #f2f5f2;
  padding: 16px;
  border-radius: 10px;
  overscroll-behavior: contain;
}
.crop-stage {
  position: relative;
  overflow: hidden;
  margin-inline: auto;
  line-height: 0;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
  max-width: none;
}
#crop-image {
  display: block;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
}
.crop-selection {
  position: absolute;
  border: 2px solid #21b58c;
  background: #21b58c12;
  box-shadow: 0 0 0 2000px #102b2580;
  pointer-events: none;
}
.crop-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 600px) {
  .crop-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #crop-dialog .dialog-footer {
    flex-wrap: wrap;
  }
}
.import-options label {
  margin: 14px 0;
}
.import-options .fields label {
  margin: 10px 0;
}
.message {
  border-radius: 9px;
  background: #edf3ee;
  border: 1px solid #d5e2d6;
  color: #4e735b;
  padding: 12px;
  font-size: 12px;
  line-height: 1.8;
  margin: 14px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.error {
  background: #fbefec;
  border-color: #efcec5;
  color: #a14e40;
}
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}
.review-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf7f5;
  backdrop-filter: blur(8px);
  padding: 12px;
  margin-bottom: 20px;
}
.review-toolbar label {
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.review-toolbar select {
  width: 130px;
  font-size: 12px;
  padding: 8px;
}
.review-toolbar .check {
  font-size: 12px;
}
.count {
  font-size: 11px;
  background: var(--green-light);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--green);
  font-weight: 400;
}
.candidate {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.candidate-head {
  display: flex;
  align-items: start;
  gap: 10px;
}
.candidate-head .check {
  margin: 2px 0;
}
.candidate h3 {
  font-size: 15px;
}
.candidate .event-meta {
  margin: 6px 0;
}
.candidate .course-tags {
  margin: 8px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  font-size: 10px;
  color: #6d856e;
  background: #f1f5ee;
  padding: 3px 8px;
  border-radius: 4px;
}
.candidate-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #edf0e9;
}
.candidate-actions > div {
  display: flex;
  gap: 15px;
}
.candidate .warning {
  font-size: 11px;
  color: #ae8050;
  background: #faf5e9;
  border-radius: 6px;
  padding: 8px;
  overflow-wrap: anywhere;
}
.imported-panel {
  position: sticky;
  top: 18px;
}
.imported-panel h2 {
  font-size: 16px;
}
.imported-panel .section-heading {
  margin-bottom: 8px;
}
#imported-list {
  max-height: 66vh;
  overflow: auto;
}
.weekday-label {
  font-size: 11px;
  color: #849386;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
  margin: 16px 0 3px;
}
.imported-item {
  padding: 11px 0;
  border-bottom: 1px solid #f0f3ed;
}
.imported-item strong {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.imported-item small {
  display: block;
  font-size: 10px;
  color: #8b998e;
  line-height: 1.9;
}
.imported-actions {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}
.imported-actions .text-button {
  font-size: 10px;
}
.weekly-panel {
  min-width: 0;
}
.calendar-mode-switch button[aria-pressed="true"] {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
#calendar-month > .actions {
  justify-content: flex-end;
  margin-bottom: 18px;
}
.week-controls,
.week-controls .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.week-controls {
  justify-content: space-between;
}
.week-controls > strong {
  font-size: 13px;
  color: var(--green);
}
.week-select-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
}
.week-select-label select {
  width: auto;
  min-width: 120px;
  margin: 0;
}
.week-table-wrap {
  overflow: auto;
  max-height: 76vh;
  max-height: 76dvh;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 16px;
  overscroll-behavior: contain;
}
.weekly-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 1050px;
  font-size: 12px;
}
.weekly-table th,
.weekly-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.weekly-table tr > :last-child {
  border-right: 0;
}
.weekly-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  text-align: center;
  padding: 12px 6px;
  background: #f3f7f2;
  color: var(--ink);
}
.weekly-table small {
  display: block;
  font-size: 10px;
  font-weight: normal;
  line-height: 1.8;
}
.weekly-table .week-time-column {
  position: sticky;
  left: 0;
  width: 100px;
  z-index: 2;
  background: #f7f9f5;
  text-align: center;
}
.weekly-table thead .week-time-column {
  z-index: 4;
}
.weekly-table tbody th {
  height: 62px;
  padding: 8px 4px;
}
.weekly-table tbody th strong {
  display: block;
  font-size: 11px;
}
.weekly-table .week-rest-row th {
  height: 34px;
  padding: 4px;
  color: #849386;
}
.week-free {
  background: #fff;
}
.week-rest-row .week-free {
  background: #f8faf7;
}
.weekly-table .week-is-today,
.week-today-cell {
  background: #edf5eb;
}
.week-course-cell {
  padding: 5px;
  vertical-align: top;
  background: white;
}
.week-course {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 9px;
  margin-bottom: 5px;
  border: 1px solid #cddfcf;
  border-left-width: 3px;
  border-radius: 8px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.55;
  font-size: 11px;
  color: #315b45;
  background: #edf6eb;
}
.week-course:last-child {
  margin-bottom: 0;
}
.week-course strong {
  font-size: 13px;
  line-height: 1.6;
}
.week-course:hover {
  filter: brightness(0.97);
}
.week-color-1 {
  background: #edf3fc;
  border-color: #ccd9ed;
  color: #3e5983;
}
.week-color-2 {
  background: #faf2e5;
  border-color: #ead6b4;
  color: #796031;
}
.week-color-3 {
  background: #f3edfa;
  border-color: #ddcfec;
  color: #6c4f89;
}
.week-color-4 {
  background: #fceeed;
  border-color: #edccca;
  color: #895952;
}
.week-color-5 {
  background: #eaf6f6;
  border-color: #c7e2e1;
  color: #3c706e;
}
.week-conflict {
  background: #fff6f1;
}
.week-conflict-note {
  display: block;
  color: #a14e40;
  font-size: 10px;
  padding: 2px 0 7px;
}
@media (max-width: 600px) {
  .week-controls .actions {
    gap: 8px;
  }
  .week-controls .button {
    padding: 9px 11px;
  }
  .weekly-table {
    min-width: 1000px;
  }
  .weekly-table .week-time-column {
    width: 86px;
  }
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.calendar-layout > .panel {
  padding: 23px;
}
.week-head,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.week-head span {
  text-align: center;
  color: #8e9c90;
  padding: 8px;
  font-size: 11px;
}
.calendar-cell {
  min-height: 105px;
  padding: 9px 6px;
  text-align: left;
  border: 1px solid #edf1e9;
  border-right: 0;
  border-bottom: 0;
  overflow: hidden;
}
.calendar-cell:nth-child(7n) {
  border-right: 1px solid #edf1e9;
}
.calendar-cell:nth-last-child(-n + 7) {
  border-bottom: 1px solid #edf1e9;
}
.calendar-cell.outside {
  background: #fafbf8;
  color: #c5cec3;
}
.calendar-cell.selected {
  background: #eaf2e7;
  box-shadow: inset 0 0 0 1px #9ab6a0;
}
.calendar-cell.today .day-number {
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
}
.day-number {
  font-size: 12px;
}
.calendar-label {
  display: block;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  background: #e6eee3;
  margin-top: 5px;
  padding: 2px 4px;
  border-radius: 3px;
  color: #4f7959;
}
.calendar-more {
  font-size: 9px;
  color: #90a18a;
}
.day-panel h2 {
  font-size: 22px;
  margin-bottom: 6px;
}
.day-panel .course-event {
  display: block;
}
.day-panel .event-time {
  width: auto;
  margin-bottom: 7px;
}
.day-panel .event-time small {
  display: inline;
  margin-left: 6px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
  align-items: start;
}
.settings-side {
  display: grid;
  gap: 22px;
}
.settings-side .panel h2 {
  font-size: 17px;
}
.settings-side summary {
  cursor: pointer;
  font-size: 13px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.settings-side summary span {
  font-size: 11px;
  margin-left: 10px;
}
.period-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}
.period-row span {
  width: 46px;
  font-size: 11px;
  flex-shrink: 0;
}
.period-row input {
  padding: 7px;
  font-size: 11px;
}
.period-row .text-button {
  width: 24px;
  flex-shrink: 0;
}
.planning-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.planning-layout h2 {
  font-size: 18px;
}
.prose {
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 2;
  color: #526d5a;
  font-size: 13px;
  min-height: 300px;
}
.prose.empty {
  color: #92a08f;
}
footer {
  font-size: 10px;
  color: #9ea99c;
  margin: 38px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
footer span {
  font-size: 8px;
  letter-spacing: 1px;
}
dialog {
  width: 520px;
  max-width: calc(100vw - 30px);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 25px 100px #143c3429;
}
dialog::backdrop {
  background: #193d3355;
  backdrop-filter: blur(3px);
}
dialog label {
  margin: 14px 0;
}
.dialog-footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 24px #193d3326;
  z-index: 100;
  max-width: min(92vw, 680px);
  font-size: 13px;
  white-space: pre-wrap;
}
.toast.error {
  background: #924c40;
}
@media (min-width: 1600px) {
  main {
    padding: 45px 55px;
  }
  .panel {
    padding: 30px;
  }
  .topbar {
    padding: 0 55px;
  }
  .sidebar {
    width: 236px;
  }
  .workspace {
    margin-left: 236px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 184px;
    padding: 34px 14px;
  }
  .workspace {
    margin-left: 184px;
  }
  main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .upcoming {
    grid-template-columns: repeat(2, 1fr);
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .day-panel .course-event {
    display: flex;
  }
  .review-layout {
    grid-template-columns: minmax(0, 1fr) 255px;
  }
  .panel {
    padding: 21px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-side {
    grid-template-columns: 1.2fr 1fr;
  }
  .planning-layout {
    grid-template-columns: 300px 1fr;
  }
  h1 {
    font-size: 28px;
  }
  .candidate-actions .button {
    padding: 8px 11px;
  }
  .review-toolbar .button {
    width: 100%;
  }
}
@media (max-width: 850px) {
  .review-layout,
  .import-grid,
  .planning-layout {
    grid-template-columns: 1fr;
  }
  .imported-panel {
    position: static;
  }
  .review-toolbar .button {
    width: auto;
  }
  .import-options .wide {
    max-width: 100%;
  }
  .dropzone {
    min-height: 240px;
  }
  .imported-panel #imported-list {
    max-height: 400px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .note-panel h2 br {
    display: none;
  }
  .note-panel {
    gap: 8px;
  }
  .settings-side {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: start;
  }
  .calendar-cell {
    min-height: 95px;
  }
}
@media (max-width: 620px) {
  .sidebar {
    position: sticky;
    top: 0;
    left: auto;
    width: 100%;
    height: auto;
    padding: 9px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fffffff5;
    backdrop-filter: blur(10px);
  }
  .brand,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    justify-content: space-between;
    gap: 2px;
  }
  nav button {
    padding: 8px 6px;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    flex: 1;
    border-radius: 8px;
  }
  nav button > span {
    font-size: 19px;
    width: auto;
  }
  nav i {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 62px;
    padding: 0 16px;
  }
  .topbar > span {
    display: none;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 5px;
  }
  .header-actions select {
    max-width: 210px;
  }
  .avatar {
    display: none;
  }
  main {
    padding: 23px 14px;
  }
  .page-heading {
    flex-direction: column;
    gap: 13px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 26px;
  }
  .stats {
    gap: 8px;
    margin-bottom: 15px;
  }
  .stat {
    padding: 15px 12px;
    border-radius: 12px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat small {
    font-size: 10px;
  }
  .stat em {
    font-size: 9px;
  }
  .panel {
    padding: 18px;
    border-radius: 14px;
  }
  .dashboard-grid {
    gap: 15px;
    margin-bottom: 15px;
  }
  .upcoming {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .upcoming-day {
    padding: 10px;
  }
  .upcoming-day header {
    flex-direction: column;
    align-items: start;
    gap: 4px;
  }
  .mini-event {
    font-size: 10px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading > .muted {
    font-size: 9px;
  }
  .review-toolbar {
    top: 65px;
    gap: 10px;
    padding: 10px;
  }
  .review-toolbar label {
    font-size: 10px;
  }
  .review-toolbar select {
    width: 108px;
    font-size: 10px;
  }
  .review-toolbar .button {
    width: 100%;
  }
  .candidate {
    padding: 14px;
  }
  .candidate-actions {
    gap: 12px;
  }
  .candidate-actions > .button {
    width: 100%;
  }
  .calendar-layout > .panel {
    padding: 12px;
  }
  .calendar-cell {
    min-height: 84px;
    padding: 6px 3px;
  }
  .calendar-label {
    font-size: 8px;
    padding: 1px 2px;
  }
  .calendar-more {
    font-size: 8px;
  }
  .calendar-cell.today .day-number {
    width: 21px;
    height: 21px;
  }
  .day-panel .course-event {
    display: flex;
  }
  .settings-grid,
  .settings-side,
  .planning-layout {
    gap: 15px;
  }
  footer {
    flex-direction: column;
    gap: 6px;
  }
  .fields.two {
    gap: 10px;
  }
  .actions {
    gap: 8px;
  }
  dialog {
    padding: 22px;
  }
  .calendar-layout {
    gap: 15px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .view {
    animation: appear 0.2s ease;
  }
  @keyframes appear {
    from {
      opacity: 0.45;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
