:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --panel-soft: #fafbfc;
  --ink: #171a1f;
  --muted: #69717d;
  --line: #e5e7eb;
  --accent: #ff2442;
  --accent-dark: #e11d38;
  --green: #0f9f6e;
  --blue: #2563eb;
  --gold: #d97706;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 22px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 650;
  --weight-bold: 750;
  --weight-heavy: 850;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: 1.5;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(430px, 520px) minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
  transition: grid-template-columns 180ms ease;
}

.app-shell.is-locked {
  display: none;
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 18px 16px 4px;
  color: var(--muted);
  font-size: var(--text-xs);
  position: static;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.app-shell.is-sidebar-collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}

.auth-gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.auth-gate.is-hidden {
  display: none;
}

.auth-shell {
  display: grid;
  width: min(100%, 980px);
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.auth-visual,
.auth-card {
  display: grid;
  align-content: center;
  gap: 22px;
  min-height: 620px;
  padding: 36px;
}

.auth-visual {
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 36, 66, 0.06), rgba(255, 255, 255, 0) 42%),
    var(--panel-soft);
}

.auth-card {
  background: var(--panel);
}

.auth-card h2 {
  margin-top: 6px;
  font-size: 28px;
  letter-spacing: 0;
}

.auth-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.auth-carousel {
  display: grid;
  gap: 16px;
}

.carousel-track {
  position: relative;
  display: flex;
  min-height: 336px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.carousel-slide {
  position: relative;
  display: grid;
  flex: 0 0 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  transform: translateX(calc(var(--carousel-index, 0) * -100%));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  min-height: 228px;
  object-fit: cover;
}

.carousel-slide figcaption {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 16px;
}

.carousel-slide strong {
  font-size: 17px;
  line-height: 1.35;
}

.carousel-slide span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #cfd5dd;
  padding: 0;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.carousel-dot.active {
  width: 22px;
  background: var(--accent);
}

.auth-notice {
  border: 1px solid #ffe0e5;
  border-radius: 8px;
  background: #fff7f8;
  color: var(--accent-dark);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
}

.auth-notice.is-hidden {
  display: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 4px;
}

.auth-tab {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.auth-tab.active {
  background: var(--panel);
  color: var(--accent);
  box-shadow: var(--shadow);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.is-hidden {
  display: none !important;
}

.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.password-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
}

.password-field input {
  border: 0;
  box-shadow: none;
}

.password-field input:focus {
  box-shadow: none;
}

.password-toggle {
  display: grid;
  width: 42px;
  height: 38px;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.password-toggle:hover {
  color: var(--accent);
}

.eye-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 999px / 70%;
}

.eye-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-toggle.is-visible .eye-icon::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 5px;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-35deg);
}

.auth-message {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-message.is-error {
  color: var(--accent-dark);
}

.auth-message.is-success {
  color: var(--green);
}

.auth-status {
  display: grid;
  gap: 4px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 12px 14px;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.auth-status strong {
  color: #1e3a8a;
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
}

.auth-status span {
  color: #315b9d;
}

.auth-status.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.auth-status.is-success strong {
  color: #166534;
}

.auth-status.is-success span {
  color: #3f7a52;
}

.auth-status.is-error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: var(--accent-dark);
}

.auth-status.is-error strong {
  color: #be123c;
}

.auth-status.is-error span {
  color: #9f1239;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-action {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 13px;
  font-weight: 750;
}

.text-action:hover {
  color: var(--accent);
}

.text-action:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.6;
}

.sidebar {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  border-right: 1px solid var(--line);
  background: #f2f4f7;
  height: 100vh;
  padding: 24px;
  overflow: visible;
}

.brand-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.brand-row > div:last-of-type {
  min-width: 0;
}

.sidebar-toggle {
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 5;
  display: grid;
  width: 26px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--accent);
  box-shadow: var(--shadow);
  font-size: var(--text-lg);
  font-weight: var(--weight-heavy);
  transform: translateY(-50%);
}

.sidebar-toggle:hover {
  border-color: var(--accent);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand-logo {
  width: 42px;
  height: 42px;
}

.brand-logo rect {
  fill: #111827;
}

.brand-logo-letter {
  fill: #fff;
}

.brand-logo-arrow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.brand-row h1 {
  font-size: var(--text-xl);
  font-weight: var(--weight-heavy);
  line-height: 1.2;
  letter-spacing: 0;
}

.brand-row p,
.eyebrow {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  line-height: 1.35;
}

.brief-form {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  padding-bottom: 12px;
}

.brief-context-panel .brief-form {
  padding-right: 4px;
}

.sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 4px;
}

.sidebar-tab {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.sidebar-tab.active {
  background: var(--panel);
  color: var(--accent);
  box-shadow: var(--shadow);
}

.sidebar-panel {
  display: none;
  min-height: 0;
}

.sidebar-panel.active {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.app-shell.is-sidebar-collapsed .sidebar {
  padding: 24px 18px;
}

.app-shell.is-sidebar-collapsed .brief-form,
.app-shell.is-sidebar-collapsed .sidebar-actions,
.app-shell.is-sidebar-collapsed .sidebar-tabs,
.app-shell.is-sidebar-collapsed .sidebar-panel {
  display: none;
}

.app-shell.is-sidebar-collapsed .brand-row {
  justify-content: center;
}

.app-shell.is-sidebar-collapsed .brand-row > div:not(.brand-mark) {
  display: none;
}

.sidebar-actions {
  display: grid;
  grid-template-columns: minmax(96px, 0.26fr) minmax(0, 1fr);
  gap: 10px;
  box-shadow: none;
}

.sidebar-actions .outline-button,
.sidebar-submit {
  min-height: 44px;
}

.form-section {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff1f3;
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-heavy);
}

.section-title h2 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: 1.35;
}

label {
  display: grid;
  gap: 7px;
  color: #3e4743;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: 1.45;
  outline: none;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
  min-height: 74px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 9px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
}

.check-card input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  line-height: 1.2;
}

.primary-action:hover {
  background: var(--accent-dark);
}

.primary-action.is-loading {
  background: var(--ink);
}

.primary-action.is-loading:hover {
  background: #2b313a;
}

.primary-action:disabled {
  background: #f3a3ad;
  cursor: not-allowed;
}

.secondary-action,
.outline-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: 1.2;
}

.secondary-action:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.outline-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.workspace {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  min-width: 0;
  height: 100vh;
  padding: 20px;
  overflow: hidden;
  background: var(--bg);
}

.workspace.is-overview-collapsed {
  grid-template-rows: auto 0 0 auto minmax(0, 1fr);
}

.topbar,
.filter-bar,
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  justify-content: flex-end;
  margin-bottom: 14px;
}

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

.actions .user-badge,
.actions .outline-button,
.actions .icon-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.user-badge {
  display: inline-flex;
  max-width: 220px;
  align-items: center;
  padding: 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 36px;
  padding: 0;
  line-height: 1;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.actions .outline-button:hover,
.actions .icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.workflow-panel {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
  max-height: 520px;
  overflow: hidden;
  transition:
    max-height 180ms ease,
    margin 180ms ease,
    padding 180ms ease,
    border-color 180ms ease,
    opacity 160ms ease;
}

.feature-title {
  display: grid;
  align-content: center;
  gap: 4px;
  border-right: 1px solid var(--line);
  padding-right: 14px;
}

.feature-title h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-heavy);
  line-height: 1.25;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.workflow-strip article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
  min-width: 0;
}

.workflow-strip article > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: #fff1f3;
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-heavy);
}

.workflow-strip strong {
  display: block;
  margin-bottom: 4px;
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  line-height: 1.35;
}

.workflow-strip p {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  max-height: 360px;
  overflow: hidden;
  transition:
    max-height 180ms ease,
    margin 180ms ease,
    padding 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 160ms ease;
}

.workspace.is-overview-collapsed .workflow-panel,
.workspace.is-overview-collapsed .token-panel {
  max-height: 0;
  margin-bottom: 0;
  border-color: transparent;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.workspace.is-overview-collapsed .token-panel {
  box-shadow: none;
}

.token-copy {
  min-width: 220px;
}

.token-copy strong {
  display: block;
  margin-top: 4px;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: 1.35;
}

.token-panel dl {
  display: grid;
  min-width: min(520px, 58%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.token-panel dl > div {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.token-panel dt {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.token-panel dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: var(--text-2xl);
  font-weight: var(--weight-heavy);
  line-height: 1.2;
}

.filter-bar {
  margin-bottom: 14px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 4px;
}

.segment {
  min-width: 0;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

.segment.active {
  background: var(--accent);
  color: #fff;
}

.search-input {
  max-width: 300px;
  background: var(--panel);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  min-height: 0;
}

.detail-panel,
.agent-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.calendar-panel {
  position: relative;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-y: auto;
  padding: 0;
}

.plan-strategy {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.strategy-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.strategy-heading h3 {
  margin-top: 4px;
  font-size: var(--text-xl);
  font-weight: var(--weight-heavy);
  line-height: 1.35;
}

.strategy-heading span {
  flex: 0 0 auto;
  border: 1px solid #ffd4dc;
  border-radius: 999px;
  background: #fff7f8;
  color: var(--accent-dark);
  padding: 4px 9px;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

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

.strategy-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px;
}

.strategy-grid span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.strategy-grid p {
  color: #2b322f;
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1.55;
}

.generation-thinking {
  position: relative;
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
}

.generation-thinking::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #e5e7eb;
}

.generation-thinking.is-complete::before {
  background: #e5e7eb;
}

.calendar-panel.is-generating {
  display: grid;
  align-content: stretch;
}

.calendar-panel.is-generating .plan-strategy,
.calendar-panel.is-generating .calendar-grid {
  display: none;
}

.calendar-panel.is-generating .generation-thinking {
  min-height: 100%;
  margin-bottom: 0;
}

.calendar-panel.is-generating .thinking-body {
  min-height: 0;
}

.calendar-panel.is-generating .thinking-log {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: min(520px, calc(100vh - 340px));
}

.calendar-panel.is-generating .thinking-stream {
  max-height: none;
}

.generation-thinking.is-hidden {
  display: none;
}

.thinking-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
}

.thinking-pulse {
  display: block;
  width: 3px;
  height: 34px;
  border-radius: 999px;
  background: #d1d5db;
}

.thinking-pulse::before {
  content: none;
}

.generation-thinking.is-complete .thinking-pulse {
  background: #d1d5db;
}

.generation-thinking.is-complete .thinking-pulse::before {
  content: none;
}

.thinking-header strong {
  display: block;
  margin-bottom: 5px;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: 1.35;
}

.thinking-header p {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1.55;
}

.thinking-body {
  display: grid;
  gap: 0;
}

.generation-thinking.is-collapsed .thinking-body {
  display: none;
}

.thinking-log {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.thinking-log-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 0;
  background: transparent;
  color: var(--ink);
  padding: 12px 0 8px;
}

.thinking-log-title span {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.thinking-log-title small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.thinking-stream {
  display: block;
  max-height: 220px;
  margin: 0;
  overflow-y: auto;
  padding: 8px 0 0;
  color: #2b322f;
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.day-card {
  display: grid;
  gap: 8px;
  min-height: 174px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 11px;
  text-align: left;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.day-card:hover,
.day-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 36, 66, 0.08);
  transform: none;
}

.day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.day-number {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.tag {
  border-radius: 999px;
  padding: 3px 8px;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.tag.education {
  background: #eff6ff;
  color: var(--blue);
}

.tag.case {
  background: #ecfdf5;
  color: var(--green);
}

.tag.experience {
  background: #f5f3ff;
  color: #7c3aed;
}

.tag.conversion {
  background: #fff1f3;
  color: var(--accent);
}

.tag.trust {
  background: #fff7ed;
  color: var(--gold);
}

.day-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: 1.35;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: #3f4650;
  padding: 4px 8px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.day-card p {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.empty-state {
  display: grid;
  gap: 8px;
  min-height: 120px;
  align-content: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 16px;
}

.empty-state strong {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.empty-state p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.cover-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #ffe0e5;
  border-radius: 6px;
  background: #fff7f8;
  color: var(--accent-dark);
  padding: 6px 8px;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 20px;
  z-index: 42;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 28px));
  min-width: 0;
  overflow-y: auto;
  border-radius: 0 0 0 12px;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.detail-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.detail-scrim {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 41;
  border: 0;
  background: rgba(17, 24, 39, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.detail-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.detail-header {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.detail-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.detail-actions .icon-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
}

.detail-actions .icon-button:hover {
  border-color: var(--accent);
  background: #fff7f8;
  color: var(--accent);
}

.detail-header h3 {
  margin-top: 4px;
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: 1.35;
}

.detail-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 4px;
}

.detail-tab {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.detail-tab.active {
  background: var(--panel);
  color: var(--accent);
  box-shadow: var(--shadow);
}

.detail-panels {
  min-height: 0;
}

.detail-panel-section {
  display: none;
}

.detail-panel-section.active {
  display: block;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
}

.detail-list div {
  display: grid;
  gap: 6px;
}

.detail-list dt {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.detail-list dd {
  margin: 0;
  color: #2b322f;
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: 1.65;
  white-space: pre-wrap;
}

.script-block {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: #2b322f;
  padding: 14px;
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: 1.7;
  white-space: pre-wrap;
}

.execution-flow {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.agent-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  position: relative;
  min-height: 0;
  height: 100%;
  padding: 4px 2px 0;
  overflow: hidden;
}

.agent-panel::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  top: 76px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 18px 48px rgba(17, 24, 39, 0.08),
    0 0 0 1px rgba(229, 231, 235, 0.6);
}

.context-card {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  padding: 9px 11px;
}

.context-card.is-hidden {
  display: none;
}

.agent-panel:has(.context-card:not(.is-hidden)) .agent-form {
  bottom: 18px;
}

.agent-panel:has(.context-card:not(.is-hidden)) .agent-messages {
  padding-top: 22px;
}

.context-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.context-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.context-switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.context-summary {
  color: #3f4650;
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.context-summary.is-muted {
  color: var(--muted);
}

.brief-context-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.28);
  padding: 24px;
}

.brief-context-modal.is-collapsed {
  display: none;
}

.brief-context-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  width: min(720px, calc(100vw - 36px));
  max-height: min(760px, calc(100vh - 48px));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.18);
  padding: 18px;
}

.brief-context-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.brief-context-header h2 {
  margin-top: 3px;
  font-size: var(--text-xl);
  font-weight: var(--weight-heavy);
  line-height: 1.3;
}

.brief-context-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 2;
  border-bottom: 0;
  padding-bottom: 0;
}

.agent-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.agent-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.agent-avatar {
  position: relative;
  display: grid;
  width: 58px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff url("./assets/agent-owl-original.png") center / 88% auto no-repeat;
  color: transparent;
  font-size: 0;
  font-weight: var(--weight-heavy);
  line-height: 1;
  filter: drop-shadow(0 10px 14px rgba(17, 24, 39, 0.12));
  overflow: hidden;
}

.agent-avatar::before {
  content: none;
}

.agent-avatar::after {
  content: none;
}

.agent-header h3 {
  margin-top: 0;
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  line-height: 1.35;
}

.agent-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-tool-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  box-shadow: none;
  transition:
    border-color 0.16s ease,
    color 0.16s ease,
    background 0.16s ease;
}

.agent-tool-button:hover {
  border-color: #cfd5dd;
  background: var(--panel-soft);
  color: var(--ink);
}

.agent-tool-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.agent-messages {
  display: grid;
  align-content: start;
  gap: 16px;
  position: relative;
  z-index: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  border-radius: 18px;
  background: transparent;
  padding: 30px 18px 112px;
  box-shadow: none;
  scrollbar-width: none;
}

.agent-messages::-webkit-scrollbar,
.brief-form::-webkit-scrollbar,
.calendar-panel::-webkit-scrollbar,
.thinking-stream::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.agent-empty {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px 2px 0;
  text-align: left;
  box-shadow: none;
}

.agent-empty-mark {
  display: none;
}

.agent-empty strong {
  color: var(--ink);
  font-size: var(--text-xl);
  font-weight: var(--weight-heavy);
  line-height: 1.3;
}

.agent-empty p {
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1.6;
}

.agent-empty-prompts {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.agent-empty-prompts button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #3f4650;
  padding: 12px 14px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.45;
  text-align: left;
}

.agent-empty-prompts button:hover {
  border-color: #ffd4dc;
  background: #fff7f8;
  color: var(--accent);
}

.agent-message {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 100%;
  border: 0;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: none;
}

.agent-message p {
  color: #2b322f;
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1.7;
  white-space: pre-wrap;
  padding: 2px 4px;
}

.agent-message .agent-process {
  border: 0;
  border-left: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 0 0 10px;
}

.agent-message .agent-thinking {
  color: var(--muted);
  font-weight: var(--weight-regular);
}

.agent-message.is-user {
  grid-template-columns: minmax(0, 1fr);
  justify-self: end;
  max-width: 88%;
  border: 0;
  border-radius: 14px;
  background: #fff7f8;
  padding: 12px 15px;
}

.agent-message.is-user p {
  color: var(--ink);
  font-weight: var(--weight-regular);
}

.agent-message.is-agent {
  justify-self: start;
  max-width: 100%;
  padding: 14px 16px;
}

.agent-form {
  border-top: 0;
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  z-index: 3;
  padding-top: 0;
}

.agent-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  border: 0;
  border-radius: 14px 14px 18px 18px;
  background: #fbfcfd;
  padding: 10px;
  box-shadow:
    0 -10px 24px rgba(17, 24, 39, 0.06),
    0 0 0 1px rgba(229, 231, 235, 0.9);
}

.agent-composer:focus-within {
  box-shadow:
    0 20px 46px rgba(17, 24, 39, 0.18),
    0 0 0 2px rgba(255, 36, 66, 0.16);
}

.agent-form textarea {
  height: 40px;
  min-height: 40px;
  max-height: 120px;
  resize: none;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px 10px;
  line-height: 1.5;
  overflow-y: auto;
  scrollbar-width: none;
  box-shadow: none;
}

.agent-form textarea:focus {
  box-shadow: none;
}

.agent-form textarea::-webkit-scrollbar {
  display: none;
}

.agent-send-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  padding: 0;
}

.agent-send-button.is-loading {
  background: var(--ink);
}

.agent-send-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.agent-send-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stop-icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: currentColor;
}

@keyframes sendButtonPulse {
  50% {
    opacity: 0.45;
    transform: translateY(-1px);
  }
}

.execution-flow h4 {
  margin: 0 0 12px;
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
}

.execution-flow ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.execution-flow li {
  color: #2b322f;
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1.6;
}

.app-tip {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  display: flex;
  width: fit-content;
  min-width: 220px;
  max-width: min(420px, calc(100vw - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: translateX(calc(100% + 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.14);
  color: var(--ink);
  padding: 12px 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.app-tip.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.app-tip.is-hidden {
  display: none;
}

.app-tip strong {
  display: block;
  margin-bottom: 4px;
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

.app-tip p {
  max-width: 300px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.app-tip button {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: #3f4650;
  padding: 0 10px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.app-tip button:hover {
  border-color: #d1d5db;
  background: #f1f5f9;
  color: var(--ink);
}

.app-tip.is-success {
  border-color: #b8e5ce;
}

.app-tip.is-error {
  border-color: #ffc0ca;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.34);
  padding: 24px;
}

.modal-layer.is-hidden {
  display: none;
}

.modal-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.18);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.modal-header h2 {
  margin-top: 4px;
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.history-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 14px 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 4px;
}

.history-tab {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.history-tab.active {
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow);
}

.history-list {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
}

.history-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  text-align: left;
}

.history-item:hover {
  border-color: var(--accent);
}

.history-item strong {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: 1.35;
}

.history-item p {
  color: #3f4650;
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1.5;
}

.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
}

.history-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

@media (max-width: 1120px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .workflow-panel {
    grid-template-columns: 1fr;
  }

  .feature-title {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 10px;
  }

  .workflow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .token-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .token-panel dl {
    width: 100%;
    min-width: 0;
  }

  .content-layout {
    height: auto;
    min-height: 0;
    overflow-y: auto;
  }
}

@media (max-width: 760px) {
  .app-shell {
    height: auto;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .app-shell.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-shell.is-sidebar-collapsed .brand-row {
    display: flex;
  }

  .app-shell.is-sidebar-collapsed .brand-row > div:not(.brand-mark),
  .app-shell.is-sidebar-collapsed .brief-form,
  .app-shell.is-sidebar-collapsed .sidebar-actions,
  .app-shell.is-sidebar-collapsed .sidebar-tabs,
  .app-shell.is-sidebar-collapsed .sidebar-panel.active {
    display: grid;
  }

  .brief-form {
    overflow: visible;
  }

  .sidebar-actions {
    box-shadow: none;
  }

  .workspace {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
}

@media (max-width: 920px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-card {
    min-height: auto;
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .sidebar,
  .workspace {
    padding: 16px;
  }

  .brief-context-panel {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    padding: 14px;
  }

  .brief-context-header {
    align-items: stretch;
    flex-direction: column;
  }

  .brief-context-header-actions {
    justify-content: space-between;
  }

  .auth-gate {
    padding: 14px;
  }

  .auth-card {
    padding: 20px;
  }

  .auth-card h2 {
    font-size: 24px;
  }

  .two-col,
  .toggle-grid,
  .workflow-strip {
    grid-template-columns: 1fr;
  }

  .token-panel dl {
    grid-template-columns: 1fr;
  }

  .token-panel dl > div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    padding-left: 0;
  }

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

  .agent-form .primary-action {
    width: 100%;
  }

  .detail-panel {
    bottom: 0;
    width: min(100vw, 440px);
    border-radius: 0;
  }

  .app-tip {
    top: 12px;
    right: 12px;
    width: calc(100vw - 24px);
  }

  .topbar,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .actions {
    flex-wrap: wrap;
  }

  .user-badge {
    max-width: 100%;
  }

  .segmented {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .segment,
  .search-input {
    width: 100%;
    max-width: none;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .modal-layer {
    padding: 12px;
  }

  .modal-panel {
    max-height: calc(100vh - 24px);
  }

  .modal-header {
    padding: 14px;
  }
}
