:root {
  --side: #231a16;
  --side-soft: #322620;
  --side-line: rgba(255, 255, 255, 0.1);
  --paper: #f4f1ea;
  --cream: #fffaf3;
  --white: #ffffff;
  --ink: #241b17;
  --ink-soft: #4a3d36;
  --muted: #727872;
  --line: #ddd7cc;
  --line-strong: #c5beb2;
  --orange: #e5653d;
  --orange-deep: #bc4728;
  --orange-soft: #f8e2d7;
  --sage: #efc7b5;
  --sage-soft: #fae8df;
  --teal: #a94329;
  --display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
textarea,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

img {
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(229, 101, 61, 0.52);
  outline-offset: 2px;
}

::selection {
  background: var(--orange-soft);
}

.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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 13px;
  color: var(--white);
  background: var(--orange-deep);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-frame {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 24px 17px 17px;
  color: #f5f1e9;
  background: var(--side);
}

.app-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  align-self: flex-start;
  margin: 0 7px 25px;
}

.app-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--side);
  background: #f4c7a8;
  border-radius: 9px 9px 9px 2px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  place-items: center;
}

.app-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.app-brand b {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.03em;
}

.app-brand small {
  margin-top: 4px;
  color: #ac9e95;
  font-size: 9px;
  letter-spacing: 0.11em;
}

.new-content-button {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  height: 41px;
  padding: 0 12px;
  color: #f8f3ea;
  background: #352821;
  border: 1px solid var(--side-line);
  border-radius: 5px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}

.new-content-button:hover {
  background: #46342b;
}

.new-content-button > span {
  color: #f4c7a8;
  font-size: 17px;
}

.new-content-button kbd {
  padding: 1px 5px;
  margin-left: auto;
  color: #a3948b;
  background: transparent;
  border: 1px solid #58463d;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 8px;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 21px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.nav-group-label {
  display: block;
  padding: 14px 11px 5px;
  color: #aa9b92;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-group-label:first-of-type {
  padding-top: 10px;
}

.app-nav-item {
  position: relative;
  display: flex;
  gap: 11px;
  align-items: center;
  height: 39px;
  padding: 0 11px;
  color: #b6a79e;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.app-nav-item::before {
  position: absolute;
  top: 11px;
  left: -17px;
  width: 2px;
  height: 17px;
  content: "";
  background: #f0a37d;
  opacity: 0;
}

.app-nav-item svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.app-nav-item:hover {
  color: #f5f1e9;
  background: rgba(255, 255, 255, 0.04);
}

.app-nav-item.is-active {
  color: #fff8ef;
  background: var(--side-soft);
}

.app-nav-item.is-active::before {
  opacity: 1;
}

.sidebar-section {
  min-height: 0;
  padding-top: 28px;
  margin-top: 25px;
  border-top: 1px solid var(--side-line);
}

.sidebar-label {
  display: block;
  padding: 0 11px 8px;
  color: #857870;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.recent-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.recent-nav button {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  overflow: hidden;
  color: #a6978e;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 10px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease;
}

.recent-nav button:hover {
  color: #f5f1e9;
  background: rgba(255, 255, 255, 0.035);
}

.recent-nav button i {
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  background: #84776f;
  border-radius: 50%;
}

.recent-nav button span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-bottom {
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--side-line);
}

.local-note {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px 9px 12px;
}

.local-note > i {
  width: 6px;
  height: 6px;
  background: #c58c77;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(143, 177, 165, 0.09);
}

.local-note div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.local-note b {
  color: #e8ddd6;
  font-size: 9px;
  font-weight: 600;
}

.local-note span {
  margin-top: 2px;
  color: #83766e;
  font-size: 8px;
}

.back-to-site {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  color: #998b82;
  font-size: 9px;
}

.back-to-site:hover {
  color: #f4f1e9;
}

.back-to-site svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.app-topbar {
  display: flex;
  gap: 20px;
  align-items: center;
  min-height: 66px;
  padding: 0 35px;
  background: rgba(244, 241, 234, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.mobile-menu-button {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.mobile-menu-button span {
  display: block;
  width: 15px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
}

.view-title {
  display: flex;
  flex-direction: column;
  min-width: 115px;
  line-height: 1.2;
}

.view-title span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.view-title b {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 15px;
}

.global-search {
  display: flex;
  gap: 9px;
  align-items: center;
  width: min(330px, 34vw);
  height: 34px;
  padding: 0 10px;
  margin-left: auto;
  color: var(--muted);
  background: rgba(255, 250, 243, 0.7);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.global-search:focus-within {
  border-color: #d79e85;
  box-shadow: 0 0 0 3px rgba(229, 101, 61, 0.08);
}

.global-search svg {
  flex: 0 0 auto;
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.global-search input {
  min-width: 0;
  flex: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 10px;
}

.global-search input::placeholder {
  color: #969b95;
}

.global-search kbd {
  padding: 1px 4px;
  color: #969b95;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 8px;
}

.topbar-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  padding: 0;
  color: var(--cream);
  background: var(--teal);
  border: 0;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 12px;
  place-items: center;
}

.workspace-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.app-view,
.search-view {
  min-height: 100%;
  padding: 37px clamp(28px, 4vw, 62px) 76px;
}

.app-view.is-active {
  animation: view-in 350ms var(--ease) both;
}

.home-intro {
  max-width: 1000px;
}

.date-line {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.date-line i {
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

.home-intro h1 {
  max-width: 690px;
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(40px, 4.4vw, 65px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.home-intro > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: clamp(30px, 5vw, 75px);
  max-width: 1120px;
  margin-top: 42px;
}

.start-composer {
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 15px 40px rgba(47, 40, 31, 0.06);
}

.start-composer:focus-within {
  border-color: #b67258;
  box-shadow: 0 15px 40px rgba(47, 40, 31, 0.06), 0 0 0 3px rgba(229, 101, 61, 0.08);
}

.start-composer textarea {
  display: block;
  width: 100%;
  min-height: 104px;
  padding: 21px 22px 9px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.75;
  resize: none;
}

.start-composer textarea::placeholder {
  color: #a0a49d;
}

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 12px 13px;
}

.composer-tools {
  display: flex;
  gap: 4px;
}

.composer-tools button {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 7px 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 9px;
  cursor: pointer;
}

.composer-tools button:hover {
  color: var(--ink);
  background: var(--paper);
}

.composer-tools svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.send-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--cream);
  background: var(--orange-deep);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  transition: background 160ms ease, transform 160ms ease;
}

.send-button:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

.send-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.prompt-row button,
.chat-suggestions button {
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.prompt-row button:hover,
.chat-suggestions button:hover {
  color: var(--orange-deep);
  border-color: #d6a18a;
}

.gallery-teaser {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  width: 100%;
  padding: 14px 15px;
  margin-top: 19px;
  color: var(--ink);
  text-align: left;
  background: var(--cream);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.gallery-teaser:hover {
  background: #fffdf8;
  border-color: #c5a18e;
}

.gallery-teaser-mark {
  display: grid;
  grid-template-columns: 9px 9px;
  grid-template-rows: 9px 9px;
  gap: 3px;
  place-content: center;
  width: 39px;
  height: 39px;
  background: var(--sage-soft);
}

.gallery-teaser-mark i {
  display: block;
  background: var(--teal);
}

.gallery-teaser-mark i:nth-child(2) {
  background: var(--orange);
}

.gallery-teaser-mark i:nth-child(4) {
  opacity: 0.42;
}

.opc-home-mark {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  color: var(--cream);
  background: var(--ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.opc-home-entry {
  margin-top: 8px;
}

.gallery-teaser > span:nth-child(2) {
  min-width: 0;
}

.gallery-teaser b {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
}

.gallery-teaser small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-teaser em {
  color: var(--orange-deep);
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
}

.gallery-teaser em span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 160ms ease;
}

.gallery-teaser:hover em span {
  transform: translate(2px, -2px);
}

.gallery-head {
  align-items: flex-start;
}

.gallery-head h1 {
  max-width: 740px;
}

.gallery-count {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--teal);
  background: var(--sage-soft);
  border-radius: 999px;
  font-size: 8px;
}

.gallery-count b {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
}

.gallery-toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-filters {
  display: flex;
  gap: 3px;
}

.gallery-filters button {
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 8px;
  cursor: pointer;
}

.gallery-filters button:hover {
  color: var(--ink);
}

.gallery-filters button.is-active {
  color: var(--ink);
  background: var(--sage-soft);
}

.gallery-search {
  display: flex;
  gap: 7px;
  align-items: center;
  width: 215px;
  height: 31px;
  padding: 0 9px;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--line);
}

.gallery-search:focus-within {
  border-color: #c59079;
  box-shadow: 0 0 0 3px rgba(229, 101, 61, 0.07);
}

.gallery-search svg {
  flex: 0 0 auto;
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.gallery-search input {
  min-width: 0;
  flex: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 9px;
}

.workbench-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 18px;
}

.workbench-template {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 244px;
  padding: 20px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: border-color 160ms ease, transform 180ms ease;
}

.workbench-template:hover {
  border-color: #be917b;
  transform: translateY(-2px);
}

.workbench-template::after {
  position: absolute;
  top: -50px;
  right: -57px;
  width: 140px;
  height: 140px;
  content: "";
  border: 1px solid rgba(169, 67, 41, 0.13);
  border-radius: 50%;
}

.workbench-template.is-enabled {
  background: #fbf1eb;
  border-color: #e8cfc4;
}

.workbench-template-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.workbench-glyph {
  display: grid;
  width: 35px;
  height: 35px;
  color: var(--teal);
  background: var(--sage-soft);
  font-family: var(--display);
  font-size: 14px;
  place-items: center;
}

.workbench-template[data-tone="orange"] .workbench-glyph {
  color: var(--orange-deep);
  background: var(--orange-soft);
}

.workbench-template[data-tone="yellow"] .workbench-glyph {
  color: #6c5a2c;
  background: #f3ebcf;
}

.workbench-template[data-tone="dark"] .workbench-glyph {
  color: var(--cream);
  background: var(--ink);
}

.enabled-badge {
  padding: 3px 7px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font-size: 7px;
}

.workbench-template > span {
  position: relative;
  z-index: 1;
  margin-top: 19px;
  color: var(--muted);
  font-size: 8px;
}

.workbench-template h2 {
  position: relative;
  z-index: 1;
  margin: 4px 0 7px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}

.workbench-template > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.workbench-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.workbench-tools span {
  padding: 3px 6px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 7px;
}

.workbench-enable {
  padding: 6px 9px;
  color: var(--orange-deep);
  background: transparent;
  border: 1px solid var(--line);
  font-size: 8px;
  cursor: pointer;
}

.workbench-template.is-enabled .workbench-enable {
  color: var(--teal);
  border-color: #e9d1c6;
}

.workbench-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.workbench-disable {
  padding: 6px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 8px;
  cursor: pointer;
}

.workbench-disable:hover {
  color: var(--orange-deep);
}

.active-workbench-entry {
  background:
    linear-gradient(90deg, rgba(229, 101, 61, 0.08), transparent 62%),
    var(--cream);
  border-color: #e3c9bd;
}

.active-workbench-entry .gallery-teaser-mark {
  color: var(--orange-deep);
  background: var(--orange-soft);
  font-size: 16px;
}

.active-workbench-entry b {
  margin-top: 2px;
}

.gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
}

.gallery-empty b {
  font-family: var(--display);
  font-size: 19px;
}

.gallery-empty p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.gallery-empty button {
  padding: 7px 10px;
  margin-top: 14px;
  color: var(--orange-deep);
  background: transparent;
  border: 1px solid var(--line);
  font-size: 8px;
  cursor: pointer;
}

.workbench-view-head {
  align-items: flex-end;
}

.workbench-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 18px;
  max-width: 1120px;
  margin-top: 32px;
}

.workbench-overview,
.workbench-task-panel {
  min-height: 504px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.workbench-overview {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
}

.workbench-overview::after {
  position: absolute;
  top: -100px;
  right: -90px;
  width: 260px;
  height: 260px;
  content: "";
  border: 1px solid rgba(169, 67, 41, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.workbench-overview-head {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 17px;
  align-items: center;
}

.workbench-detail-glyph {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  color: var(--orange-deep);
  background: var(--orange-soft);
  font-size: 22px;
  place-items: center;
}

.workbench-overview-head > div span {
  color: var(--orange-deep);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.workbench-overview-head h2,
.workbench-task-head h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
}

.workbench-focus-field {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 31px;
}

.workbench-focus-field > span,
.workbench-tool-head > span {
  color: var(--muted);
  font-size: 9px;
}

.workbench-focus-field textarea {
  width: 100%;
  min-height: 132px;
  padding: 16px 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: 0;
  resize: vertical;
  font-size: 12px;
  line-height: 1.8;
}

.workbench-focus-field textarea:focus {
  border-color: #d49a81;
  box-shadow: 0 0 0 3px rgba(229, 101, 61, 0.08);
}

.workbench-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.workbench-tool-head small {
  color: #93978f;
  font-size: 8px;
}

.workbench-detail-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.workbench-detail-tools button {
  padding: 8px 11px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 9px;
  cursor: pointer;
}

.workbench-detail-tools button:hover {
  color: var(--orange-deep);
  background: var(--orange-soft);
  border-color: #e5c1b2;
}

#workbench-ask {
  position: relative;
  z-index: 1;
  margin-top: 25px;
}

.workbench-task-panel {
  display: flex;
  flex-direction: column;
  padding: 29px 27px 22px;
}

.workbench-task-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.workbench-task-head > div > span {
  color: var(--orange-deep);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.workbench-task-head h2 {
  font-size: 20px;
}

.workbench-task-head > b {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--teal);
  background: var(--sage-soft);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 500;
}

.workbench-task-form {
  display: flex;
  margin-top: 23px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.workbench-task-form:focus-within {
  border-color: #d49a81;
  box-shadow: 0 0 0 3px rgba(229, 101, 61, 0.08);
}

.workbench-task-form input {
  min-width: 0;
  flex: 1;
  height: 39px;
  padding: 0 11px;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 10px;
}

.workbench-task-form button {
  padding: 0 13px;
  color: var(--cream);
  background: var(--ink);
  border: 0;
  font-size: 9px;
  cursor: pointer;
}

.workbench-task-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}

.workbench-task-item {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) 22px;
  gap: 9px;
  align-items: start;
  padding: 11px 10px;
  background: var(--paper);
  border: 1px solid transparent;
  cursor: pointer;
}

.workbench-task-item:hover {
  border-color: var(--line);
}

.workbench-task-item input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--orange-deep);
}

.workbench-task-item span {
  font-size: 10px;
  line-height: 1.65;
}

.workbench-task-item.is-done span {
  color: var(--muted);
  text-decoration: line-through;
}

.workbench-task-item button {
  width: 22px;
  height: 22px;
  padding: 0;
  color: #9a8f88;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.workbench-task-item button:hover {
  color: var(--orange-deep);
}

.workbench-task-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 16px;
  text-align: center;
}

.workbench-task-empty span {
  font-family: var(--display);
  font-size: 16px;
}

.workbench-task-empty p {
  max-width: 240px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.continue-section {
  margin-top: 38px;
}

.section-head {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-head > div:first-child {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
}

.section-head span {
  color: var(--muted);
  font-size: 9px;
}

.section-head > button {
  padding: 0;
  color: var(--orange-deep);
  background: transparent;
  border: 0;
  font-size: 9px;
  cursor: pointer;
}

.continue-list {
  display: flex;
  flex-direction: column;
}

.continue-item {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  width: 100%;
  padding: 15px 4px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.continue-item:hover {
  background: rgba(255, 250, 243, 0.68);
}

.continue-icon {
  display: grid;
  width: 33px;
  height: 33px;
  color: var(--teal);
  background: var(--sage-soft);
  border-radius: 4px;
  font-size: 11px;
  place-items: center;
}

.continue-icon.meeting {
  color: var(--orange-deep);
  background: var(--orange-soft);
}

.continue-icon.canvas {
  color: #695727;
  background: #f4edcf;
}

.continue-icon.workbench {
  color: var(--cream);
  background: var(--ink);
}

.continue-copy {
  min-width: 0;
}

.continue-copy b {
  display: block;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continue-copy span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continue-item time {
  color: #969b95;
  font-size: 8px;
}

.home-aside {
  padding-top: 0;
}

.aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}

.aside-head button {
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.aside-head button:hover svg {
  transform: rotate(80deg);
}

.aside-head svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  transition: transform 240ms var(--ease);
}

.today-summary {
  margin-top: 11px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
}

.today-summary-main {
  position: relative;
  padding: 23px 24px 21px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.today-summary-main::after {
  position: absolute;
  right: -41px;
  bottom: -66px;
  width: 145px;
  height: 145px;
  content: "";
  border: 1px solid rgba(169, 67, 41, 0.13);
  border-radius: 50%;
}

.today-summary-main > span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.today-summary-main b {
  display: block;
  margin-top: 7px;
  font-family: var(--display);
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
}

.today-summary-main small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}

.today-summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.today-summary-stats > div {
  padding: 15px 20px 16px;
}

.today-summary-stats > div + div {
  border-left: 1px solid var(--line);
}

.today-summary-stats b {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}

.today-summary-stats span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.assistant-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  margin-top: 12px;
  background: var(--sage-soft);
  border: 1px solid #ecd8cd;
}

.assistant-strip img {
  flex: 0 0 auto;
  border: 1px solid rgba(169, 67, 41, 0.2);
  border-radius: 50%;
  object-fit: cover;
}

.assistant-strip > div {
  min-width: 0;
}

.assistant-strip b {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
}

.assistant-strip .model-state {
  display: flex;
  padding: 0;
  margin-top: 3px;
  background: transparent;
  font-size: 9px;
}

.assistant-card {
  position: relative;
  padding: 29px 25px 22px;
  margin-top: 11px;
  overflow: hidden;
  text-align: center;
  background: var(--sage-soft);
  border: 1px solid #ecd8cd;
}

.assistant-card::after {
  position: absolute;
  right: -48px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  content: "";
  border: 1px solid rgba(169, 67, 41, 0.16);
  border-radius: 50%;
}

.assistant-orbit {
  position: relative;
  display: grid;
  width: 102px;
  height: 102px;
  margin: 0 auto;
  border: 1px solid rgba(169, 67, 41, 0.25);
  border-radius: 50%;
  place-items: center;
}

.assistant-orbit::before {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px dashed rgba(169, 67, 41, 0.24);
  border-radius: 50%;
  animation: orbit 18s linear infinite;
}

.assistant-orbit img {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  object-fit: cover;
}

.assistant-orbit i {
  position: absolute;
  top: 3px;
  right: 12px;
  z-index: 2;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border: 2px solid var(--sage-soft);
  border-radius: 50%;
}

.assistant-card h2 {
  margin: 16px 0 7px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
}

.assistant-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.8;
}

.model-state {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 5px 9px;
  margin-top: 15px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  font-size: 8px;
}

.model-state i {
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
}

.model-state.is-offline {
  color: #8a5d24;
}

.model-state.is-offline i {
  background: #a97636;
}

.focus-card {
  position: relative;
  padding: 22px 23px 18px;
  margin-top: 14px;
  color: var(--cream);
  background: var(--ink);
}

.focus-card::after {
  position: absolute;
  right: 19px;
  bottom: 18px;
  width: 23px;
  height: 23px;
  content: "↗";
  color: #9d8f86;
  font-size: 16px;
}

.focus-card > span {
  color: #9b8d84;
  font-size: 8px;
  letter-spacing: 0.07em;
}

.focus-card p {
  margin: 13px 0 21px;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.75;
}

.focus-card small {
  color: #8d8078;
  font-size: 8px;
}

.view-head {
  display: flex;
  gap: 36px;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 1120px;
}

.view-head > div > span,
.canvas-head > div > span {
  color: var(--orange-deep);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.view-head h1,
.canvas-head h1 {
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.view-head p {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.primary-action,
.secondary-action {
  flex: 0 0 auto;
  min-height: 39px;
  padding: 0 15px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.primary-action {
  color: var(--cream);
  background: var(--orange-deep);
  border: 1px solid var(--orange-deep);
}

.primary-action:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.secondary-action {
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
}

.secondary-action:hover {
  color: var(--orange-deep);
  background: var(--cream);
  border-color: #d19b84;
}

.chat-layout {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  height: calc(100vh - 66px);
  height: calc(100dvh - 66px);
  margin: -37px clamp(-62px, -4vw, -28px) -76px;
}

.thread-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 28px 17px;
  background: rgba(255, 250, 243, 0.66);
  border-right: 1px solid var(--line);
}

.thread-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 8px 18px;
}

.thread-list-head span {
  color: var(--muted);
  font-size: 8px;
}

.thread-list-head h1 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
}

.thread-list-head button {
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--orange-deep);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

#thread-items {
  overflow-y: auto;
}

.thread-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.thread-item:hover {
  background: rgba(232, 238, 228, 0.58);
}

.thread-item.is-active {
  background: var(--sage-soft);
}

.thread-item b {
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--paper);
}

.conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 67px;
  padding: 0 clamp(22px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
}

.conversation-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
}

.conversation-head span {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.conversation-head span i {
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
}

.icon-button {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.icon-button:hover {
  color: var(--ink);
  background: var(--cream);
}

.icon-button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.message-log {
  flex: 1;
  min-height: 0;
  padding: 38px clamp(24px, 8vw, 130px) 15px;
  overflow-y: auto;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.chat-empty img {
  margin-bottom: 23px;
  border-radius: 50%;
}

.chat-empty h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 49px);
  font-weight: 600;
  line-height: 1.25;
}

.chat-empty p {
  max-width: 430px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.message {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 27px;
}

.message.user {
  justify-content: flex-end;
}

.message-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 50%;
  place-items: center;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-body {
  max-width: min(82%, 650px);
}

.message.user .message-body {
  padding: 11px 14px;
  color: var(--cream);
  background: var(--ink);
  border-radius: 11px 11px 3px 11px;
  font-size: 11px;
  line-height: 1.75;
}

.message.assistant .message-body {
  padding-top: 2px;
}

.message-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 8px;
}

.message-meta b {
  color: var(--ink);
  font-size: 9px;
  font-weight: 650;
}

.message-content {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.message.user .message-content {
  color: var(--cream);
}

.message-loading .message-content {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 22px;
}

.message-loading .message-content span {
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
  animation: typing 1s infinite;
}

.message-loading .message-content span:nth-child(2) {
  animation-delay: 120ms;
}

.message-loading .message-content span:nth-child(3) {
  animation-delay: 240ms;
}

.local-reply-note {
  display: inline-block;
  padding: 2px 6px;
  margin-top: 8px;
  color: #88612b;
  background: #f3e9cc;
  border-radius: 2px;
  font-size: 8px;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 720px;
  padding: 0 clamp(24px, 8vw, 130px);
  margin: 0 auto 9px;
}

.chat-composer {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 720px;
  padding: 7px 8px 7px 15px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.chat-composer:focus-within {
  border-color: #bd8067;
  box-shadow: 0 0 0 3px rgba(229, 101, 61, 0.08);
}

.chat-composer textarea {
  flex: 1;
  max-height: 120px;
  padding: 7px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 11px;
  line-height: 1.6;
  resize: none;
}

.chat-composer textarea::placeholder {
  color: #9ca19b;
}

.chat-composer button {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--cream);
  background: var(--orange-deep);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.chat-composer button:disabled {
  opacity: 0.48;
  cursor: wait;
}

.chat-composer svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.model-disclaimer {
  max-width: 720px;
  margin: 7px auto 15px;
  color: #999d97;
  font-size: 7px;
  text-align: center;
}

.meeting-overview {
  display: grid;
  grid-template-columns: minmax(290px, 1.15fr) minmax(320px, 1fr);
  gap: 24px;
  margin-top: 38px;
}

.meeting-feature {
  position: relative;
  min-height: 260px;
  padding: 27px 29px;
  color: var(--cream);
  background: var(--ink);
  overflow: hidden;
}

.meeting-feature::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.meeting-feature > span {
  color: #aa9c93;
  font-size: 8px;
}

.meeting-feature h2 {
  margin: 21px 0 8px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
}

.meeting-feature p {
  max-width: 420px;
  margin: 0;
  color: #e5d5cc;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.75;
}

.feature-meta {
  display: flex;
  gap: 19px;
  margin-top: 25px;
  color: #93857d;
  font-size: 8px;
}

.meeting-feature > button {
  position: absolute;
  right: 27px;
  bottom: 25px;
  z-index: 1;
  padding: 7px 10px;
  color: #e9c3b0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 8px;
  cursor: pointer;
}

.meeting-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 260px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.meeting-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.meeting-stats > div:first-child {
  border-left: 0;
}

.meeting-stats b {
  font-family: var(--display);
  font-size: clamp(35px, 4vw, 54px);
  font-weight: 500;
  line-height: 1;
}

.meeting-stats span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 8px;
}

.recordings-section {
  margin-top: 46px;
}

.record-filter {
  display: flex;
  gap: 3px;
}

.record-filter button,
.library-filter button {
  padding: 4px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 8px;
  cursor: pointer;
}

.record-filter button.is-active,
.library-filter button.is-active {
  color: var(--ink);
  background: var(--sage-soft);
}

.recording-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.recording-card {
  padding: 19px 19px 16px;
  text-align: left;
  background: var(--cream);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 160ms ease, transform 180ms ease;
}

.recording-card:hover {
  border-color: #c6a18f;
  transform: translateY(-2px);
}

.recording-card > span {
  color: var(--muted);
  font-size: 8px;
}

.recording-card h3 {
  margin: 12px 0 6px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
}

.recording-card p {
  display: -webkit-box;
  min-height: 43px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recording-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 8px;
}

.recording-foot b {
  color: var(--teal);
  font-weight: 600;
}

.canvas-view {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 66px);
  height: calc(100dvh - 66px);
  padding: 27px clamp(24px, 3.2vw, 45px) 25px;
  margin: -37px clamp(-62px, -4vw, -28px) -76px;
  overflow: hidden;
}

.canvas-head {
  display: flex;
  flex: 0 0 auto;
  gap: 30px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 19px;
}

.canvas-head h1 {
  margin-top: 5px;
  font-size: clamp(25px, 2.5vw, 34px);
}

.canvas-actions {
  display: flex;
  gap: 8px;
}

.canvas-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-bottom: 0;
}

.canvas-tool-group,
.canvas-zoom {
  display: flex;
  gap: 2px;
  align-items: center;
}

.canvas-tool-group button,
.canvas-zoom button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  place-items: center;
}

.canvas-tool-group button.is-active {
  color: var(--orange-deep);
  background: var(--orange-soft);
}

.canvas-toolbar > span {
  color: var(--muted);
  font-size: 8px;
}

.canvas-zoom span {
  min-width: 35px;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.canvas-board {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #e9e6de;
  border: 1px solid var(--line);
  touch-action: none;
}

.canvas-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(25, 33, 31, 0.2) 0.65px, transparent 0.65px);
  background-size: 19px 19px;
  opacity: 0.48;
}

.canvas-connection {
  position: absolute;
  border-top: 1px dashed rgba(188, 71, 40, 0.48);
  pointer-events: none;
}

.connection-a {
  top: 29%;
  left: 35%;
  width: 35%;
  height: 25%;
  border-right: 1px dashed rgba(188, 71, 40, 0.48);
  border-radius: 0 70px 0 0;
}

.connection-b {
  top: 58%;
  left: 31%;
  width: 28%;
  border-radius: 50%;
  transform: rotate(16deg);
}

.canvas-card {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: clamp(170px, 17vw, 229px);
  padding: 18px;
  background: var(--cream);
  border: 1px solid rgba(25, 33, 31, 0.12);
  box-shadow: 0 16px 28px rgba(47, 40, 31, 0.1);
  cursor: grab;
  transform: rotate(var(--rotate));
  user-select: none;
}

.canvas-card:active {
  cursor: grabbing;
}

.canvas-card.is-dragging {
  z-index: 5;
  box-shadow: 0 23px 48px rgba(47, 40, 31, 0.18);
}

.canvas-card > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.canvas-card p {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.7;
  user-select: text;
}

.canvas-card small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 7px;
}

.canvas-card.is-key {
  background: #f4e8c8;
}

.canvas-card.is-idea {
  background: #f5e7df;
}

.canvas-card.is-draft {
  background: #f8e4d8;
}

.canvas-card.is-question {
  background: var(--white);
}

.canvas-card > button {
  padding: 0;
  margin-top: 13px;
  color: var(--orange-deep);
  background: transparent;
  border: 0;
  font-size: 8px;
  cursor: pointer;
}

.canvas-image-card {
  padding: 12px;
}

.canvas-image-card img {
  width: 100%;
  margin-top: 9px;
  border-radius: 2px;
}

.canvas-image-card small {
  line-height: 1.5;
}

.canvas-compose {
  position: absolute;
  bottom: 21px;
  left: 50%;
  display: flex;
  gap: 7px;
  width: min(420px, calc(100% - 30px));
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.canvas-compose input {
  flex: 1;
  min-width: 0;
  padding: 7px 8px;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 10px;
}

.canvas-compose button {
  padding: 7px 11px;
  color: var(--cream);
  background: var(--ink);
  border: 0;
  font-size: 9px;
  cursor: pointer;
}

.library-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 27px;
  margin-top: 35px;
}

.upload-drop {
  min-height: 235px;
  padding: 25px 23px;
  background: var(--cream);
  border: 1px dashed var(--line-strong);
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease;
}

.upload-drop.is-dragover {
  background: var(--sage-soft);
  border-color: var(--teal);
}

.upload-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  margin: 3px auto 15px;
  color: var(--orange-deep);
  background: var(--orange-soft);
  border-radius: 50%;
  font-size: 20px;
  place-items: center;
}

.upload-drop b {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}

.upload-drop p {
  margin: 7px 0 18px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.7;
}

.upload-drop button {
  padding: 7px 10px;
  color: var(--orange-deep);
  background: transparent;
  border: 1px solid var(--line);
  font-size: 8px;
  cursor: pointer;
}

.library-main {
  min-width: 0;
}

.library-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.library-filter > div {
  display: flex;
  gap: 3px;
}

.library-filter > span {
  color: var(--muted);
  font-size: 8px;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.material-item {
  position: relative;
  min-height: 170px;
  padding: 15px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
}

.material-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  margin: -15px -15px 13px;
  color: var(--muted);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 25px;
}

.material-item.image .material-preview {
  color: var(--cream);
  background:
    radial-gradient(circle at 67% 30%, #f3ad84 0 18%, transparent 19%),
    radial-gradient(circle at 34% 73%, #dcb7a6 0 24%, transparent 25%),
    var(--ink);
}

.material-item.audio .material-preview {
  color: var(--teal);
  background: var(--sage-soft);
}

.material-item.document .material-preview {
  color: var(--orange-deep);
  background: var(--orange-soft);
}

.material-item b {
  display: block;
  overflow: hidden;
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted);
  font-size: 7px;
}

.material-item > button {
  padding: 0;
  color: var(--orange-deep);
  background: transparent;
  border: 0;
  font-size: 7px;
  cursor: pointer;
}

.library-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  color: var(--muted);
  font-size: 9px;
}

.library-empty button {
  padding: 0;
  margin-top: 10px;
  color: var(--orange-deep);
  background: transparent;
  border: 0;
  font-size: 8px;
}

.search-view {
  min-height: 100%;
}

.generator-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1.28fr);
  gap: 18px;
  max-width: 1180px;
  margin-top: 35px;
}

.generator-controls,
.generator-output {
  background: var(--cream);
  border: 1px solid var(--line);
}

.generator-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 22px;
}

.generator-controls label,
.rehearsal-layout label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.generator-controls label > span,
.rehearsal-layout label > span {
  color: var(--muted);
  font-size: 8px;
}

.generator-controls input,
.generator-controls select,
.generator-controls textarea,
.rehearsal-layout select,
.rehearsal-layout textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  outline: 0;
  font-size: 10px;
  line-height: 1.7;
}

.generator-controls textarea,
.rehearsal-layout textarea {
  resize: vertical;
}

.generator-controls input:focus,
.generator-controls select:focus,
.generator-controls textarea:focus,
.rehearsal-layout select:focus,
.rehearsal-layout textarea:focus {
  border-color: #c48b73;
  box-shadow: 0 0 0 3px rgba(229, 101, 61, 0.08);
}

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

.generator-controls .primary-action {
  align-self: flex-start;
  margin-top: 3px;
}

.generator-note {
  color: var(--muted);
  font-size: 7px;
  line-height: 1.7;
}

.generator-output {
  min-width: 0;
  min-height: 570px;
}

.output-toolbar {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  min-height: 51px;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
}

.output-toolbar > div:first-child {
  display: flex;
  gap: 9px;
  align-items: baseline;
}

.output-toolbar b {
  font-family: var(--display);
  font-size: 13px;
}

.output-toolbar span {
  color: var(--muted);
  font-size: 7px;
}

.output-toolbar button {
  padding: 5px 8px;
  color: var(--orange-deep);
  background: transparent;
  border: 1px solid var(--line);
  font-size: 7px;
  cursor: pointer;
}

.output-toolbar button:disabled {
  color: #aaa096;
  cursor: not-allowed;
}

.article-preview,
.toolchain-result {
  min-height: 519px;
  padding: 28px clamp(20px, 4vw, 48px);
  overflow-y: auto;
}

.generator-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 420px;
  max-width: 350px;
  margin: 0 auto;
  color: var(--muted);
}

.generator-empty > span {
  display: grid;
  width: 35px;
  height: 35px;
  margin-bottom: 17px;
  color: var(--cream);
  background: var(--orange-deep);
  border-radius: 50%;
  font-family: var(--display);
  place-items: center;
}

.generator-empty b {
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}

.generator-empty p {
  margin: 7px 0 0;
  font-size: 9px;
  line-height: 1.8;
}

.generated-article h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
}

.generated-article p {
  margin: 0 0 15px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 13px;
  line-height: 2;
  white-space: pre-wrap;
}

.toolchain-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toolchain-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.toolchain-step > span {
  display: grid;
  width: 27px;
  height: 27px;
  color: var(--cream);
  background: var(--orange-deep);
  border-radius: 50%;
  font-size: 8px;
  place-items: center;
}

.toolchain-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.8;
}

.rehearsal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 15px;
  margin-top: 35px;
}

.rehearsal-prompt,
.rehearsal-answer,
.rehearsal-feedback {
  min-height: 410px;
  padding: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.rehearsal-prompt {
  display: flex;
  flex-direction: column;
}

.interview-question {
  padding-top: 25px;
  margin-top: 23px;
  border-top: 1px solid var(--line);
}

.interview-question > span,
.rehearsal-feedback > span {
  color: var(--orange-deep);
  font-size: 8px;
  font-weight: 700;
}

.interview-question h2 {
  margin: 12px 0 23px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.65;
}

.interview-question button {
  padding: 0;
  color: var(--orange-deep);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 8px;
  cursor: pointer;
}

.rehearsal-answer {
  display: flex;
  flex-direction: column;
}

.rehearsal-answer textarea {
  flex: 1;
  min-height: 290px;
  resize: none;
}

.rehearsal-answer .primary-action {
  align-self: flex-start;
  margin-top: 14px;
}

.rehearsal-feedback {
  overflow-y: auto;
}

#rehearsal-output {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.9;
  white-space: pre-wrap;
}

#rehearsal-output .generator-empty {
  min-height: 300px;
}

.search-results {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.search-result {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 17px 4px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.search-result:hover {
  background: rgba(255, 250, 243, 0.62);
}

.search-result > span {
  color: var(--teal);
  font-size: 8px;
}

.search-result b {
  display: block;
  font-size: 10px;
}

.search-result small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.search-result time {
  color: var(--muted);
  font-size: 8px;
}

.meeting-dialog {
  width: min(960px, calc(100vw - 40px));
  max-height: min(820px, calc(100vh - 40px));
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.23);
}

.meeting-dialog::backdrop {
  background: rgba(14, 20, 18, 0.63);
  backdrop-filter: blur(4px);
}

.dialog-head {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 27px 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-head span {
  color: var(--orange-deep);
  font-size: 8px;
}

.dialog-head h2 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
}

.dialog-close {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  place-items: center;
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  min-height: 445px;
}

.meeting-editor {
  display: flex;
  flex-direction: column;
  padding: 23px 27px 22px;
  border-right: 1px solid var(--line);
}

.meeting-editor > label {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 8px;
}

.meeting-editor textarea {
  flex: 1;
  width: 100%;
  min-height: 260px;
  padding: 16px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  outline: 0;
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.85;
  resize: none;
}

.meeting-editor textarea:focus {
  border-color: #c48b73;
  box-shadow: 0 0 0 3px rgba(229, 101, 61, 0.08);
}

.meeting-options {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  padding: 13px 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 8px;
}

.meeting-options > span {
  margin-right: 4px;
  color: var(--muted);
}

.meeting-options label {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  cursor: pointer;
}

.meeting-options input {
  accent-color: var(--teal);
}

.dialog-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
}

.dialog-actions > span {
  color: var(--muted);
  font-size: 7px;
}

.meeting-result {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  background: var(--sage-soft);
}

.result-placeholder {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: var(--muted);
}

.placeholder-mark {
  display: grid;
  width: 33px;
  height: 33px;
  margin-bottom: 16px;
  color: var(--cream);
  background: var(--teal);
  border-radius: 50%;
  font-family: var(--display);
  place-items: center;
}

.result-placeholder b {
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
}

.result-placeholder p {
  max-width: 240px;
  margin: 7px 0 0;
  font-size: 9px;
  line-height: 1.8;
}

.processed-result h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}

.processed-result > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.9;
}

.processed-group {
  padding-top: 16px;
  margin-top: 17px;
  border-top: 1px solid rgba(169, 67, 41, 0.17);
}

.processed-group > span {
  color: var(--teal);
  font-size: 8px;
  font-weight: 700;
}

.processed-group ul {
  padding: 0;
  margin: 9px 0 0;
  list-style: none;
}

.processed-group li {
  position: relative;
  padding: 5px 0 5px 15px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.6;
}

.processed-group li::before {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--orange-deep);
  content: "→";
}

.processed-actions {
  display: flex;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
}

.processed-actions button {
  padding: 7px 9px;
  color: var(--orange-deep);
  background: transparent;
  border: 1px solid rgba(169, 67, 41, 0.24);
  font-size: 8px;
  cursor: pointer;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 120;
  max-width: min(410px, calc(100vw - 32px));
  padding: 10px 14px;
  color: var(--cream);
  background: var(--ink);
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  font-size: 9px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mobile-bottom-nav {
  display: none;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes typing {
  50% {
    opacity: 0.3;
    transform: translateY(-2px);
  }
}

@media (max-width: 1100px) {
  .app-frame {
    grid-template-columns: 218px minmax(0, 1fr);
  }

  .app-sidebar {
    padding-right: 13px;
    padding-left: 13px;
  }

  .app-nav-item::before {
    left: -13px;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
  }

  .meeting-overview {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .meeting-stats {
    grid-template-columns: 1fr;
  }

  .meeting-stats > div {
    flex-direction: row;
    gap: 12px;
    min-height: 0;
    padding: 13px 20px;
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .meeting-stats > div:first-child {
    border-top: 0;
  }

  .meeting-stats b {
    min-width: 53px;
    font-size: 30px;
  }

  .meeting-stats span {
    margin: 0;
  }

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

  .rehearsal-layout {
    grid-template-columns: 1fr 1fr;
  }

  .rehearsal-feedback {
    grid-column: 1 / -1;
    min-height: 280px;
  }
}

@media (max-width: 860px) {
  body {
    overflow: auto;
  }

  .app-frame {
    display: block;
    height: auto;
    min-height: 100vh;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    width: 238px;
    transform: translateX(-105%);
    transition: transform 240ms var(--ease);
  }

  .app-sidebar.is-open {
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.28);
    transform: translateX(0);
  }

  .app-main {
    min-height: 100vh;
    padding-bottom: 68px;
  }

  .app-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 61px;
    padding: 0 18px;
  }

  .mobile-menu-button {
    display: block;
  }

  .view-title span {
    display: none;
  }

  .global-search {
    width: min(220px, 37vw);
  }

  .global-search kbd {
    display: none;
  }

  .workspace-main {
    overflow: visible;
  }

  .app-view,
  .search-view {
    min-height: auto;
    padding: 31px 24px 54px;
  }

  .home-intro h1 {
    font-size: clamp(40px, 7.5vw, 58px);
  }

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

  .home-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }

  .aside-head {
    grid-column: 1 / -1;
  }

  .today-summary,
  .assistant-strip {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .assistant-card {
    margin-top: 0;
  }

  .focus-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 0;
  }

  .chat-layout {
    display: block;
    height: calc(100vh - 61px - 68px);
    height: calc(100dvh - 61px - 68px);
    margin: -31px -24px -54px;
  }

  .thread-list {
    display: none;
  }

  .generator-layout {
    grid-template-columns: 1fr;
  }

  .generator-output {
    min-height: 500px;
  }

  .conversation {
    height: 100%;
  }

  .message-log {
    padding: 30px 24px 13px;
  }

  .chat-suggestions {
    padding: 0 20px;
  }

  .chat-composer {
    margin: 0 18px;
  }

  .model-disclaimer {
    margin-bottom: 14px;
  }

  .canvas-view {
    height: calc(100vh - 61px - 68px);
    height: calc(100dvh - 61px - 68px);
    margin: -31px -24px -54px;
  }

  .meeting-overview {
    grid-template-columns: 1fr;
  }

  .meeting-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .meeting-stats > div {
    flex-direction: column;
    gap: 0;
    padding: 20px 12px;
    border-top: 0;
    border-left: 1px solid var(--line);
    text-align: center;
  }

  .meeting-stats > div:first-child {
    border-left: 0;
  }

  .meeting-stats b {
    min-width: 0;
    font-size: 40px;
  }

  .meeting-stats span {
    margin-top: 8px;
  }

  .recording-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .library-layout {
    grid-template-columns: 1fr;
  }

  .upload-drop {
    min-height: 180px;
  }

  .dialog-body {
    grid-template-columns: 1fr;
  }

  .meeting-editor {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .meeting-result {
    min-height: 270px;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    min-height: 64px;
    padding: 4px max(12px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(250, 247, 240, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav > button {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    color: var(--muted);
    background: transparent;
    border: 0;
    font-size: 7px;
    cursor: pointer;
  }

  .mobile-bottom-nav > button.is-active {
    color: var(--orange-deep);
  }

  .mobile-bottom-nav svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
  }

  .mobile-bottom-nav .mobile-add {
    justify-self: center;
    width: 43px;
    height: 43px;
    min-height: 43px;
    color: var(--cream);
    background: var(--orange-deep);
    border-radius: 50%;
    transform: translateY(-11px);
  }

  .mobile-add > span {
    font-size: 22px;
    font-weight: 300;
  }
}

@media (max-width: 620px) {
  .app-topbar {
    gap: 10px;
    padding-right: 13px;
    padding-left: 13px;
  }

  .view-title {
    min-width: 65px;
  }

  .global-search {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .topbar-avatar {
    width: 28px;
    height: 28px;
  }

  .app-view,
  .search-view {
    padding: 27px 17px 45px;
  }

  .home-intro h1 {
    font-size: 39px;
  }

  .home-intro > p {
    font-size: 11px;
  }

  .home-grid {
    margin-top: 30px;
  }

  .start-composer textarea {
    min-height: 100px;
    padding: 17px 16px 7px;
    font-size: 15px;
  }

  .composer-foot {
    padding: 7px 9px 9px;
  }

  .composer-tools button {
    padding: 6px;
  }

  .prompt-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .prompt-row::-webkit-scrollbar {
    display: none;
  }

  .prompt-row button {
    flex: 0 0 auto;
  }

  .gallery-teaser {
    grid-template-columns: 39px minmax(0, 1fr);
  }

  .gallery-teaser em {
    display: none;
  }

  .home-aside {
    grid-template-columns: 1fr;
  }

  .aside-head {
    grid-column: 1;
  }

  .today-summary,
  .assistant-strip {
    grid-column: 1;
  }

  .focus-card {
    min-height: 180px;
  }

  .view-head {
    display: block;
  }

  .view-head > .primary-action {
    margin-top: 20px;
  }

  .view-head h1 {
    font-size: 37px;
  }

  .meeting-feature {
    min-height: 275px;
    padding: 23px;
  }

  .meeting-feature > button {
    position: static;
    margin-top: 19px;
  }

  .meeting-stats {
    grid-template-columns: 1fr;
  }

  .meeting-stats > div {
    flex-direction: row;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .meeting-stats > div:first-child {
    border-top: 0;
  }

  .meeting-stats b {
    min-width: 54px;
    font-size: 28px;
  }

  .meeting-stats span {
    margin: 0;
  }

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

  .record-filter {
    display: none;
  }

  .gallery-head h1 {
    font-size: 37px;
  }

  .gallery-count {
    display: inline-block;
    margin-top: 18px;
  }

  .gallery-toolbar {
    display: block;
    margin-top: 24px;
  }

  .gallery-filters {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .gallery-filters button {
    flex: 0 0 auto;
  }

  .gallery-search {
    width: 100%;
    margin-top: 10px;
  }

  .workbench-gallery-grid {
    grid-template-columns: 1fr;
  }

  .workbench-template {
    min-height: 225px;
  }

  .workbench-detail-grid {
    grid-template-columns: 1fr;
  }

  .workbench-overview,
  .workbench-task-panel {
    min-height: 0;
  }

  .canvas-view {
    height: calc(100vh - 61px - 68px);
    height: calc(100dvh - 61px - 68px);
    padding: 20px 12px 14px;
    margin: -27px -17px -45px;
  }

  .canvas-head {
    align-items: flex-start;
    padding: 0 7px 15px;
  }

  .canvas-head h1 {
    font-size: 23px;
  }

  .canvas-actions .secondary-action {
    display: none;
  }

  .canvas-actions .primary-action {
    min-height: 33px;
    padding: 0 10px;
    font-size: 8px;
  }

  .canvas-toolbar > span {
    display: none;
  }

  .canvas-card {
    width: 155px;
    padding: 14px;
  }

  .canvas-card p {
    font-size: 12px;
  }

  .canvas-card[data-card="1"] {
    --x: 4% !important;
    --y: 8% !important;
  }

  .canvas-card[data-card="2"] {
    --x: 50% !important;
    --y: 5% !important;
  }

  .canvas-card[data-card="3"] {
    --x: 50% !important;
    --y: 39% !important;
  }

  .canvas-card[data-card="4"] {
    --x: 4% !important;
    --y: 53% !important;
  }

  .canvas-card[data-card="5"] {
    display: none;
  }

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

  .library-filter {
    align-items: flex-start;
  }

  .dialog-head {
    padding: 20px 19px 16px;
  }

  .dialog-head h2 {
    font-size: 20px;
  }

  .meeting-editor,
  .meeting-result {
    padding: 18px;
  }

  .meeting-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .meeting-editor textarea {
    min-height: 220px;
  }

  .search-result {
    grid-template-columns: 56px 1fr;
  }

  .search-result time {
    display: none;
  }

  .generator-layout,
  .rehearsal-layout {
    grid-template-columns: 1fr;
  }

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

  .rehearsal-feedback {
    grid-column: auto;
  }

  .article-preview,
  .toolchain-result {
    min-height: 420px;
    padding: 22px 17px;
  }
}

@media (max-width: 390px) {
  .home-intro h1 {
    font-size: 35px;
  }

  .view-head h1 {
    font-size: 32px;
  }

  .workbench-overview {
    padding: 22px 18px;
  }

  .workbench-task-panel {
    padding: 24px 18px 18px;
  }

  .topbar-avatar {
    display: none;
  }

  .canvas-card {
    width: 145px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
