/*
 * 声笺 · Studio theme
 * Warm editorial surfaces, a high-contrast audio stage and clearer product
 * hierarchy on top of the interaction styles.
 */

:root {
  --ink: #19231e;
  --ink-soft: #59635d;
  --ink-muted: #8b938d;
  --paper: #fffdf7;
  --canvas: #ecefe8;
  --panel: #f5f3ec;
  --white: #fffef9;
  --line: #e2e5dd;
  --line-strong: #d3d8ce;
  --coral: #ff6542;
  --coral-dark: #e94f2f;
  --coral-soft: #fff0e9;
  --sage: #087f67;
  --sage-soft: #e8f5ef;
  --lime: #d7ff72;
  --night: #13251f;
  --shadow: 0 20px 55px rgba(28, 40, 33, 0.09);
  --soft-shadow: 0 10px 28px rgba(28, 40, 33, 0.07);
  --sans: "Avenir Next", "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --serif: var(--sans);
}

/* Local audio upload */
.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  color: var(--night);
  background: rgba(255, 254, 249, 0.74);
  border: 1px solid rgba(19, 37, 31, 0.14);
  border-radius: 10px;
  font-size: 9.5px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.upload-button:hover {
  background: #fffef9;
  border-color: rgba(19, 37, 31, 0.26);
  transform: translateY(-1px);
}

.upload-button svg {
  width: 15px;
  height: 15px;
}

.upload-button.is-busy {
  cursor: wait;
  opacity: 0.72;
}

.upload-button.is-busy svg {
  animation: uploadPulse 1s ease-in-out infinite;
}

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

@media (max-width: 1080px) {
  .upload-button {
    width: 34px;
    padding: 0;
  }

  .upload-button span {
    display: none;
  }
}

html,
body {
  background: #e6eae3;
}

body {
  color: var(--ink);
  font-family: var(--sans);
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
[contenteditable]:focus-visible {
  outline: 2px solid rgba(255, 101, 66, 0.72);
  outline-offset: 3px;
}

svg {
  stroke-width: 1.75;
}

.app-shell {
  grid-template-columns: 78px 306px minmax(0, 1fr) 336px;
  background:
    radial-gradient(circle at 12% -8%, rgba(215, 255, 114, 0.16), transparent 28%),
    #e9ece6;
}

.app-shell.ai-collapsed {
  grid-template-columns: 78px 306px minmax(0, 1fr);
}

/* Left rail */
.rail {
  padding: 20px 10px 16px;
  color: #91a098;
  background:
    radial-gradient(circle at 50% 0, rgba(215, 255, 114, 0.1), transparent 25%),
    #13251f;
  border-right: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  color: var(--night);
  background: var(--lime);
  border-radius: 14px;
  box-shadow:
    0 8px 22px rgba(9, 19, 15, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.brand-mark:hover {
  transform: translateY(-1px) rotate(-2deg);
}

.brand-bars {
  height: 18px;
  gap: 2.5px;
}

.brand-bars i {
  width: 3px;
  background: currentColor;
}

.brand-bars i:nth-child(1) {
  height: 6px;
}

.brand-bars i:nth-child(2) {
  height: 16px;
}

.brand-bars i:nth-child(3) {
  height: 11px;
}

.brand-bars i:nth-child(4) {
  height: 4px;
}

.rail-nav {
  gap: 8px;
}

.rail-button {
  width: 56px;
  min-height: 55px;
  gap: 4px;
  color: #91a098;
  border-radius: 15px;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.rail-button svg {
  width: 20px;
  height: 20px;
}

.rail-button span {
  color: currentColor;
  font-size: 9.5px;
  font-weight: 500;
}

.rail-button:hover {
  color: #f9fbf6;
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.rail-button.is-active {
  color: var(--night);
  background: var(--lime);
  box-shadow: 0 8px 20px rgba(7, 24, 16, 0.22);
}

.rail-button.is-active::before {
  display: none;
}

.rail-bottom {
  gap: 5px;
}

.avatar {
  width: 38px;
  height: 38px;
  margin-top: 14px;
  color: #ecfff5;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(145deg, #7d9f91, #3e6457);
  border: 2px solid rgba(255, 255, 255, 0.18);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.22);
}

.avatar i {
  width: 9px;
  height: 9px;
  background: var(--lime);
  border-color: var(--night);
}

/* Note library */
.library {
  background: #f9f7f1;
  border-right: 1px solid #dfe2da;
}

.library-heading {
  align-items: center;
  padding: 27px 20px 17px;
}

.eyebrow {
  margin-bottom: 5px;
  color: #8e958f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.library-heading h1 {
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.icon-button {
  border-radius: 11px;
}

.icon-button.soft {
  color: #59635d;
  background: #fffef9;
  border-color: #e0e3db;
  box-shadow: 0 3px 10px rgba(23, 34, 28, 0.04);
}

#newNoteButton {
  width: 37px;
  height: 37px;
  color: var(--night);
  background: var(--lime);
  border-color: #c8ed65;
  box-shadow: 0 6px 16px rgba(67, 94, 35, 0.15);
}

#newNoteButton:hover {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
  transform: translateY(-1px);
}

.search-box {
  height: 43px;
  margin: 0 16px 16px;
  color: #8a928c;
  background: #eeece5;
  border: 1px solid transparent;
  border-radius: 13px;
}

.search-box:focus-within {
  color: var(--sage);
  background: #fffef9;
  border-color: #bed3c6;
  box-shadow: 0 0 0 4px rgba(8, 127, 103, 0.07);
}

.search-box input {
  color: var(--ink);
  font-size: 12px;
}

.search-box kbd {
  padding: 3px 6px;
  color: #8c948e;
  background: #f9f7f1;
  border-color: #dfe2da;
  border-radius: 5px;
  font-size: 8px;
}

.library-filters {
  gap: 4px;
  margin: 0 14px 10px;
  padding: 4px;
  background: #eeece5;
  border-radius: 11px;
}

.filter-tab {
  flex: 1;
  padding: 7px 8px;
  color: #7f8781;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
}

.filter-tab:hover {
  color: var(--ink);
}

.filter-tab.is-active {
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 2px 8px rgba(30, 43, 35, 0.07);
}

.filter-tab.is-active::after {
  display: none;
}

.note-list {
  padding: 8px 11px 20px;
}

.note-card {
  position: relative;
  margin-bottom: 6px;
  padding: 14px 14px 13px;
  overflow: hidden;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 15px;
}

.note-card:hover {
  background: rgba(255, 254, 249, 0.68);
  border-color: rgba(222, 225, 217, 0.72);
}

.note-card.is-active {
  background: #fffef9;
  border-color: #d9ded5;
  box-shadow: 0 8px 24px rgba(26, 39, 31, 0.07);
}

.note-card.is-active::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  display: block;
  width: 3px;
  background: var(--coral);
  border-radius: 0 4px 4px 0;
  content: "";
}

.note-card-title {
  color: #202b25;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.note-card-time {
  color: #9ba19c;
  font-size: 8.5px;
}

.note-card-excerpt {
  margin-top: 6px;
  color: #707871;
  font-size: 10.5px;
  line-height: 1.65;
}

.note-card-bottom {
  margin-top: 10px;
}

.mini-tag {
  padding: 3px 7px;
  color: #4e6457;
  background: #edf2e8;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 600;
}

.audio-badge {
  color: #8b938d;
  font-size: 8px;
}

.favorite-dot {
  background: var(--coral);
}

.library-footer {
  padding: 14px 18px 15px;
  color: #8c948e;
  background: #f9f7f1;
  border-color: #e4e6df;
  font-size: 8.5px;
}

.library-footer span i {
  background: #20a97f;
}

.library-footer button {
  color: #59635d;
  font-weight: 650;
}

.empty-notes {
  color: #919992;
}

/* Main canvas */
.workspace {
  background: #f5f4f0;
}

.topbar {
  height: 72px;
  min-height: 72px;
  padding: 0 29px;
  background: rgba(248, 247, 242, 0.76);
  border-color: rgba(210, 215, 207, 0.82);
  backdrop-filter: blur(20px) saturate(1.15);
}

.breadcrumb {
  gap: 8px;
  color: #969d97;
  font-size: 10.5px;
  font-weight: 550;
}

.breadcrumb svg {
  width: 13px;
  height: 13px;
  color: #a8aea9;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 650;
}

.top-actions {
  gap: 8px;
}

.save-state {
  margin-right: 4px;
  color: #7e8780;
  font-size: 9px;
}

.save-state i {
  width: 6px;
  height: 6px;
  background: #1da77d;
  box-shadow: 0 0 0 3px rgba(29, 167, 125, 0.1);
}

.top-icon {
  width: 34px;
  height: 34px;
  color: #69726c;
  border-radius: 10px;
}

.top-icon:hover {
  color: var(--ink);
  background: rgba(255, 254, 249, 0.92);
}

.top-icon.is-favorite {
  color: var(--coral);
}

.ai-toggle {
  height: 35px;
  padding: 0 12px;
  color: #346250;
  background: rgba(232, 245, 236, 0.88);
  border-color: #cfe2d5;
  border-radius: 10px;
  font-size: 9.5px;
  font-weight: 650;
}

.ai-toggle:hover {
  color: #194d3b;
  background: #e1f2e7;
}

.record-button {
  height: 38px;
  padding: 0 16px;
  color: #fff;
  background: var(--night);
  border-color: var(--night);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 650;
  box-shadow: 0 8px 20px rgba(16, 32, 25, 0.18);
}

.record-button:hover {
  background: #244238;
  border-color: #244238;
  transform: translateY(-1px);
}

.record-button span {
  width: 19px;
  height: 19px;
  background: var(--lime);
  border-color: rgba(255, 255, 255, 0.45);
}

.record-button span i {
  width: 6px;
  height: 6px;
  background: var(--night);
}

.editor-scroll {
  padding: 32px 32px 76px;
  scrollbar-color: #c5ccc5 transparent;
}

.note-page {
  position: relative;
  width: min(100%, 880px);
  min-height: auto;
  padding: 8px 4px 30px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.note-kicker {
  margin-bottom: 13px;
  color: #8d958f;
  font-size: 10px;
}

.note-type {
  gap: 7px;
  padding: 5px 9px;
  color: #2b5d49;
  background: rgba(232, 245, 236, 0.8);
  border: 1px solid rgba(190, 219, 203, 0.8);
  border-radius: 99px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.note-type i {
  width: 5px;
  height: 5px;
  background: #16a779;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22, 167, 121, 0.1);
}

.note-title {
  max-width: 800px;
  min-height: 56px;
  margin: 0 0 13px;
  color: #17221c;
  font-family: var(--sans);
  font-size: clamp(34px, 4vw, 47px);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1.18;
  text-wrap: balance;
}

.note-title:focus {
  outline: 0;
}

[contenteditable="true"][data-placeholder]:empty::before {
  color: #a8aea8;
}

.note-meta-row {
  gap: 9px;
  min-height: 25px;
  margin-bottom: 24px;
  color: #909892;
  font-size: 9.5px;
}

.tag-picker {
  padding: 5px 9px;
  color: #5e4c42;
  background: #fff0e9;
  border: 1px solid #f5d9ce;
  border-radius: 7px;
  font-size: 8.5px;
  font-weight: 650;
}

.meta-divider {
  height: 10px;
  background: #cdd3cc;
}

/* Audio is the hero surface, not another form field. */
.audio-note {
  position: relative;
  margin-bottom: 18px;
  padding: 20px 21px 18px;
  overflow: hidden;
  color: #f7fbf5;
  background:
    radial-gradient(circle at 92% -10%, rgba(215, 255, 114, 0.22), transparent 32%),
    radial-gradient(circle at 8% 120%, rgba(63, 155, 128, 0.24), transparent 38%),
    linear-gradient(135deg, #19332a, #101f1a 76%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 21px;
  box-shadow: 0 17px 38px rgba(18, 37, 29, 0.19);
}

.audio-note::after {
  position: absolute;
  top: -35px;
  right: 50px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(215, 255, 114, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.audio-topline,
.audio-player {
  position: relative;
  z-index: 1;
}

.audio-topline {
  margin-bottom: 16px;
}

.audio-title {
  gap: 11px;
}

.audio-icon {
  width: 38px;
  height: 38px;
  color: var(--night);
  background: var(--lime);
  border-radius: 11px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.16);
}

.audio-icon svg {
  width: 18px;
  height: 18px;
}

.audio-title strong {
  color: #fcfef9;
  font-size: 11.5px;
  font-weight: 650;
}

.audio-title small {
  margin-top: 2px;
  color: rgba(233, 244, 236, 0.56);
  font-size: 8.5px;
}

.audio-title small i {
  width: 5px;
  height: 5px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(215, 255, 114, 0.09);
}

.text-button {
  padding: 7px 9px;
  color: rgba(242, 249, 243, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-size: 8.5px;
  font-weight: 550;
}

.text-button:hover {
  color: var(--night);
  background: var(--lime);
}

.audio-player {
  gap: 13px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.play-button {
  width: 38px;
  height: 38px;
  color: var(--night);
  background: #f9fbf4;
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.18);
}

.play-button:hover {
  background: var(--lime);
  transform: scale(1.04);
}

.waveform {
  color: rgba(229, 241, 233, 0.29);
}

.waveform-progress {
  mix-blend-mode: normal;
}

.waveform-progress .waveform {
  color: var(--coral);
}

.audio-time,
.speed-button {
  color: rgba(235, 244, 237, 0.66);
  font-size: 9px;
}

.speed-button:hover {
  color: var(--night);
  background: var(--lime);
}

.note-body {
  min-height: 360px;
  margin: 18px 0 0;
  padding: 30px 34px 36px;
  color: #3b4640;
  background:
    linear-gradient(90deg, rgba(8, 127, 103, 0.035) 0, transparent 92px),
    #fffef9;
  border: 1px solid #dee2da;
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(31, 44, 36, 0.07);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.92;
}

.note-body p {
  margin: 0 0 16px;
}

.note-body h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 30px 0 12px;
  color: #1b2821;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.5;
}

.note-body h2::before {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--coral);
  border-radius: 2px;
  content: "";
  transform: rotate(45deg);
}

.note-body ul,
.note-body ol {
  margin: 14px 0;
  padding-left: 23px;
}

.note-body li {
  margin: 7px 0;
  padding-left: 4px;
}

.note-body li::marker {
  color: var(--coral);
  font-weight: 700;
}

.note-body blockquote {
  margin: 25px 0;
  padding: 16px 19px;
  color: #3f4a43;
  background: #f1f5ed;
  border: 0;
  border-left: 3px solid #6f9c5e;
  border-radius: 4px 12px 12px 4px;
  font-style: normal;
  line-height: 1.8;
}

.note-body strong {
  color: #17241d;
  font-weight: 700;
}

.check-line > span:first-child {
  color: transparent;
  border-color: #bcc7bd;
  border-radius: 5px;
}

.check-line.is-checked > span:first-child {
  color: #fff;
  background: var(--sage);
  border-color: var(--sage);
}

.note-footer {
  margin-top: 22px;
  padding: 0 4px;
  color: #97a099;
  border: 0;
  font-size: 8.5px;
}

.note-footer button {
  color: #707b73;
  font-weight: 600;
}

.note-footer button:hover {
  color: var(--sage);
}

/* AI companion */
.ai-pane {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 101, 66, 0.07), transparent 27%),
    #f3f1e8;
  border-left-color: #dfe2d9;
}

.ai-heading {
  min-height: 76px;
  padding: 0 18px;
  background: rgba(249, 248, 243, 0.68);
  border-color: rgba(217, 221, 212, 0.88);
  backdrop-filter: blur(14px);
}

.ai-orb {
  width: 36px;
  height: 36px;
  background:
    radial-gradient(circle at 68% 24%, rgba(255, 255, 255, 0.62), transparent 22%),
    linear-gradient(145deg, #b9e989, #4f8c70);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 12px;
  box-shadow: 0 7px 16px rgba(40, 91, 65, 0.18);
}

.ai-orb i {
  width: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.ai-heading p {
  color: #25342b;
  font-size: 12.5px;
  font-weight: 700;
}

.ai-heading span {
  margin-top: 2px;
  color: #8a938b;
  font-size: 8.5px;
}

.ai-content {
  padding: 17px 15px 18px;
  scrollbar-color: #cbd1c8 transparent;
}

.ai-notice {
  margin-bottom: 13px;
  color: #8d968e;
  font-size: 8.5px;
}

.ai-notice svg {
  color: #527e67;
}

.ai-summary-card {
  position: relative;
  padding: 16px;
  overflow: hidden;
  background: rgba(255, 254, 249, 0.92);
  border-color: #dfe3da;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(34, 47, 39, 0.055);
}

.ai-summary-card::before {
  position: absolute;
  top: -22px;
  right: -18px;
  width: 74px;
  height: 74px;
  background: rgba(215, 255, 114, 0.2);
  border-radius: 50%;
  content: "";
}

.section-label {
  position: relative;
  z-index: 1;
  color: #38433d;
  font-size: 10.5px;
  font-weight: 700;
}

.spark-icon {
  color: #b84027;
  background: #fff0e9;
  border-radius: 7px;
}

.plain-icon {
  color: #52755f;
  background: #edf2eb;
  border-radius: 7px;
}

.plain-icon.accent-green {
  color: #087f67;
  background: #e3f3ec;
}

.ai-summary-card > p {
  color: #59635d;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.8;
}

.ai-confidence {
  color: #939b94;
  font-size: 8px;
}

.ai-confidence i {
  background: #1da77d;
}

.insight-section {
  margin-top: 23px;
}

.count-pill {
  color: #a3412b;
  background: #ffe7dc;
  font-weight: 700;
}

.count-pill.green {
  color: #0b715b;
  background: #ddf1e8;
}

.key-points {
  margin-top: 12px;
}

.key-points li {
  grid-template-columns: 24px 1fr;
  gap: 9px;
  margin-bottom: 12px;
  color: #626b65;
  font-size: 10px;
  line-height: 1.68;
}

.key-points li::before {
  width: 23px;
  height: 23px;
  color: #92503f;
  background: #fff0e9;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 700;
}

.key-points strong {
  color: #27342c;
  font-weight: 700;
}

.todo-item {
  padding: 11px;
  color: #515d55;
  background: rgba(255, 254, 249, 0.71);
  border-color: #dfe3da;
  border-radius: 11px;
  font-size: 9.5px;
}

.todo-item:hover {
  background: #fffef9;
  border-color: #ced6cc;
}

.todo-check {
  border-color: #b8c2b9;
  border-radius: 5px;
}

.todo-item.is-done .todo-check {
  background: var(--sage);
  border-color: var(--sage);
}

.todo-owner {
  color: #5f6d63;
  background: #edf1eb;
  border-radius: 5px;
  font-weight: 600;
}

.ai-quote {
  margin-top: 24px;
  padding: 17px 17px 15px 20px;
  color: #505b54;
  background: linear-gradient(135deg, #eef2e8, #f3f1e6);
  border-left: 3px solid #8eaa64;
  border-radius: 4px 12px 12px 4px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.75;
}

.ai-quote cite {
  color: #8c958e;
  font-size: 8px;
}

.ai-bottom {
  padding: 12px 15px 15px;
  background: rgba(243, 241, 232, 0.94);
  border-color: #dfe2d9;
}

.ai-mode {
  color: #8b948c;
}

.ai-mode span i {
  background: #1da77d;
}

.ai-mode button {
  color: #7d877f;
  border-color: #cbd2c8;
}

.organize-button {
  height: 40px;
  color: #f9fbf7;
  background: var(--night);
  border-radius: 11px;
  font-size: 10px;
  font-weight: 650;
  box-shadow: 0 8px 19px rgba(16, 34, 26, 0.17);
}

.organize-button:hover {
  background: #25463a;
  transform: translateY(-1px);
}

/* Focused overlays */
.record-backdrop {
  background: rgba(11, 23, 18, 0.52);
  backdrop-filter: blur(10px);
}

.record-sheet {
  width: min(570px, calc(100vw - 34px));
  padding: 29px 30px 24px;
  color: #f7faf5;
  background:
    radial-gradient(circle at 88% 0, rgba(215, 255, 114, 0.12), transparent 30%),
    #152a22;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 34px 90px rgba(4, 14, 9, 0.36);
}

.record-sheet h2 {
  color: #f9fcf7;
  font-size: 23px;
  font-weight: 650;
}

.record-sheet .icon-button.soft {
  color: #dbe6dc;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.recording-label {
  position: relative;
  margin-left: -10px;
  padding-left: 10px;
  color: #ff8066;
}

.recording-label > i {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.recording-timer {
  color: #f9fcf7;
  font-weight: 300;
}

.recording-hint,
.live-caption {
  color: rgba(228, 239, 230, 0.55);
}

.live-caption i {
  background: var(--lime);
}

.live-transcript {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.live-transcript-head {
  color: rgba(245, 250, 244, 0.73);
}

.language-pill {
  color: rgba(244, 249, 244, 0.64);
  background: rgba(255, 255, 255, 0.08);
}

.live-transcript-text {
  color: rgba(250, 252, 249, 0.87);
}

.transcript-placeholder,
.interim-text {
  color: rgba(230, 239, 231, 0.42);
}

.record-secondary {
  color: rgba(250, 252, 249, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.record-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.record-main {
  background: var(--coral);
  border-color: rgba(255, 101, 66, 0.28);
  box-shadow: 0 0 0 1px #ff9a83;
}

.record-main:hover {
  background: var(--coral-dark);
}

.record-controls {
  gap: 31px;
}

.record-control-labels {
  display: grid;
  grid-template-columns: 41px 51px 41px;
  gap: 31px;
  align-items: start;
  justify-content: center;
  margin-top: 7px;
  color: rgba(233, 241, 233, 0.55);
  font-size: 8.5px;
}

.record-control-labels span {
  display: block;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.record-error {
  color: #3d3734;
  background: #fff7f4;
  border-color: #f4c8bc;
}

.popover {
  background: #fffef9;
  border-color: #dfe3da;
  border-radius: 12px;
  box-shadow: 0 17px 46px rgba(32, 44, 37, 0.16);
}

.popover > p {
  color: #929a93;
}

.popover > button {
  border-radius: 8px;
}

.popover > button:hover {
  background: #f1f3ed;
}

.more-popover button.danger {
  color: #cf4d33;
}

.modal-backdrop {
  background: rgba(14, 26, 20, 0.38);
  backdrop-filter: blur(8px);
}

.info-modal {
  background: #fffdf7;
  border-color: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 30px 85px rgba(13, 28, 19, 0.24);
}

.modal-top h2 {
  font-size: 22px;
  font-weight: 680;
}

.transcript-toolbar {
  color: #6f7972;
  background: #f1f3ed;
  border-radius: 10px;
}

.transcript-toolbar i {
  background: #1da77d;
}

.transcript-toolbar button {
  color: var(--sage);
  font-weight: 650;
}

.transcript-line {
  border-color: #e7e9e3;
}

.transcript-speaker {
  color: #b24d35;
}

.transcript-time {
  color: #a2aaa4;
}

.transcript-line p {
  color: #4d5952;
}

.feature-list span {
  color: #556159;
  background: #f1f3ed;
  border-color: #e4e7e0;
  border-radius: 10px;
}

.feature-list i {
  color: var(--coral);
}

.modal-primary {
  color: var(--night);
  background: var(--lime);
  border-radius: 10px;
  font-weight: 700;
}

.modal-primary:hover {
  background: #c8f15f;
}

.toast {
  color: #f8fbf6;
  background: var(--night);
  border-radius: 12px;
}

.toast-icon {
  color: var(--lime);
  background: rgba(215, 255, 114, 0.13);
}

.is-organizing .ai-summary-card > p {
  background: linear-gradient(90deg, #e9ede6 25%, #f7f6f0 40%, #e9ede6 55%);
}

.is-organizing .key-points li::after,
.is-organizing .todo-item::after {
  background: linear-gradient(90deg, #e5eae2 25%, #f6f5ef 40%, #e5eae2 55%);
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 74px 288px minmax(0, 1fr) 320px;
  }

  .app-shell.ai-collapsed {
    grid-template-columns: 74px 288px minmax(0, 1fr);
  }

  .editor-scroll {
    padding-right: 25px;
    padding-left: 25px;
  }

  .note-title {
    font-size: clamp(32px, 3.7vw, 43px);
  }
}

@media (max-width: 1080px) {
  .app-shell,
  .app-shell.ai-collapsed {
    grid-template-columns: 74px 282px minmax(0, 1fr);
  }

  .ai-pane {
    background:
      radial-gradient(circle at 100% 0, rgba(255, 101, 66, 0.07), transparent 27%),
      #f3f1e8;
    box-shadow: -22px 0 48px rgba(25, 41, 32, 0.13);
  }
}

@media (max-width: 780px) {
  .rail {
    height: 64px;
    padding: 5px 10px;
    background: rgba(19, 37, 31, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
  }

  .rail-button {
    width: 58px;
    min-height: 52px;
    border-radius: 12px;
  }

  .rail-button.is-active {
    color: var(--night);
    background: var(--lime);
  }

  .rail-button.is-active::before {
    display: none;
  }

  .library {
    background: #f9f7f1;
    box-shadow: 20px 0 50px rgba(17, 31, 23, 0.22);
  }

  .workspace {
    background: #f5f4f0;
  }

  .topbar {
    height: 62px;
    min-height: 62px;
    padding: 0 14px;
    background: rgba(248, 247, 242, 0.87);
  }

  .mobile-menu {
    color: #4e5b54;
  }

  .ai-toggle {
    width: 34px;
    height: 34px;
    background: rgba(232, 245, 236, 0.9);
  }

  .record-button {
    width: 36px;
    height: 36px;
    background: var(--night);
    border-radius: 11px;
    box-shadow: 0 6px 15px rgba(16, 32, 25, 0.18);
  }

  .editor-scroll {
    padding: 25px 17px 78px;
  }

  .note-page {
    width: 100%;
    min-height: 0;
    padding: 0 0 22px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .note-title {
    min-height: 46px;
    font-size: clamp(31px, 9vw, 39px);
    line-height: 1.2;
  }

  .note-meta-row {
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .audio-note {
    padding: 17px 16px 15px;
    border-radius: 18px;
  }

  .audio-topline {
    margin-bottom: 14px;
  }

  .audio-player {
    gap: 10px;
    padding: 10px;
  }

  .play-button {
    width: 35px;
    height: 35px;
  }

  .note-body {
    min-height: 330px;
    padding: 24px 20px 29px;
    border-radius: 17px;
    font-size: 14.5px;
    line-height: 1.9;
  }

  .note-body h2 {
    margin-top: 26px;
    font-size: 17px;
  }

  .note-footer {
    padding: 0 2px;
  }

  .record-sheet {
    width: calc(100vw - 20px);
    padding: 24px 20px 21px;
    border-radius: 21px;
  }

  .ai-pane {
    bottom: 64px;
    background:
      radial-gradient(circle at 100% 0, rgba(255, 101, 66, 0.07), transparent 27%),
      #f3f1e8;
  }
}

/* Expanded AI workspace */
.app-shell {
  grid-template-columns: 78px 292px minmax(0, 1fr) 430px;
}

.app-shell.ai-collapsed {
  grid-template-columns: 78px 292px minmax(0, 1fr);
}

.ai-heading {
  min-height: 84px;
  padding: 0 22px;
}

.ai-orb {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.ai-heading p {
  font-size: 15px;
}

.ai-heading span {
  font-size: 10px;
}

.ai-content {
  padding: 22px 20px 24px;
}

.ai-notice {
  margin-bottom: 16px;
  font-size: 10px;
  line-height: 1.55;
}

.ai-summary-card {
  padding: 20px;
  border-radius: 18px;
}

.section-label {
  gap: 8px;
  font-size: 12px;
}

.spark-icon,
.plain-icon {
  width: 25px;
  height: 25px;
  border-radius: 8px;
}

.spark-icon svg,
.plain-icon svg {
  width: 15px;
  height: 15px;
}

.ai-summary-card > p {
  margin: 15px 0 13px;
  font-size: 13.2px;
  line-height: 1.85;
}

.ai-confidence {
  font-size: 9px;
}

.count-pill {
  width: 20px;
  height: 20px;
  font-size: 9px;
}

.insight-section {
  margin-top: 27px;
}

.key-points {
  margin-top: 14px;
}

.key-points li {
  grid-template-columns: 27px 1fr;
  gap: 11px;
  margin-bottom: 15px;
  font-size: 11.3px;
  line-height: 1.75;
}

.key-points li::before {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  font-size: 8.5px;
}

.todo-list {
  gap: 9px;
  margin-top: 13px;
}

.todo-item {
  grid-template-columns: 19px 1fr auto;
  gap: 9px;
  padding: 13px;
  border-radius: 12px;
  font-size: 10.8px;
  line-height: 1.55;
}

.todo-check {
  width: 17px;
  height: 17px;
}

.ai-quote {
  margin-top: 28px;
  padding: 19px 19px 17px 22px;
  font-size: 11.8px;
  line-height: 1.8;
}

.ai-quote cite {
  margin-top: 8px;
  font-size: 9px;
}

.ai-bottom {
  padding: 15px 20px 18px;
}

.ai-mode {
  margin-bottom: 11px;
  font-size: 9px;
}

.organize-button {
  height: 44px;
  font-size: 11px;
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 70px 268px minmax(0, 1fr) 390px;
  }

  .app-shell.ai-collapsed {
    grid-template-columns: 70px 268px minmax(0, 1fr);
  }
}

@media (max-width: 1080px) {
  .app-shell,
  .app-shell.ai-collapsed {
    grid-template-columns: 70px 270px minmax(0, 1fr);
  }

  .ai-pane {
    width: 420px;
  }
}

@media (max-width: 780px) {
  .ai-pane {
    width: min(96vw, 420px);
  }

  .ai-content {
    padding: 19px 17px 22px;
  }

  .ai-summary-card > p {
    font-size: 13px;
  }

  .key-points li {
    font-size: 11.2px;
  }
}

/* AI mind map */
.ai-actions {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 8px;
}

.mindmap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  color: #395046;
  background: rgba(255, 254, 249, 0.78);
  border: 1px solid #d6ddd3;
  border-radius: 11px;
  font-size: 10.5px;
  font-weight: 650;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.mindmap-button:hover {
  background: #fffef9;
  border-color: #b9c4b9;
  transform: translateY(-1px);
}

.mindmap-button svg {
  width: 15px;
  height: 15px;
}

.mind-map-backdrop {
  z-index: 70;
  background: rgba(12, 25, 19, 0.58);
  backdrop-filter: blur(12px);
}

.mind-map-modal {
  display: flex;
  width: min(1160px, calc(100vw - 48px));
  height: min(840px, calc(100vh - 48px));
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(215, 255, 114, 0.16), transparent 25%),
    #f4f2ea;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  box-shadow: 0 32px 100px rgba(11, 27, 20, 0.28);
}

.mind-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 25px 17px;
}

.mind-map-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.mind-map-head > div:first-child > span {
  display: block;
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 10px;
}

.mind-map-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mind-map-head-actions > button:not(.icon-button) {
  height: 33px;
  padding: 0 11px;
  color: #435047;
  background: rgba(255, 254, 249, 0.82);
  border: 1px solid #d7ddd4;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 600;
}

.mind-map-head-actions > button:not(.icon-button):hover {
  background: #fffef9;
  border-color: #bcc7bb;
}

.mind-map-canvas {
  min-height: 0;
  flex: 1;
  margin: 0 24px;
  overflow: hidden;
  background:
    linear-gradient(rgba(78, 95, 83, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 95, 83, 0.035) 1px, transparent 1px),
    #fffdf7;
  background-size: 24px 24px;
  border: 1px solid #dfe2d9;
  border-radius: 17px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: grab;
  touch-action: none;
  user-select: none;
  overscroll-behavior: contain;
}

.mind-map-canvas.is-dragging {
  cursor: grabbing;
}

.mind-map-zoom-layer {
  width: 1180px;
  min-height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

#mindMapSvg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
}

#mindMapSvg text,
#mindMapSvg .mindmap-dot {
  stroke: none;
}

.mind-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 25px 17px;
}

.mind-map-note {
  margin: 0;
  color: #8a938b;
  font-size: 9px;
}

.mind-map-zoom-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.mind-map-zoom-controls button {
  height: 29px;
  min-width: 29px;
  padding: 0 8px;
  color: #47544b;
  background: rgba(255, 254, 249, 0.85);
  border: 1px solid #d6ddd3;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 650;
}

.mind-map-zoom-controls button:hover {
  background: #fffef9;
  border-color: #b8c4b8;
}

#mindMapZoomValue {
  min-width: 48px;
  color: #26372e;
  font-variant-numeric: tabular-nums;
}

.mind-map-empty {
  display: grid;
  min-height: 420px;
  place-items: center;
  color: var(--ink-muted);
  font-size: 12px;
}

@media (max-width: 780px) {
  .ai-actions {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .mindmap-button,
  .organize-button {
    height: 42px;
    font-size: 9.5px;
  }

  .mind-map-modal {
    width: calc(100vw - 16px);
    height: calc(100vh - 28px);
    border-radius: 19px;
  }

  .mind-map-head {
    align-items: flex-start;
    padding: 18px 16px 14px;
  }

  .mind-map-head h2 {
    font-size: 19px;
  }

  .mind-map-head-actions {
    gap: 5px;
  }

  .mind-map-head-actions > button:not(.icon-button) {
    width: 34px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .mind-map-head-actions > button:not(.icon-button)::before {
    color: #435047;
    font-size: 9px;
  }

  #downloadMindMapSvg::before {
    content: "SVG";
  }

  #downloadMindMapPng::before {
    content: "PNG";
  }

  .mind-map-canvas {
    margin: 0 12px;
  }

  .mind-map-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 14px 14px;
  }

  .mind-map-zoom-controls {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Mind map entry sits between key points and after-class tasks */
.mindmap-entry-section {
  margin-top: 27px;
}

.mindmap-entry {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(circle at 100% 0, rgba(215, 255, 114, 0.22), transparent 42%),
    linear-gradient(135deg, #eef4e8, #fbfaf4);
  border: 1px solid #d8dfd3;
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(32, 50, 39, 0.045);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.mindmap-entry:hover {
  border-color: #b8c8b6;
  box-shadow: 0 8px 20px rgba(32, 50, 39, 0.075);
  transform: translateY(-1px);
}

.mindmap-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 15px 10px;
}

.mindmap-preview-heading strong {
  color: #26372e;
  font-size: 12px;
  font-weight: 750;
}

.mindmap-preview-heading small {
  overflow: hidden;
  color: #7e8981;
  font-size: 9.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mindmap-preview-frame {
  position: relative;
  width: calc(100% - 20px);
  height: 210px;
  margin: 0 10px 10px;
  overflow: hidden;
  background:
    linear-gradient(rgba(78, 95, 83, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 95, 83, 0.03) 1px, transparent 1px),
    #fffdf7;
  background-size: 16px 16px;
  border: 1px solid #e0e4da;
  border-radius: 11px;
}

#mindMapPreview {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 220ms ease;
}

.mindmap-entry:hover #mindMapPreview {
  transform: scale(1.018);
}

.mindmap-preview-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #909b92;
  font-size: 9.5px;
}

.mindmap-preview-empty svg {
  width: 30px;
  height: 30px;
  color: #65766a;
  opacity: 0.6;
}

.mindmap-entry.has-preview .mindmap-preview-empty {
  display: none;
}

.mindmap-entry:not(.has-preview) .mindmap-zoom-badge {
  display: none;
}

.mindmap-zoom-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  color: #f6faf5;
  background: rgba(19, 37, 31, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  font-size: 8px;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.mindmap-zoom-badge svg {
  width: 11px;
  height: 11px;
}

@media (max-width: 780px) {
  .mindmap-entry {
    padding: 0;
  }

  .mindmap-preview-heading {
    padding: 12px 13px 9px;
  }

  .mindmap-preview-heading strong {
    font-size: 11.5px;
  }

  .mindmap-preview-heading small {
    font-size: 9px;
  }

  .mindmap-preview-frame {
    width: calc(100% - 16px);
    height: 180px;
    margin: 0 8px 8px;
  }
}

/* Trash */
.trash-badge {
  position: absolute;
  top: 6px;
  right: 5px;
  display: grid;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  place-items: center;
  color: #ffffff;
  background: var(--coral);
  border: 2px solid var(--night);
  border-radius: 99px;
  font-size: 7px;
  font-weight: 750;
}

.trash-badge[hidden] {
  display: none;
}

.trash-modal {
  display: flex;
  width: min(720px, calc(100vw - 36px));
  max-height: min(760px, calc(100vh - 48px));
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(215, 255, 114, 0.13), transparent 30%),
    #f7f5ee;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(13, 28, 21, 0.25);
}

.trash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 24px 17px;
}

.trash-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.trash-head > div:first-child > span {
  display: block;
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 9.5px;
}

.trash-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trash-empty {
  height: 33px;
  padding: 0 11px;
  color: #a84432;
  background: #fff5f1;
  border: 1px solid #f0d4cb;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 650;
}

.trash-empty:disabled {
  color: #a8aaa3;
  cursor: default;
  background: #f1f0eb;
  border-color: #e4e3de;
}

.trash-body {
  min-height: 190px;
  padding: 0 17px 16px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd1c8 transparent;
}

.trash-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  margin-bottom: 8px;
  padding: 15px 16px;
  background: rgba(255, 254, 249, 0.88);
  border: 1px solid #e1e3db;
  border-radius: 13px;
  box-shadow: 0 4px 13px rgba(31, 43, 36, 0.035);
}

.trash-item-copy {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.trash-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 5px;
  overflow: hidden;
  color: #25342b;
  font-size: 12.5px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trash-item-excerpt {
  display: -webkit-box;
  margin: 0 0 7px;
  overflow: hidden;
  color: #737c75;
  font-size: 9.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trash-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #989f98;
  font-size: 8px;
}

.trash-open-hint {
  margin-left: auto;
  color: #5f7869;
  font-weight: 650;
}

.trash-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trash-item-actions button {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 8.5px;
  font-weight: 650;
  white-space: nowrap;
}

.trash-restore {
  color: #ffffff;
  background: #315b49;
  border: 1px solid #315b49;
}

.trash-restore:hover {
  background: #24483a;
}

.trash-delete {
  color: #ac4e3c;
  background: #fff8f5;
  border: 1px solid #edd6ce;
}

.trash-delete:hover {
  background: #ffefe9;
}

.trash-empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: #939a93;
  font-size: 11px;
}

.trash-footnote {
  margin: 0;
  padding: 12px 24px 17px;
  color: #949b94;
  border-top: 1px solid #e3e5de;
  font-size: 8px;
  line-height: 1.5;
}

.trash-preview-backdrop {
  z-index: 80;
  background: rgba(12, 25, 19, 0.62);
  backdrop-filter: blur(13px);
}

.trash-preview-modal {
  display: flex;
  width: min(820px, calc(100vw - 42px));
  max-height: min(860px, calc(100vh - 44px));
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(215, 255, 114, 0.12), transparent 27%),
    #f8f6ef;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  box-shadow: 0 34px 100px rgba(11, 27, 20, 0.32);
}

.trash-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 26px 16px;
  border-bottom: 1px solid #e1e4dc;
}

.trash-preview-head h2 {
  margin: 0;
  color: #1d2c23;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.trash-preview-head > div:first-child > span {
  display: block;
  margin-top: 7px;
  color: #8b938d;
  font-size: 9px;
}

.trash-preview-scroll {
  min-height: 0;
  flex: 1;
  padding: 25px 28px 30px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd1c8 transparent;
}

.trash-preview-content {
  color: #404c45;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.95;
}

.trash-preview-content h1,
.trash-preview-content h2,
.trash-preview-content h3 {
  margin: 1.6em 0 0.55em;
  color: #24322a;
  font-family: var(--serif);
  line-height: 1.45;
}

.trash-preview-content h1:first-child,
.trash-preview-content h2:first-child,
.trash-preview-content h3:first-child,
.trash-preview-content p:first-child {
  margin-top: 0;
}

.trash-preview-content p {
  margin: 0 0 1em;
}

.trash-preview-content blockquote {
  margin: 1.4em 0;
  padding: 13px 17px;
  color: #56635b;
  background: #eef2e9;
  border-left: 3px solid #91aa68;
  border-radius: 0 9px 9px 0;
}

.trash-preview-content ul,
.trash-preview-content ol {
  padding-left: 1.7em;
}

.trash-preview-transcript {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e3e5de;
}

.trash-preview-section-title {
  margin-bottom: 14px;
  color: #25342b;
  font-size: 13px;
  font-weight: 750;
}

.trash-preview-transcript-line {
  margin-bottom: 13px;
  padding: 12px 14px;
  background: rgba(255, 254, 249, 0.78);
  border: 1px solid #e2e5dc;
  border-radius: 10px;
}

.trash-preview-transcript-line > span {
  color: #8b6b5c;
  font-size: 8px;
  font-weight: 650;
}

.trash-preview-transcript-line p {
  margin: 5px 0 0;
  color: #4d5952;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
}

.trash-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 25px 17px;
  background: rgba(248, 246, 239, 0.97);
  border-top: 1px solid #e2e4dd;
}

.trash-preview-actions button {
  height: 35px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 650;
}

@media (max-width: 780px) {
  .trash-modal {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 30px);
    border-radius: 18px;
  }

  .trash-head {
    padding: 18px 16px 14px;
  }

  .trash-head h2 {
    font-size: 21px;
  }

  .trash-item {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .trash-item-actions {
    flex-direction: row;
  }

  .trash-item-actions button {
    flex: 1;
  }

  .trash-body {
    padding: 0 11px 12px;
  }

  .trash-footnote {
    padding: 10px 16px 14px;
  }

  .trash-preview-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 26px);
    border-radius: 18px;
  }

  .trash-preview-head {
    padding: 18px 16px 13px;
  }

  .trash-preview-head h2 {
    font-size: 21px;
  }

  .trash-preview-scroll {
    padding: 20px 17px 24px;
  }

  .trash-preview-actions {
    padding: 11px 16px 14px;
  }
}

.confirm-backdrop {
  z-index: 95;
  background: rgba(11, 24, 18, 0.58);
  backdrop-filter: blur(10px);
}

.confirm-modal {
  width: min(400px, calc(100vw - 34px));
  padding: 24px;
  text-align: center;
  background: #fffdf7;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 19px;
  box-shadow: 0 28px 80px rgba(11, 27, 20, 0.28);
}

.confirm-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  place-items: center;
  color: #b54a35;
  background: #ffebe5;
  border-radius: 12px;
}

.confirm-icon svg {
  width: 23px;
  height: 23px;
}

.confirm-icon:not(.is-danger) {
  color: #54745f;
  background: #eaf3e7;
}

.confirm-modal h2 {
  margin: 0;
  color: #1d2c23;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.confirm-modal p {
  margin: 9px auto 0;
  color: #67736b;
  font-size: 10px;
  line-height: 1.7;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.confirm-actions button {
  height: 38px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 680;
}

#confirmCancel {
  color: #435047;
  background: #f3f2ec;
  border: 1px solid #dee1d9;
}

#confirmAccept {
  color: #ffffff;
  background: #b64d38;
  border: 1px solid #b64d38;
}

#confirmAccept:hover {
  background: #9c3f2d;
}

/* Classroom chat and quiz */
.ai-view-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 12px 20px 0;
  padding: 4px;
  background: rgba(229, 227, 217, 0.84);
  border: 1px solid rgba(211, 214, 204, 0.9);
  border-radius: 12px;
}

.ai-view-tab {
  height: 30px;
  color: #788178;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 650;
}

.ai-view-tab:hover {
  color: #294235;
  background: rgba(255, 254, 249, 0.55);
}

.ai-view-tab.is-active {
  color: #20392d;
  background: #fffef9;
  box-shadow: 0 3px 10px rgba(33, 49, 39, 0.08);
}

.ai-view-panel[hidden] {
  display: none !important;
}

.ai-pane[data-ai-view="chat"] .ai-bottom,
.ai-pane[data-ai-view="quiz"] .ai-bottom {
  display: none;
}

.ai-panel-intro {
  padding: 2px 2px 15px;
  border-bottom: 1px solid rgba(214, 217, 207, 0.8);
}

.ai-panel-eyebrow {
  color: #67806f;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.ai-panel-intro h3 {
  margin: 6px 0 5px;
  color: #203128;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.ai-panel-intro p {
  margin: 0;
  color: #7e8880;
  font-size: 10px;
  line-height: 1.65;
}

.ai-chat-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.note-chat-messages {
  display: flex;
  min-height: 180px;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 17px 2px 16px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd1c8 transparent;
}

.note-chat-message {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.note-chat-message.is-user {
  grid-template-columns: minmax(0, 1fr) 27px;
}

.note-chat-message.is-user .chat-avatar {
  grid-column: 2;
  color: #fff;
  background: #294d3d;
}

.note-chat-message.is-user .chat-bubble {
  grid-column: 1;
  grid-row: 1;
  margin-left: 28px;
  background: #e4efe7;
  border-color: #cddfd2;
}

.chat-avatar {
  display: grid;
  width: 27px;
  height: 27px;
  color: #365947;
  background: #dfeade;
  border: 1px solid #ccdacb;
  border-radius: 9px;
  font-size: 8px;
  font-weight: 750;
  place-items: center;
}

.chat-bubble {
  min-width: 0;
  padding: 11px 12px;
  background: rgba(255, 254, 249, 0.92);
  border: 1px solid #e0e3da;
  border-radius: 4px 13px 13px;
  box-shadow: 0 4px 13px rgba(31, 43, 36, 0.035);
}

.chat-bubble > span {
  display: block;
  margin-bottom: 5px;
  color: #8a948c;
  font-size: 8px;
  font-weight: 650;
}

.chat-bubble p {
  margin: 0;
  color: #46534b;
  font-size: 11px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.is-thinking .chat-bubble p {
  color: #7d8a81;
}

.is-thinking .chat-bubble p::after {
  display: inline-block;
  width: 14px;
  content: "…";
  animation: chat-thinking 1.2s ease-in-out infinite;
}

@keyframes chat-thinking {
  50% {
    opacity: 0.35;
  }
}

.chat-empty-state,
.quiz-empty-state {
  display: grid;
  flex: 1;
  min-height: 220px;
  padding: 28px 24px;
  color: #7a857d;
  text-align: center;
  place-content: center;
  justify-items: center;
}

.chat-empty-mark,
.quiz-empty-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  color: #345c48;
  background: #e4eee4;
  border: 1px solid #cfdfd1;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 750;
  place-items: center;
}

.quiz-empty-icon svg {
  width: 23px;
  height: 23px;
}

.chat-empty-state strong,
.quiz-empty-state strong {
  color: #34433a;
  font-size: 12px;
}

.chat-empty-state p,
.quiz-empty-state p {
  max-width: 260px;
  margin: 7px 0 0;
  font-size: 9.5px;
  line-height: 1.65;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 2px 10px;
}

.chat-suggestions[hidden] {
  display: none;
}

.chat-suggestions button {
  padding: 6px 9px;
  color: #617066;
  background: rgba(255, 254, 249, 0.72);
  border: 1px solid #d9ded5;
  border-radius: 999px;
  font-size: 8.5px;
}

.chat-suggestions button:hover {
  color: #264b39;
  border-color: #b9cbbd;
}

.note-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 254, 249, 0.95);
  border: 1px solid #d9ded5;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(30, 44, 35, 0.06);
}

.note-chat-form textarea {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  padding: 5px 6px;
  resize: none;
  color: #334139;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 10.5px;
  line-height: 1.55;
}

.note-chat-form textarea::placeholder {
  color: #a0a8a1;
}

.chat-send-button {
  display: grid;
  width: 36px;
  height: 36px;
  align-self: end;
  color: #fff;
  background: #203c2f;
  border: 0;
  border-radius: 11px;
  place-items: center;
}

.chat-send-button svg {
  width: 16px;
  height: 16px;
}

.chat-send-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.chat-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 2px 1px;
  color: #989f99;
  font-size: 8px;
}

.chat-panel-footer span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-panel-footer span i {
  width: 5px;
  height: 5px;
  background: #1da77d;
  border-radius: 50%;
}

.chat-panel-footer button {
  color: #7f8982;
  background: transparent;
  border: 0;
  font-size: 8px;
}

.chat-panel-footer button:hover {
  color: #a14535;
}

.quiz-intro {
  padding-bottom: 14px;
}

.quiz-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 2px;
}

.quiz-toolbar > span {
  color: #808a82;
  font-size: 8.5px;
}

.quiz-toolbar button {
  display: inline-flex;
  height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  color: #fff;
  background: #274b3a;
  border: 0;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 650;
}

.quiz-toolbar button svg {
  width: 14px;
  height: 14px;
}

.quiz-toolbar button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.quiz-list {
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
}

.quiz-card {
  padding: 15px;
  background: rgba(255, 254, 249, 0.93);
  border: 1px solid #dfe3da;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(31, 44, 36, 0.04);
}

.quiz-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quiz-card-head > span {
  color: #6e7c72;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.quiz-card-head em {
  max-width: 62%;
  overflow: hidden;
  color: #866449;
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-card h4 {
  margin: 10px 0 11px;
  color: #2f3d34;
  font-size: 11.5px;
  line-height: 1.65;
}

.quiz-options {
  display: grid;
  gap: 6px;
}

.quiz-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  min-height: 36px;
  align-items: center;
  padding: 7px 9px;
  color: #56635a;
  text-align: left;
  background: #f8f7f1;
  border: 1px solid #e2e4dc;
  border-radius: 9px;
  font-size: 9.5px;
  line-height: 1.5;
}

.quiz-option > span {
  display: grid;
  width: 21px;
  height: 21px;
  color: #778278;
  background: #fff;
  border: 1px solid #d9ded6;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 750;
  place-items: center;
}

.quiz-option:not(:disabled):hover {
  color: #2c4a3a;
  background: #f0f5ed;
  border-color: #c4d4c5;
}

.quiz-option.is-correct {
  color: #11654e;
  background: #e7f5ed;
  border-color: #b9dfc8;
}

.quiz-option.is-correct > span {
  color: #fff;
  background: #20946d;
  border-color: #20946d;
}

.quiz-option.is-wrong {
  color: #963f30;
  background: #fff0ea;
  border-color: #edc5b9;
}

.quiz-option.is-wrong > span {
  color: #fff;
  background: #c76650;
  border-color: #c76650;
}

.quiz-option.is-muted {
  opacity: 0.58;
}

.quiz-explanation {
  margin-top: 10px;
  padding: 10px 11px;
  color: #647068;
  background: #f1f3ea;
  border-radius: 9px;
}

.quiz-explanation strong {
  color: #405046;
  font-size: 9px;
}

.quiz-explanation p {
  margin: 4px 0 0;
  font-size: 9px;
  line-height: 1.65;
}

@media (max-width: 1080px) {
  .ai-view-tabs {
    margin-right: 16px;
    margin-left: 16px;
  }
}

/* Minimal transcript timeline */
.note-transcript-preview {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e4e6de;
}

.note-transcript-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.note-transcript-head > div:first-child {
  display: grid;
  gap: 3px;
}

.note-transcript-eyebrow {
  color: #758078;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.note-transcript-head strong {
  color: #26342c;
  font-size: 14px;
  font-weight: 700;
}

.note-transcript-head-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
}

.note-transcript-reset-button,
.note-transcript-edit-button {
  display: inline-flex;
  height: 30px;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  color: #536a5c;
  background: #f5f6f1;
  border: 1px solid #dce1d8;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 650;
}

.note-transcript-reset-button {
  width: 27px;
  height: 27px;
  justify-content: center;
  padding: 0;
  color: #7b857e;
  background: transparent;
  border-color: #dfe3db;
  font-size: 8.5px;
}

.note-transcript-reset-button:hover:not(:disabled) {
  color: #9d4e3b;
  background: #fff6f2;
  border-color: #eccdc4;
}

.note-transcript-reset-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.note-transcript-reset-button svg {
  width: 12px;
  height: 12px;
}

.note-transcript-edit-button:hover {
  color: #304b3c;
  background: #eef3eb;
  border-color: #c8d4c8;
}

.note-transcript-edit-button svg {
  width: 13px;
  height: 13px;
}

.note-transcript-preview.is-editing .note-transcript-edit-button {
  color: #fff;
  background: #2d5543;
  border-color: #2d5543;
}

.note-transcript-preview.is-editing .note-transcript-preview-line p {
  min-height: 1.6em;
  margin: 0 -6px;
  padding: 4px 6px;
  background: #fffef9;
  border: 1px solid #d7dfd5;
  border-radius: 7px;
  outline: 0;
  cursor: text;
}

.note-transcript-preview.is-editing .note-transcript-preview-line p:focus {
  background: #fff;
  border-color: #789a87;
  box-shadow: 0 0 0 3px rgba(67, 111, 88, 0.09);
}

.note-transcript-preview.is-editing .note-transcript-preview-line {
  background: rgba(246, 247, 242, 0.72);
  border-radius: 8px;
}

.note-transcript-timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 2px;
}

.note-transcript-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 57px;
  width: 1px;
  background: #e3e7df;
  content: "";
}

.note-transcript-preview-line {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 8px 0;
}

.note-transcript-preview-line::before {
  position: absolute;
  top: 16px;
  left: 53px;
  width: 7px;
  height: 7px;
  background: #fffef9;
  border: 2px solid #82968a;
  border-radius: 50%;
  content: "";
}

.note-transcript-preview-line time {
  padding-top: 2px;
  color: #8d9790;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.note-transcript-preview-line > div {
  min-width: 0;
  padding-left: 2px;
}

.note-transcript-preview-line span {
  display: inline-block;
  margin-bottom: 3px;
  color: #b15a43;
  font-size: 8px;
  font-weight: 700;
}

.note-transcript-preview-line p {
  margin: 0;
  color: #4c5951;
  font-size: 12.5px;
  line-height: 1.78;
}

#transcriptModal .info-modal {
  display: flex;
  width: min(820px, calc(100vw - 34px));
  height: min(760px, calc(100vh - 42px));
  max-height: calc(100vh - 42px);
  flex-direction: column;
  padding: 24px 28px 22px;
  overflow: hidden;
}

#transcriptModal .transcript-toolbar {
  flex: none;
  gap: 14px;
  margin: 17px 0 6px;
  padding: 8px 10px 8px 13px;
  background: #f4f3ee;
  border: 1px solid #e6e7e0;
  border-radius: 11px;
}

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

.transcript-search {
  display: flex;
  height: 29px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  background: #fffef9;
  border: 1px solid #dfe2da;
  border-radius: 8px;
}

.transcript-search svg {
  width: 13px;
  height: 13px;
  color: #8c958f;
}

.transcript-search input {
  width: 116px;
  color: #425047;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 9px;
}

.transcript-search input::placeholder {
  color: #9aa29c;
}

#transcriptModal .transcript-body {
  min-height: 0;
  max-height: none;
  flex: 1;
  margin-top: 6px;
  padding: 3px 5px 8px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #d6dbd3 transparent;
}

.transcript-timeline {
  position: relative;
}

.transcript-timeline::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 55px;
  width: 1px;
  background: #e3e6df;
  content: "";
}

.transcript-line {
  position: relative;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  gap: 27px;
  padding: 14px 8px 14px 0;
  color: #4e5a52;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #eceee8;
  border-radius: 9px;
  cursor: pointer;
}

.transcript-line::before {
  position: absolute;
  top: 20px;
  left: 51px;
  width: 7px;
  height: 7px;
  background: #fffdf7;
  border: 2px solid #8b9d91;
  border-radius: 50%;
  content: "";
}

.transcript-line:hover {
  background: #f7f7f2;
}

.transcript-line time {
  padding-top: 2px;
  color: #8e9891;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.transcript-entry {
  min-width: 0;
}

.transcript-speaker {
  display: inline-block;
  margin-bottom: 5px;
  padding: 2px 6px;
  color: #98614f;
  background: #f8ede8;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 700;
}

.transcript-line p {
  margin: 0;
  color: #47534b;
  font-size: 13px;
  line-height: 1.85;
}

.transcript-line.is-keyword-target,
.transcript-line.is-playing {
  margin: 0 -4px;
  padding-right: 12px;
  padding-left: 4px;
  background: #f1f6f2;
  border-bottom-color: transparent;
}

.transcript-line.is-keyword-target::before,
.transcript-line.is-playing::before {
  background: #287a5c;
  border-color: #287a5c;
  box-shadow: 0 0 0 4px rgba(40, 122, 92, 0.12);
}

.transcript-line.is-keyword-context {
  background: rgba(244, 247, 242, 0.62);
}

.transcript-empty-search {
  display: grid;
  min-height: 260px;
  color: #7d8981;
  font-size: 11px;
  place-content: center;
  justify-items: center;
}

.transcript-empty-search strong {
  color: #46544b;
}

.transcript-empty-search button {
  margin-top: 10px;
  color: #536c5d;
  background: transparent;
  border: 0;
  font-size: 9px;
  text-decoration: underline;
}

@media (max-width: 700px) {
  #transcriptModal .info-modal {
    width: calc(100vw - 16px);
    height: calc(100vh - 24px);
    padding: 18px 15px 16px;
  }

  #transcriptModal .transcript-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .transcript-toolbar-actions {
    width: 100%;
  }

  .transcript-search {
    flex: 1;
  }

  .transcript-search input {
    width: 100%;
  }

  .note-transcript-head {
    align-items: flex-start;
  }
}

.account-modal {
  width: min(430px, calc(100vw - 30px));
  padding: 23px;
  background: #fffef9;
  border: 1px solid #dfe3da;
  border-radius: 19px;
  box-shadow: 0 28px 80px rgba(17, 32, 23, 0.22);
}

.account-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-modal-head > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.account-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  color: #d7ff72;
  background: #172b21;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 750;
  place-items: center;
}

.account-modal-head .eyebrow {
  margin: 0 0 3px;
}

.account-modal-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.account-modal-head span {
  display: block;
  margin-top: 3px;
  color: #8c968f;
  font-size: 8.5px;
}

.account-modal-role {
  display: inline-flex;
  margin-top: 17px;
  padding: 4px 8px;
  color: #526c5d;
  background: #edf3eb;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 650;
}

.account-contact-panel {
  margin-top: 16px;
  padding: 13px;
  background: #f7f8f3;
  border: 1px solid #e2e6de;
  border-radius: 12px;
}

.account-contact-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.account-contact-panel strong {
  color: #35473c;
  font-size: 9.5px;
}

.account-contact-panel p {
  margin: 0;
  color: #89948c;
  font-size: 8.5px;
  line-height: 1.5;
}

.account-contact-panel > button {
  margin-top: 10px;
  padding: 0;
  color: #27664d;
  background: transparent;
  border: 0;
  font-size: 8.5px;
  font-weight: 700;
  cursor: pointer;
}

.account-contact-form {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.account-contact-form[hidden] {
  display: none;
}

.account-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 7px;
}

.account-contact-row input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  color: #304138;
  background: #fff;
  border: 1px solid #dfe4dc;
  border-radius: 8px;
  font-size: 9px;
}

.account-contact-row button {
  height: 34px;
  padding: 0 8px;
  color: #275f47;
  background: #e7f0e3;
  border: 1px solid #d5e1d2;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 650;
  cursor: pointer;
}

.account-contact-row button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.account-modal-actions {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.account-action {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #415047;
  text-align: left;
  background: #fafaf6;
  border: 1px solid #e3e6de;
  border-radius: 10px;
}

.account-action[hidden],
.settings-action[hidden] {
  display: none !important;
}

.account-action:hover {
  background: #f1f5ee;
  border-color: #cbd7cc;
}

.account-action > span {
  display: grid;
  gap: 3px;
}

.account-action strong {
  font-size: 9.5px;
}

.account-action small {
  color: #919b93;
  font-size: 8px;
}

.account-action svg {
  width: 15px;
  height: 15px;
}

.account-action.danger {
  color: #a44b38;
  background: #fff7f3;
  border-color: #efd8d0;
}
