:root {
  color-scheme: dark;
  --bg: #111111;
  --bg-deep: #1f1f1f;
  --panel: rgba(36, 36, 36, 0.92);
  --panel-strong: rgba(42, 42, 42, 0.96);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f3f3f3;
  --muted: #b8b8b8;
  --soft: #e7e7e7;
  --blue: #0f6cbd;
  --blue-2: #4aa3ff;
  --cyan: #5aa9ff;
  --ok: #42e6a4;
  --danger: #ff6f86;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f8ff;
  --bg-deep: #dfeaff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(0, 55, 128, 0.16);
  --text: #061529;
  --muted: #53677f;
  --soft: #1d3350;
  --shadow: 0 18px 50px rgba(0, 32, 80, 0.12);
}

@media (prefers-color-scheme: light) {
  body[data-theme="system"] {
    color-scheme: light;
    --bg: #f4f8ff;
    --bg-deep: #dfeaff;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-strong: rgba(255, 255, 255, 0.96);
    --line: rgba(0, 55, 128, 0.16);
    --text: #061529;
    --muted: #53677f;
    --soft: #1d3350;
    --shadow: 0 18px 50px rgba(0, 32, 80, 0.12);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg) 28%, #101010);
  color: var(--text);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

body.auth-pending .app-shell,
body.auth-pending .mobile-bottom-nav,
body.auth-pending .more-sheet,
body.auth-pending .search-panel,
body.auth-pending .tips-modal,
body.auth-pending .toast,
body.is-authenticated .login-screen {
  display: none;
}

.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

.login-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 5vw, 30px);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-logo {
  width: 148px;
  height: auto;
  display: block;
  margin: 0 0 22px;
}

.login-card .section-title {
  margin-top: 0;
}

.login-card h1 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
}

.login-intro {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.login-form label,
.login-form span {
  display: grid;
  gap: 7px;
}

.login-form span {
  color: var(--soft);
  font-weight: 600;
}

.login-form input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

body[data-theme="light"] .login-form input {
  background: rgba(255, 255, 255, 0.86);
}

.login-submit {
  min-height: 46px;
  justify-content: center;
  margin-top: 2px;
}

.login-error {
  min-height: 1.4em;
  margin: 0;
  color: var(--danger);
  font-weight: 600;
}

.login-note {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
}

.login-note strong {
  color: var(--soft);
}

.app-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 28px max(14px, env(safe-area-inset-left));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0 18px;
  backdrop-filter: blur(18px);
}

.main-nav {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(31, 31, 31, 0.92);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .main-nav {
  background: rgba(255, 255, 255, 0.74);
}

.nav-link,
.filter-button,
.small-action,
.status-button,
.theme-button,
.danger-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--soft);
  background: transparent;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active,
.filter-button.active,
.theme-button.active {
  color: #fff;
  background: rgba(15, 108, 189, 0.92);
}

.icon-nav-link,
.icon-action {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--soft);
  background: transparent;
}

.icon-nav-link:hover,
.icon-nav-link.active,
.icon-action:hover {
  color: #fff;
  background: rgba(15, 108, 189, 0.86);
}

.icon-nav-link svg,
.icon-action svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mobile-bottom-nav,
.more-sheet {
  display: none;
}

.mobile-bottom-nav svg,
.more-item svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.more-sheet.open {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: block;
}

.more-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
}

.more-panel {
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(86px + env(safe-area-inset-bottom));
  left: max(14px, env(safe-area-inset-left));
  max-width: 520px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

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

.more-head p {
  margin: 0;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.more-head h2 {
  margin: 4px 0 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.more-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.more-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.more-item:hover {
  background: rgba(15, 108, 189, 0.2);
}

.more-item svg {
  width: 26px;
  height: 26px;
  color: var(--cyan);
}

.more-item span,
.more-item small {
  display: block;
  min-width: 0;
}

.more-item strong {
  display: block;
  font-weight: 600;
}

.more-item small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.35;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: end;
  min-height: 265px;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(42, 42, 42, 0.94), rgba(24, 24, 24, 0.92)),
    radial-gradient(circle at top right, rgba(15, 108, 189, 0.22), transparent 24rem);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .hero-band {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(229, 240, 255, 0.8)),
    radial-gradient(circle at top right, rgba(15, 108, 189, 0.16), transparent 24rem);
}

.eyebrow,
.section-title p,
.tile-kicker,
.card-tag,
.card-meta {
  margin: 0;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 800px;
  margin: 10px 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 0.98;
}

.feature-panel .section-title p {
  color: var(--cyan);
}

.hero-copy p:last-child,
.view-intro,
.metric-tile p,
.feature-panel p,
.compact-task small,
.checklist-section p,
.detailed-task p,
.category-tile p,
.learning-card p,
.settings-panel p,
.work-panel p {
  color: var(--muted);
  line-height: 1.58;
}

.contact-card p,
.contact-value small {
  color: var(--muted);
  line-height: 1.55;
}

.hero-progress,
.dashboard-block,
.metric-tile,
.feature-panel,
.checklist-section,
.learning-card,
.category-tile,
.work-panel,
.settings-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-progress,
.dashboard-block,
.metric-tile,
.feature-panel,
.checklist-section,
.settings-panel {
  padding: 20px;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-head strong {
  font-size: 2rem;
}

.progress-track {
  height: 10px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .progress-track {
  background: rgba(0, 38, 90, 0.1);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.section-title {
  margin-top: 24px;
}

.hero-band + .dashboard-block,
.view > .section-title:first-child {
  margin-top: 0;
}

.section-title h2 {
  margin: 6px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 600;
  line-height: 1.08;
}

.view-intro {
  max-width: 850px;
  margin: 12px 0 0;
  font-size: 1.04rem;
}

.dashboard-block,
.dashboard-grid,
.feature-row,
.checklist-progress-only,
.checklist-sections,
.filter-row,
.learning-list,
.category-grid,
.category-card-sections,
.work-grid,
.settings-grid {
  margin-top: 18px;
}

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

.single-dashboard-grid {
  grid-template-columns: minmax(0, 1fr);
}

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

.feature-row {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 14px;
}

.compact-task-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.compact-task {
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.compact-task span,
.detailed-task span,
.metric-tile h3,
.category-tile h3,
.work-panel h3,
.settings-panel h3,
.contact-card h3 {
  color: var(--text);
  font-weight: 600;
}

.locked {
  opacity: 0.82;
}

.tile-action {
  margin-top: 14px;
}

.tile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.daily-tasks-panel .section-title {
  margin-bottom: 10px;
}

.daily-task-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.daily-task-group {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.daily-task-group summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

.daily-task-group summary::-webkit-details-marker {
  display: none;
}

.daily-task-group h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.daily-task-group summary span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.daily-task-group summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.1rem;
  font-weight: 600;
}

.daily-task-group[open] summary::after {
  content: "-";
}

.daily-task-group ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.daily-task-group li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.45;
}

.daily-task-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 11px;
  height: 11px;
  border: 2px solid var(--cyan);
  border-radius: 3px;
  background: rgba(74, 163, 255, 0.1);
}

.checklist-progress-only {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(36, 36, 36, 0.78);
}

.checklist-progress-head {
  color: var(--soft);
}

.checklist-progress-head strong {
  color: var(--cyan);
  font-size: 1.35rem;
}

.checklist-sections {
  display: grid;
  gap: 18px;
}

.checklist-area-heading {
  margin: 22px 0 12px;
}

.checklist-area-heading h3 {
  margin: 5px 0 6px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 600;
}

.checklist-area-heading p:last-child {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.completed-heading {
  margin-top: 28px;
}

.checklist-section header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.checklist-section h3 {
  margin: 5px 0 8px;
  font-size: clamp(1.32rem, 2.4vw, 1.9rem);
  font-weight: 600;
}

.count {
  flex: 0 0 auto;
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  font-weight: 900;
}

.detailed-task-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.detailed-task {
  scroll-margin-top: 120px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.completed-task {
  background: rgba(66, 230, 164, 0.045);
}

.completed-task-list {
  margin-bottom: 6px;
}

.completed-meta {
  margin: 8px 0 0 38px;
  color: var(--ok);
  font-size: 0.9rem;
  font-weight: 600;
}

.empty-checklist-panel {
  margin-top: 0;
}

.detailed-task label {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: flex-start;
}

.detailed-task input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--blue-2);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}

.learning-list {
  display: grid;
  gap: 12px;
}

.learning-card {
  scroll-margin-top: 120px;
  overflow: hidden;
}

.learned-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.learned-section .section-title h2 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.card-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 82px 1fr 42px;
  gap: 14px;
  align-items: center;
  border: 0;
  padding: 14px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.card-summary h3 {
  margin: 5px 0 5px;
  font-size: 1.15rem;
}

.card-summary strong {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: rgba(15, 108, 189, 0.78);
}

.visual-card {
  min-height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(74, 163, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, rgba(15, 108, 189, 0.28), rgba(74, 163, 255, 0.1));
  text-align: center;
}

.visual-card svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-visual {
  color: var(--cyan);
}

.product-visual {
  gap: 6px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(15, 108, 189, 0.2)),
    radial-gradient(circle at 25% 20%, rgba(66, 230, 164, 0.32), transparent 30%);
}

.product-visual span {
  font-size: 0.72rem;
  font-weight: 600;
}

.card-detail {
  display: none;
  padding: 0 16px 16px 112px;
}

.card-detail.open {
  display: block;
}

.detail-block {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-block span {
  color: var(--cyan);
  font-weight: 850;
}

.warning-block {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 111, 134, 0.42);
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  background: rgba(255, 111, 134, 0.09);
}

.warning-block span {
  color: #ff9bad;
  font-weight: 850;
}

.warning-block p {
  margin: 6px 0 0;
  color: var(--soft);
}

.note-highlight {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(66, 230, 164, 0.34);
  border-left: 4px solid var(--ok);
  border-radius: 8px;
  background: rgba(66, 230, 164, 0.08);
}

.note-highlight span {
  color: var(--ok);
  font-weight: 850;
}

.note-highlight p {
  margin: 6px 0 0;
  color: var(--soft);
}

.link-row,
.action-row,
.learning-actions,
.theme-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.learning-action-row {
  align-items: center;
}

.link-row a,
.small-action,
.status-button,
.theme-button,
.danger-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  text-decoration: none;
  font-weight: 500;
}

.link-row a {
  border: 1px solid rgba(74, 163, 255, 0.34);
  color: #fff;
  background: rgba(15, 108, 189, 0.18);
}

.small-action,
.icon-action,
.status-button,
.theme-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
}

.icon-action {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.status-button {
  background: rgba(15, 108, 189, 0.24);
}

.status-button.secondary {
  background: rgba(255, 255, 255, 0.05);
}

.status-button.important-action {
  border-color: rgba(255, 95, 112, 0.72);
  color: #fff;
  background: linear-gradient(135deg, rgba(214, 48, 64, 0.96), rgba(168, 36, 52, 0.94));
}

.status-button.important-action:hover {
  border-color: rgba(255, 148, 158, 0.9);
  background: linear-gradient(135deg, rgba(232, 64, 80, 1), rgba(190, 44, 60, 1));
}

.danger-button {
  border: 1px solid rgba(255, 111, 134, 0.35);
  color: #fff;
  background: rgba(255, 111, 134, 0.16);
}

.note-box {
  display: none;
  margin-top: 12px;
}

.note-box.open {
  display: block;
}

.note-box textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
}

body[data-theme="light"] .note-box textarea {
  background: rgba(255, 255, 255, 0.78);
}

.category-tile {
  min-height: 220px;
  padding: 20px;
  color: inherit;
  text-align: left;
}

.category-tile-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.category-tile-head h3 {
  margin: 0;
}

.category-tile span,
.work-head span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  font-weight: 900;
}

.category-symbol svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-tile strong {
  color: var(--cyan);
}

.inline-section {
  margin-top: 28px;
}

.category-card-sections {
  display: grid;
  gap: 26px;
}

.category-card-section {
  scroll-margin-top: 92px;
}

.one-row {
  grid-template-columns: minmax(0, 1fr);
}

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

.work-category-grid {
  margin-bottom: 24px;
}

.work-sections {
  display: grid;
  gap: 30px;
}

.work-section {
  scroll-margin-top: 120px;
}

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

.mini-card-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.product-card {
  scroll-margin-top: 120px;
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.product-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.product-photo picture,
.product-photo img {
  width: 100%;
  height: 100%;
  display: block;
}

.product-photo img {
  object-fit: cover;
}

.product-photo-placeholder {
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed rgba(74, 163, 255, 0.38);
  border-radius: 8px;
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(15, 108, 189, 0.18), rgba(255, 255, 255, 0.03));
  text-align: center;
  font-weight: 700;
}

.product-photo-placeholder svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.product-content {
  min-width: 0;
}

.product-content h3 {
  margin: 6px 0 8px;
  font-size: clamp(1.28rem, 2.2vw, 1.8rem);
  font-weight: 600;
}

.product-content > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-toggle {
  margin-top: 14px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.product-toggle:hover,
.product-toggle.open {
  border-color: rgba(74, 163, 255, 0.58);
  background: rgba(74, 163, 255, 0.14);
}

.product-toggle .less {
  display: none;
}

.product-toggle.open .more {
  display: none;
}

.product-toggle.open .less {
  display: inline;
}

.product-detail {
  display: none;
}

.product-detail.open {
  display: block;
}

.contact-section {
  margin-top: 18px;
}

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

.contact-card {
  padding: 16px;
}

.contact-card h3 {
  margin: 6px 0 4px;
}

.contact-values {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.contact-value {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.contact-value strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  white-space: normal;
}

.contact-inline-action {
  min-height: 38px;
  width: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.contact-inline-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-inline-action:hover {
  color: #fff;
  background: rgba(15, 108, 189, 0.28);
}

.export-contact-button {
  width: 100%;
  justify-content: center;
}

.help-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--soft);
}

.help-list span,
.help-list strong {
  display: block;
}

.collapsible-panel summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

.collapsible-panel summary::-webkit-details-marker {
  display: none;
}

.collapsible-panel summary h3 {
  margin: 0;
}

.collapsible-panel summary p {
  margin: 8px 0 0;
}

.collapsible-panel summary::after {
  content: "+";
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.3rem;
  font-weight: 500;
}

.collapsible-panel[open] summary::after {
  content: "−";
}

.collapsible-content {
  margin-top: 12px;
}

.tips-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

.tips-modal.open {
  display: grid;
  place-items: center;
}

.tips-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 7, 18, 0.76);
  backdrop-filter: blur(12px);
}

.tips-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: min(86dvh, 820px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.tips-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tips-dialog-head h2 {
  margin: 6px 0 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 600;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tip-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.tip-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(15, 108, 189, 0.28), rgba(74, 163, 255, 0.1));
}

.tip-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tip-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.tip-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.tip-card strong {
  color: var(--soft);
}

.tips-dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.app-signature,
.settings-logo-footer {
  display: flex;
  justify-content: center;
}

.app-signature {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.settings-logo-footer {
  grid-column: 1 / -1;
  padding: 6px 0 2px;
}

.app-signature img,
.settings-logo-footer img {
  width: min(132px, 38vw);
  height: auto;
  opacity: 0.58;
  filter: saturate(0.9);
}

.copy-inline {
  min-height: 32px;
  width: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

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

.compact-card .card-summary {
  grid-template-columns: 64px 1fr;
}

.compact-card .card-summary strong {
  display: none;
}

.compact-card .card-detail {
  padding-left: 16px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
}

.profile-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-grid span {
  color: var(--muted);
  font-size: 0.86rem;
}

.profile-grid input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-panel {
  grid-column: span 2;
}

body[data-theme="light"] .profile-grid input {
  background: rgba(255, 255, 255, 0.78);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translate(-50%, 120%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: rgba(15, 108, 189, 0.94);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: rgba(0, 7, 18, 0.72);
  backdrop-filter: blur(14px);
}

.search-panel.open {
  display: block;
}

.search-box {
  width: min(760px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.search-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.search-head label {
  display: grid;
  gap: 8px;
}

.search-head span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-head input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.search-group {
  display: grid;
  gap: 10px;
}

.search-group > span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-result {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 13px;
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.search-result span {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-result small,
.empty-search {
  color: var(--muted);
}

.task-extra-row,
.task-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.task-extra {
  min-height: 34px;
  border: 1px solid rgba(74, 163, 255, 0.34);
  border-radius: 999px;
  padding: 0 11px;
  color: #fff;
  background: rgba(15, 108, 189, 0.16);
  font-weight: 500;
}

.muted-extra {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

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

@media (max-width: 1040px) {
  .hero-band,
  .feature-row,
  .work-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .compact-task-list,
  .dashboard-grid,
  .category-grid,
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-panel {
    grid-column: span 2;
  }
}

@media (max-width: 780px) {
  .app-shell {
    padding: calc(82px + env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .topbar {
    display: none;
  }

  .filter-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .filter-button {
    min-height: 36px;
    padding: 0 4px;
    border-radius: 6px;
    font-size: clamp(0.68rem, 2.75vw, 0.78rem);
    font-weight: 600;
    white-space: nowrap;
  }

  .mobile-bottom-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: calc(7px + env(safe-area-inset-top)) max(7px, env(safe-area-inset-right)) 7px max(7px, env(safe-area-inset-left));
    border-bottom: 1px solid var(--line);
    background: rgba(31, 31, 31, 0.96);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(16px);
  }

  body[data-theme="light"] .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.94);
  }

  .mobile-nav-item {
    min-width: 0;
    min-height: 58px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 0;
    border-radius: 8px;
    padding: 5px 3px;
    color: var(--muted);
    background: transparent;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.05;
  }

  .mobile-nav-item svg {
    width: 22px;
    height: 22px;
  }

  .mobile-nav-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-item.active {
    color: #fff;
    background: rgba(15, 108, 189, 0.92);
  }

  .more-panel {
    top: calc(82px + env(safe-area-inset-top));
    bottom: auto;
    margin-right: auto;
  }

  .hero-band {
    min-height: auto;
    padding: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  .hero-progress,
  .dashboard-block,
  .metric-tile,
  .feature-panel,
  .checklist-section,
  .settings-panel {
    padding: 16px;
  }

  .compact-task-list,
  .dashboard-grid,
  .category-grid,
  .settings-grid,
  .profile-grid,
  .contact-grid,
  .product-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-photo {
    aspect-ratio: 16 / 10;
  }

  .profile-panel {
    grid-column: span 1;
  }

  .card-summary {
    grid-template-columns: 58px 1fr 34px;
    gap: 10px;
    padding: 12px;
  }

  .visual-card {
    min-height: 56px;
    font-size: 0.72rem;
  }

  .card-detail {
    padding: 0 12px 14px;
  }

  .action-row {
    gap: 7px;
  }

  .status-button {
    min-height: 38px;
    padding: 0 10px;
  }

  .tips-dialog {
    max-height: 92dvh;
    padding: 14px;
  }

  .tip-card {
    grid-template-columns: 44px 1fr;
    padding: 12px;
  }

  .tip-icon {
    width: 42px;
    height: 42px;
  }

  .section-title h2 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .category-tile {
    min-height: 0;
  }
}

@media (max-width: 430px) {
  .eyebrow,
  .section-title p,
  .tile-kicker,
  .card-tag,
  .card-meta {
    font-size: 0.68rem;
  }

  .compact-task {
    min-height: 0;
  }

  .detailed-task {
    padding: 13px;
  }

  .icon-nav-link,
  .icon-action {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}
