@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Onest:wght@600;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --bg: #050606;
  --white: #fbfbfb;
  --panel: #171a1a;
  --panel-2: #202424;
  --panel-3: #2a3030;
  --line: rgba(251, 251, 251, 0.08);
  --line-strong: rgba(251, 251, 251, 0.14);
  --text: #f4f6f1;
  --muted: #9ba39f;
  --muted-2: #646b68;
  --green: #b8ff3d;
  --green-dim: rgba(178, 255, 0, 0.2);
  --sky: #9ba39f;
  --violet: #222728;
  --yellow: #1c2020;
  --orange: #232828;
  --red: #9ba39f;
  --brown: #646b68;
  --dark-green: #b8ff3d;
  --teal: #9ba39f;
  --teal-soft: rgba(184, 255, 61, 0.14);
  --hero-green-start: #b8ff3d;
  --hero-green-end: #b8ff3d;
  --filter-start: #b8ff3d;
  --filter-end: #b8ff3d;
  --timer-accent: #111313;
  --project-accent: #222728;
  --note-accent: #1c2020;
  --material-accent: #232828;
  --radius: 18px;
  --hero-height: 268px;
  --section-gap: 10px;
  --card-padding: 14px;
  --note-lines: 2;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  font-family:
    Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@keyframes toast-rise {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

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

.phone-shell {
  width: min(390px, 100vw - 28px);
  height: min(844px, 100vh - 40px);
  min-height: 690px;
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 30px 90px rgba(0, 0, 0, 0.55);
}

.phone-shell::before {
  content: none;
}

.app {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.screen {
  height: 100%;
  overflow-y: auto;
  padding: 10px 16px 96px;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar,
.h-scroll::-webkit-scrollbar {
  display: none;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 40px;
  margin-bottom: 10px;
}

.topbar-spacer,
.titlebar-spacer {
  width: 40px;
  height: 40px;
}

.app-title {
  text-align: center;
  line-height: 1.05;
}

.app-title strong {
  display: block;
  font-family: Onest, Manrope, sans-serif;
  font-size: 16px;
  font-weight: 900;
}

.app-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.back-btn,
.add-btn,
.share-btn,
.mini-nav,
.project-card,
.meeting-card,
.check-button,
.tap-card,
.sheet-backdrop,
.sheet-close,
.sheet-btn,
.mini-segment-btn {
  border: 0;
  cursor: pointer;
}

.back-btn,
.add-btn,
.share-btn,
.sheet-close {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  display: grid;
  place-items: center;
  transition: transform 160ms ease, background 160ms ease;
}

.back-btn {
  width: 42px;
  height: 38px;
  justify-self: start;
  font-size: 21px;
}

.add-btn,
.share-btn {
  width: 40px;
  height: 40px;
  justify-self: end;
}

.add-btn {
  color: var(--green);
  font-size: 23px;
}

.share-btn {
  color: var(--green);
}

.share-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-btn:active,
.add-btn:active,
.share-btn:active,
.project-card:active,
.meeting-card:active,
.mini-nav:active,
.check-button:active,
.tap-card:active,
.sheet-close:active,
.sheet-btn:active,
.mini-segment-btn:active,
.section-add-btn:active,
.project-tab:active,
.bottom-nav-item:active {
  transform: scale(0.98);
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin: 6px 0 14px;
}

.page-head h1,
.view-title {
  margin: 0;
  font-family: Onest, Manrope, sans-serif;
  font-size: 34px;
  line-height: 0.95;
}

.page-head p,
.view-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.segmented button {
  min-height: 40px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented .active {
  background: var(--green);
  color: #081006;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: var(--section-gap);
  min-height: var(--hero-height);
}

.meeting-card {
  height: var(--hero-height);
  min-height: var(--hero-height);
  border-radius: 24px;
  padding: 12px 12px 12px;
  background: var(--green);
  color: #081006;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.meeting-card-top {
  display: flex;
  justify-content: center;
}

.meeting-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 2px;
}

.meeting-title-group {
  display: grid;
  gap: 5px;
  text-align: left;
}

.date-ring {
  width: 98px;
  height: 98px;
  margin: 0 auto;
  border-radius: 50%;
  border: 7px dotted rgba(5, 10, 4, 0.82);
  display: grid;
  place-items: center;
}

.date-ring strong {
  display: block;
  font-size: 41px;
  line-height: 0.84;
}

.date-ring span {
  display: block;
  margin-top: 4px;
  color: rgba(8, 16, 6, 0.56);
  font-size: 13px;
  font-weight: 700;
}

.meeting-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.08;
  font-weight: 800;
}

.meeting-meta {
  margin: 0;
  color: rgba(8, 16, 6, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.timer-pill {
  width: max-content;
  margin: auto auto 0;
  padding: 8px 11px;
  border-radius: 999px;
  background: #ff5a14;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

.timer-pill.is-urgent {
  background: #e63f35;
}

.meeting-card.is-empty {
  background: var(--panel-2);
  color: var(--text);
}

.meeting-card.is-empty .date-ring {
  border-color: rgba(251, 251, 251, 0.22);
}

.meeting-card.is-empty .date-ring span,
.meeting-card.is-empty .meeting-meta {
  color: var(--muted);
}

.card {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.22);
}

.tasks-preview {
  height: var(--hero-height);
  min-height: var(--hero-height);
  padding: 12px 12px 11px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.card-head h2 {
  margin: 0;
  font-family: Onest, Manrope, sans-serif;
  font-size: 17px;
  line-height: 1.1;
}

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

.counter {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(19, 19, 26, 0.18);
  color: currentColor;
  font-size: 12px;
  white-space: nowrap;
}

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

.section-add-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(184, 255, 61, 0.14);
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(184, 255, 61, 0.26);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.task-list {
  display: grid;
  gap: 9px;
}

.task-list-compact {
  gap: 5px;
}

.task-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
}

.tasks-full .task-row {
  min-height: 40px;
}

.task-list-compact .task-row {
  grid-template-columns: 24px 1fr auto;
  min-height: 26px;
}

.check-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
}

.check-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  color: #081006;
  font-size: 13px;
  font-weight: 900;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.task-delete-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.58);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.task-delete-btn:active {
  transform: scale(0.94);
}

.task-delete-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.task-list-compact .check-button,
.task-list-compact .check-dot {
  width: 24px;
  height: 24px;
}

.is-done .check-dot {
  background: var(--green);
  border-color: var(--green);
}

.task-copy {
  color: #dde1dc;
  font-size: 14px;
  line-height: 1.22;
}

.task-list-compact .task-copy {
  font-size: 11.5px;
}

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

.progress {
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.11);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.task-preview-footer {
  margin-top: auto;
  display: grid;
  gap: 9px;
  padding-top: 10px;
}

.mini-nav {
  width: max-content;
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #081006;
  font-size: 12px;
  font-weight: 900;
}

.section-card,
.task-section {
  position: relative;
  padding: var(--card-padding);
  margin-top: var(--section-gap);
}

.task-section .progress {
  margin: 12px 0 12px;
}

.project-task-section .task-list {
  gap: 8px;
}

.h-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 1px;
  scroll-snap-type: x proximity;
}

.project-section,
.note-section,
.material-section {
  overflow: hidden;
}

.project-section::after,
.note-section::after,
.material-section::after {
  content: "";
  position: absolute;
  top: 54px;
  right: 0;
  bottom: 12px;
  width: 36px;
  pointer-events: none;
  z-index: 4;
}

.h-scroll::-webkit-scrollbar {
  display: none;
}

.card-shell {
  position: relative;
  flex: 0 0 158px;
  scroll-snap-align: start;
}

.entity-carousel .card-shell {
  flex-basis: 148px;
}

.project-card-shell {
  flex-basis: 156px;
}

.project-card {
  position: relative;
  width: 100%;
  min-height: 112px;
  padding: 14px;
  border-radius: 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--white);
  text-align: left;
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: 28px auto auto;
  align-content: start;
  gap: 6px;
}

.card-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(251, 251, 251, 0.1);
  border-radius: 999px;
  background: rgba(19, 19, 26, 0.68);
  color: rgba(251, 251, 251, 0.72);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 3;
}

.card-delete-btn:active {
  transform: scale(0.94);
}

.folder-icon {
  width: 30px;
  height: 24px;
  fill: var(--green);
  opacity: 0.95;
}

.project-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.project-card-summary {
  color: var(--muted);
  font-size: 12px;
}

.project-section {
  background: #181b1b;
  border-color: var(--line-strong);
  color: var(--white);
}

.project-section::after {
  background: linear-gradient(90deg, rgba(24, 27, 27, 0), #181b1b 86%);
}

.note-section {
  background: #151818;
  border-color: var(--line-strong);
  color: var(--white);
}

.note-section::after {
  background: linear-gradient(90deg, rgba(21, 24, 24, 0), #151818 86%);
}

.material-section {
  background: #1c2020;
  border-color: var(--line-strong);
  color: var(--white);
}

.material-section::after {
  background: linear-gradient(90deg, rgba(28, 32, 32, 0), #1c2020 86%);
}

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

.entity-carousel {
  scrollbar-width: none;
}

.entity-card {
  width: 100%;
  min-width: 0;
  padding: var(--card-padding);
  border-radius: 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--white);
  text-align: left;
}

button.entity-card {
  appearance: none;
  color: var(--white);
}

.tap-card {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tap-card:hover {
  outline: 2px solid rgba(251, 251, 251, 0.18);
  outline-offset: -2px;
}

.note-card {
  height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.material-card {
  height: 154px;
  display: grid;
  grid-template-rows: 24px auto 1fr;
  align-content: start;
  gap: 7px;
  overflow: hidden;
}

.material-thumb {
  width: 100%;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.material-thumb-placeholder {
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.link-preview-mini {
  min-height: 54px;
  display: flex;
  align-items: flex-end;
  padding: 9px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(184, 255, 61, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(184, 255, 61, 0.16);
  color: #dfe9d6;
  font-size: 11px;
  font-weight: 800;
}

.delete-project-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(251, 251, 251, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(251, 251, 251, 0.72);
  display: grid;
  place-items: center;
}

.delete-project-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 12px 0 12px;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.project-tabs::-webkit-scrollbar {
  display: none;
}

.project-tab {
  border: 0;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.project-tab.active {
  background: var(--green);
  color: #081006;
}

.static-card {
  cursor: default;
}

.entity-card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #b8c6bf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.subtle-kicker {
  opacity: 0.72;
}

.material-format {
  justify-self: start;
  min-width: 52px;
  justify-content: center;
  opacity: 1;
  color: #fff;
  border-radius: 999px;
}

.format-pdf {
  background: #f04b42;
}

.format-image {
  background: #14a0ff;
}

.format-doc {
  background: #2f7dff;
}

.format-link {
  background: #00a6c8;
}

.format-fig {
  background: #8a5cff;
}

.format-sheet {
  background: #16a765;
}

.format-file {
  background: var(--green);
}

.entity-card-title {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.05;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.entity-card-preview {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--note-lines);
  overflow: hidden;
  overflow-wrap: anywhere;
}

.empty-state {
  padding: 18px 14px;
  border-radius: 14px;
  background: rgba(251, 251, 251, 0.04);
  color: currentColor;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: #dfe5df;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.screen-titlebar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  margin-bottom: 14px;
}

.screen-titlebar h1 {
  margin: 0;
  text-align: center;
  font-size: 21px;
}

.calendar-month-button {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font-family: Onest, Manrope, sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 0.95;
  text-align: left;
  cursor: pointer;
}

.week-strip {
  display: flex;
  gap: 6px;
  margin: 12px 0 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.week-strip::-webkit-scrollbar {
  display: none;
}

.day-cell {
  border: 0;
  cursor: pointer;
  position: relative;
  flex: 0 0 58px;
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.day-cell * {
  pointer-events: none;
}

.day-cell strong {
  display: block;
  color: #eef1eb;
  font-size: 16px;
}

.day-cell span {
  font-size: 10px;
  text-transform: uppercase;
}

.day-cell.active {
  background: var(--green);
  color: #081006;
}

.day-cell.active strong {
  color: #081006;
}

.day-cell.is-today:not(.active) {
  box-shadow: inset 0 0 0 1px rgba(184, 255, 61, 0.3);
}

.event-dot {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 8px rgba(184, 255, 61, 0.72);
}

.day-cell.active .event-dot {
  background: #081006;
  box-shadow: none;
}

.schedule-scroll {
  max-height: 470px;
  overflow-y: auto;
  border-radius: 0 0 14px 14px;
  scrollbar-width: none;
}

.schedule-scroll::-webkit-scrollbar {
  display: none;
}

.schedule {
  position: relative;
  padding: 8px 0 0 52px;
  min-height: 1738px;
}

.time-row {
  position: relative;
  min-height: 72px;
  border-top: 1px solid var(--line);
}

.time-row time {
  position: absolute;
  left: -52px;
  top: -9px;
  color: var(--muted);
  font-size: 12px;
}

.event {
  position: absolute;
  left: 58px;
  right: 14px;
  min-height: 34px;
  border-radius: 12px;
  padding: 8px 12px 8px 14px;
  background: #202424;
  border: 1px solid rgba(251, 251, 251, 0.1);
  color: #edf1eb;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 3px 0 0 var(--green);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.event span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-time-inline {
  color: #ff5a14;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.event.alt {
  background: #202424;
  border-color: rgba(251, 251, 251, 0.1);
  box-shadow: inset 3px 0 0 rgba(255, 90, 20, 0.9);
}

.now-line {
  position: absolute;
  left: 52px;
  right: 12px;
  top: 318px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.note-editor {
  min-height: calc(100% - 70px);
  padding: 18px 16px;
}

.note-editor h2 {
  margin: 8px 0 12px;
  font-size: 28px;
  line-height: 1.04;
  text-align: left;
}

.note-surface {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.editable-note {
  width: 100%;
  min-height: 182px;
  resize: none;
  border: 0;
  border-radius: 18px;
  outline: 0;
  background: transparent;
  color: #edf0ea;
  padding: 15px 16px;
  font-size: 16px;
  line-height: 1.48;
  text-align: left;
}

.editable-note::placeholder {
  color: var(--muted);
}

.meta-row {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.note-divider {
  height: 1px;
  margin: 18px 0 14px;
  background: var(--line-strong);
}

.raw-prompt-block {
  display: grid;
  gap: 10px;
}

.raw-prompt-label {
  margin: 0;
  color: #c9d1cb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.raw-prompt-text {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.project-hero {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px 16px 16px;
  margin-bottom: 12px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.project-hero::before {
  content: none;
}

.project-title-input {
  width: 100%;
  min-width: 0;
  padding: 0 0 6px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-family: Onest, Manrope, sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.project-title-input:focus {
  color: var(--white);
}

.project-title-input:focus-visible {
  outline: 0;
  box-shadow: inset 0 -2px 0 var(--green);
}

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

.stat {
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.stat strong {
  display: block;
  font-size: 17px;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
}

.project-progress {
  display: grid;
  gap: 6px;
}

.project-progress-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.project-progress-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.overlay-root {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.modal-layer {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.quick-add-sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  max-height: calc(100% - 72px);
  overflow-y: auto;
  padding: 14px 14px 16px;
  border-radius: 24px;
  background: #19191f;
  border: 1px solid var(--line-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.16);
}

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

.sheet-head h2 {
  margin: 0;
  font-size: 18px;
}

.sheet-close {
  width: 34px;
  height: 34px;
  font-size: 22px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.field span {
  color: #dbe1db;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 0 13px;
  outline: 0;
}

.field input[type="time"] {
  color-scheme: dark;
}

.field select {
  appearance: none;
}

.wheel-picker-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.75fr;
  gap: 8px;
}

.wheel-picker {
  min-height: 124px;
  padding: 0 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  outline: 0;
  overflow-y: auto;
  text-align: center;
  scroll-snap-type: y mandatory;
}

.wheel-picker option {
  padding: 12px 8px;
  min-height: 42px;
  scroll-snap-align: center;
}

.mini-segment {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mini-segment-btn {
  min-height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease;
}

.mini-segment-btn.active {
  background: rgba(184, 255, 61, 0.16);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(184, 255, 61, 0.22);
}

.sheet-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
  padding-top: 10px;
  background: #19191f;
}

.sheet-btn {
  min-height: 44px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.sheet-btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.sheet-btn.primary {
  background: var(--green);
  color: #081006;
}

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

.material-sheet-actions .sheet-btn:first-child {
  grid-column: 1 / -1;
}

.material-sheet .sheet-head {
  margin-bottom: 18px;
}

.material-sheet-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.material-kind {
  min-width: 0;
}

.material-project-link {
  color: #dfe5df;
  font-size: 14px;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-sheet-body {
  display: grid;
  gap: 14px;
}

.material-sheet-body h3 {
  margin: 0;
  font-family: Onest, Manrope, sans-serif;
  font-size: 25px;
  line-height: 1.08;
  min-width: 0;
  overflow-wrap: anywhere;
}

.material-sheet-body p {
  margin: 0;
  color: #e7ece6;
  font-size: 15px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.material-sheet-detail {
  color: #d8dfd9;
  font-size: 15px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.material-preview-image-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.material-preview-image {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 12px;
}

.material-preview-placeholder {
  min-height: 170px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.link-preview-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
}

.link-preview-card strong {
  font-size: 18px;
}

.link-preview-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.material-file-preview {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.material-file-preview span:last-child,
.material-file-preview strong,
.material-file-preview small {
  min-width: 0;
}

.material-file-preview strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.material-file-preview small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.media-viewer-layer {
  z-index: 5;
}

.media-viewer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.86);
}

.media-viewer {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #050606;
}

.media-viewer-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
}

.media-viewer-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.media-viewer-controls button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.media-viewer-controls span {
  min-width: 44px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.media-viewer-stage {
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 14px;
}

.media-viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center;
  transition: transform 140ms ease;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(12, 14, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #edf1eb;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  animation: toast-rise 160ms ease-out;
}

.bottom-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 20;
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 24px;
  background: #19191f;
  border: 1px solid rgba(251, 251, 251, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.bottom-nav-item {
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.bottom-nav-item.active {
  background: var(--green);
  color: #13131a;
}

.bottom-nav-item svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav-item span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.preview-edit-root {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 80;
  pointer-events: none;
}

.preview-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 4, 0.48);
  backdrop-filter: blur(3px);
  pointer-events: auto;
}

.preview-editor-fab {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 18, 18, 0.9);
  color: #f1f4ef;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.preview-editor-fab.is-open {
  background: rgba(26, 33, 33, 0.96);
}

.preview-editor-panel {
  position: fixed;
  right: 18px;
  bottom: 76px;
  width: min(332px, calc(100vw - 24px));
  max-height: min(82vh, 760px);
  overflow-y: auto;
  padding: 16px;
  border-radius: 24px;
  background: #19191f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.48);
  pointer-events: auto;
}

.preview-editor-panel::-webkit-scrollbar {
  display: none;
}

.preview-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.preview-editor-head strong {
  display: block;
  font-size: 18px;
}

.preview-editor-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.preview-editor-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(184, 255, 61, 0.12);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.preview-editor-group {
  margin-top: 16px;
}

.preview-editor-group-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d9ded8;
}

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

.preview-preset-btn,
.preview-editor-action {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.preview-preset-btn.is-active {
  background: rgba(184, 255, 61, 0.16);
  color: #f3fbe7;
  box-shadow: inset 0 0 0 1px rgba(184, 255, 61, 0.18);
}

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

.preview-editor-field {
  display: grid;
  gap: 6px;
}

.preview-editor-field--wide {
  grid-column: 1 / -1;
}

.preview-editor-field span {
  color: #dae0da;
  font-size: 12px;
  font-weight: 700;
}

.preview-editor-field small {
  color: var(--muted);
  font-size: 11px;
}

.preview-editor-field input[type="color"] {
  width: 100%;
  min-height: 42px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.preview-editor-field input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.preview-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .preview-edit-root {
    right: 12px;
    bottom: 92px;
  }

  .preview-editor-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 68px;
  }

  .preview-preset-row,
  .preview-editor-grid,
  .preview-editor-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .stage {
    padding: 0;
  }

  .phone-shell {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    border-radius: 0;
  }
}
