@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #0d0e11;
  --panel: #17181df2;
  --panel-soft: #191a20b8;
  --line: #ffffff10;
  --line-strong: #ffffff1c;
  --text: #f4f3f6;
  --muted: #a2a2af;
  --faint: #72737f;
  --red: #f34752;
  --red-soft: #f347521c;
  --green: #73d4aa;
  --amber: #e5ba6b;
  --radius: 18px;
  --safe-top: max(
    env(safe-area-inset-top, 0px),
    var(--tg-content-safe-area-inset-top, 0px)
  );
  --safe-bottom: max(
    env(safe-area-inset-bottom, 0px),
    var(--tg-content-safe-area-inset-bottom, 0px)
  );
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 82% 0, #611c2320, transparent 48%), var(--bg);
  min-width: 280px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 0;
  border-color: #e74b5e;
  box-shadow: 0 0 0 3px #f3475212;
}
::selection {
  background: #f3475240;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--faint);
}
.desktop-only {
  display: initial;
}
#ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.fog {
  position: absolute;
  width: 65vw;
  height: 50vh;
  filter: blur(65px);
  opacity: 0.18;
  transform: translate3d(0, 0, 0);
  background: radial-gradient(ellipse, #73404f60, transparent 66%);
  animation: fog-drift 35s ease-in-out infinite alternate;
}
.fog-a {
  top: 18%;
  right: -25%;
}
.fog-b {
  bottom: -20%;
  left: 0;
  opacity: 0.1;
  animation-delay: -18s;
  background: radial-gradient(ellipse, #ced2db45, transparent 65%);
}
.dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 20%, #c8b4b180, transparent),
    radial-gradient(1px 1px at 75% 70%, #d4606450, transparent),
    radial-gradient(1px 1px at 45% 90%, #ddd5d448, transparent),
    radial-gradient(1px 1px at 86% 20%, #d7c2b448, transparent);
  background-size:
    330px 410px,
    420px 310px,
    290px 470px,
    490px 350px;
  animation: dust-drift 50s linear infinite;
  opacity: 0.4;
}
.watermark {
  position: absolute;
  right: -80px;
  bottom: -100px;
  font-size: 430px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -45px;
  color: #ffffff02;
  transform: rotate(-12deg);
  font-family: Georgia, serif;
}
.effects-off .fog,
.effects-off .dust {
  animation: none;
  display: none;
}
.app-shell {
  position: relative;
  display: flex;
  min-height: 100dvh;
  z-index: 1;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  padding: 30px 18px 20px;
  background: linear-gradient(160deg, #14151af5, #101115f5);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px 35px;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ffffff1a;
  box-shadow: 0 0 22px #f3475212;
}
.brand > span {
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 800;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.25px;
  color: #90909b;
  margin-top: 1px;
}
.sidebar-caption {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--faint);
  padding: 0 14px 14px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  margin-bottom: 5px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #a6a5b0;
  font-weight: 550;
  transition:
    background 0.2s,
    color 0.2s;
}
.side-link svg {
  width: 19px;
  height: 19px;
}
.side-link:hover {
  background: #ffffff04;
  color: white;
}
.side-link.active {
  color: #fff;
  background: linear-gradient(90deg, #e9435026, #e9435009);
  border-color: #f3475222;
}
.side-link.active svg {
  color: var(--red);
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  color: #8b8b98;
  background: #ffffff07;
  padding: 2px 7px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.private-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 12px 24px;
  font-size: 11px;
  color: #d5d4dd;
}
.private-note small {
  display: block;
  color: var(--faint);
  font-size: 9px;
  margin-top: 4px;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--green);
  box-shadow: 0 0 8px #73d4aa55;
  border-radius: 100%;
  flex-shrink: 0;
}
.profile-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  background: #ffffff03;
  border: 1px solid var(--line);
  padding: 10px;
  width: 100%;
  border-radius: 11px;
}
.profile-mini > span:last-child {
  min-width: 0;
}
.profile-mini strong {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-mini small {
  color: var(--faint);
  font-size: 9px;
}
.build-label {
  display: block;
  padding-top: 20px;
  text-align: center;
  color: #4c4d58;
  letter-spacing: 1.6px;
  font-size: 8px;
}
.workspace {
  margin-left: 238px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: #0f1014a8;
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  min-width: 0;
}
.breadcrumb > span:first-child {
  color: var(--faint);
}
.breadcrumb-slash {
  color: #45454f;
}
.breadcrumb strong {
  font-weight: 550;
  white-space: nowrap;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.access-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #b1b1bd;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
}
.icon-button:hover {
  background: #ffffff08;
  color: #fff;
  border-color: var(--line);
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.user-avatar,
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #dedde4;
  background: linear-gradient(140deg, #393a43, #222329);
  border: 1px solid #ffffff16;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.user-avatar {
  width: 33px;
  height: 33px;
  font-size: 10px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1560px;
  padding: 20px 38px 25px;
  margin: 0 auto;
  font-size: 9px;
  color: #555661;
  letter-spacing: 0.3px;
}
.workspace-footer > span:first-child {
  letter-spacing: 2px;
  font-weight: 700;
}
.bottom-nav {
  display: none;
}
main {
  max-width: 1560px;
  padding: 30px 38px 10px;
  margin: 0 auto;
  min-height: calc(100dvh - 150px);
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-heading h1 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.8px;
  margin: 0 0 6px;
}
.page-heading p {
  font-size: 11px;
  margin: 0;
  color: var(--muted);
}
.heading-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(155deg, #34343db0, #25262db0);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.16s,
    border-color 0.16s,
    background 0.16s;
}
.btn:hover {
  border-color: #ffffff30;
  background: linear-gradient(155deg, #42414bb0, #303139b0);
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn-primary {
  border-color: #f35b6755;
  background: linear-gradient(135deg, #ee4350, #b72d3d);
  box-shadow: 0 4px 20px #d635411c;
  color: white;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff5361, #c53445);
  border-color: #f35b6788;
}
.btn-ghost {
  background: #ffffff03;
}
.btn-danger {
  color: #ff8891;
  background: #f347520b;
  border-color: #f3475230;
}
.btn-full {
  width: 100%;
}
.btn-small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 10px;
}
.text-link {
  border: 0;
  background: none;
  font-size: 11px;
  color: #c3b8c1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link svg {
  width: 13px;
  height: 13px;
}
.text-link:hover {
  color: #fff;
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid #ffffff13;
  min-height: 254px;
  background: #181013;
  margin-bottom: 23px;
  isolation: isolate;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  z-index: -3;
  opacity: 0.77;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #090b10ed 0%, #0c0d12a0 35%, #0c0d1212 73%),
    linear-gradient(0deg, #101115be, transparent 70%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 70px #0004;
  pointer-events: none;
  z-index: -1;
}
.hero-content {
  padding: 31px 33px;
  max-width: 520px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #ed58693b;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #eaa6ad;
  background: #3b131c5e;
}
.hero h2 {
  font-size: 29px;
  line-height: 1.16;
  margin: 16px 0 10px;
  letter-spacing: -0.9px;
  font-weight: 600;
}
.hero h2 span {
  color: #c2bec6;
}
.hero p {
  font-size: 11px;
  max-width: 290px;
  color: #bbb4bd;
  line-height: 1.6;
  margin: 0 0 20px;
}
.hero-bottom {
  display: flex;
  align-items: center;
  gap: 15px;
}
.hero .btn {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 10px;
}
.hero-seal {
  position: absolute;
  right: 19px;
  bottom: 16px;
  font-size: 7px;
  letter-spacing: 2px;
  color: #eee6e780;
  padding: 4px 7px;
  border: 1px solid #ffffff15;
  border-radius: 4px;
}
.hero-smoke {
  position: absolute;
  right: -20%;
  bottom: -70%;
  width: 95%;
  height: 110%;
  background: radial-gradient(ellipse, #c95e7135, transparent 65%);
  filter: blur(35px);
  z-index: -1;
  animation: fog-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 26px;
}
.stat-card,
.panel,
.resource-card,
.category-card,
.settings-card {
  background: linear-gradient(140deg, #202127bd, #14151bd6);
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
  min-width: 0;
  box-shadow: 0 8px 30px #0000000a;
}
.stat-card {
  padding: 18px 19px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
}
.stat-top svg {
  width: 17px;
  height: 17px;
  color: #8e8c99;
}
.stat-value {
  display: block;
  font-size: 29px;
  line-height: 1.1;
  margin: 12px 0 9px;
  letter-spacing: -1px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.stat-foot {
  font-size: 9px;
  color: var(--faint);
}
.stat-foot .dot {
  margin-right: 5px;
}
.stat-card.emphasis {
  border-color: #f3475221;
  background: linear-gradient(140deg, #48212a70, #1c171e);
}
.stat-card.emphasis .stat-top svg {
  color: #f3747f;
}
.dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 100%;
  background: var(--muted);
  vertical-align: middle;
}
.dot.green {
  background: var(--green);
}
.dot.red {
  background: var(--red);
}
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.section-bar h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.2px;
}
.section-bar h2 small {
  margin-left: 7px;
  font-size: 10px;
  color: var(--faint);
  font-weight: 400;
}
.panel {
  padding: 18px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}
.quick-action {
  padding: 18px 13px 15px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(140deg, #ffffff06, #ffffff02);
  min-width: 0;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.quick-action:hover {
  background: #ffffff08;
  border-color: #ffffff25;
}
.quick-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff05;
  border-radius: 9px;
  border: 1px solid #ffffff08;
  margin-bottom: 15px;
  color: #b6b1bd;
}
.quick-action:first-child .quick-icon {
  color: #f78891;
  background: #f3475210;
  border-color: #f3475216;
}
.quick-action strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
}
.quick-action small {
  display: block;
  font-size: 9px;
  color: var(--faint);
  margin-top: 5px;
  line-height: 1.4;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.category-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  text-align: left;
  color: inherit;
  width: 100%;
  transition: border-color 0.2s;
}
.category-card:hover {
  border-color: #ffffff25;
}
.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f347520c;
  border: 1px solid #f3475216;
  color: #ee8995;
  flex-shrink: 0;
}
.category-icon svg {
  width: 17px;
  height: 17px;
}
.category-card strong {
  font-size: 11px;
  font-weight: 550;
  display: block;
}
.category-card small {
  font-size: 9px;
  color: var(--faint);
  display: block;
  margin-top: 4px;
}
.category-card > .chevron {
  margin-left: auto;
  color: #61606c;
}
.category-card .chevron svg {
  width: 13px;
  height: 13px;
}
.task-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.task-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.task-row:first-child {
  padding-top: 0;
}
.task-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.task-title-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: flex-start;
}
.task-row strong {
  font-size: 11px;
  font-weight: 550;
  line-height: 1.5;
  display: block;
  overflow-wrap: anywhere;
}
.task-meta {
  font-size: 9px;
  color: var(--faint);
  margin-top: 5px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.progress-track {
  height: 3px;
  border-radius: 5px;
  background: #ffffff09;
  overflow: hidden;
  margin: 11px 0 5px;
}
.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #af3345, #ed6771);
  border-radius: 5px;
  max-width: 100%;
}
.task-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--faint);
}
.task-controls {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.task-result {
  color: var(--muted);
  font-size: 10px;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.connection-panel {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff02;
}
.connection-panel > svg {
  width: 23px;
  height: 23px;
  color: #a4a0b0;
}
.connection-panel strong {
  display: block;
  font-size: 10px;
  font-weight: 550;
}
.connection-panel small {
  display: block;
  font-size: 9px;
  color: var(--faint);
  margin-top: 3px;
}
.connection-panel .status {
  margin-left: auto;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 3px 7px;
  line-height: 1.3;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 550;
  border: 1px solid #ffffff0b;
  color: #b2afbd;
  background: #ffffff04;
}
.status.green {
  color: #8dd6b2;
  border-color: #73d4aa16;
  background: #73d4aa09;
}
.status.red {
  color: #f48b95;
  border-color: #f347521c;
  background: #f347520b;
}
.status.amber {
  color: #e7c58a;
  border-color: #e5ba6b1a;
  background: #e5ba6b09;
}
.status.blue {
  color: #9bacda;
  border-color: #a3b9ff1a;
  background: #a3b9ff09;
}
.empty-state {
  text-align: center;
  padding: 33px 18px;
  color: var(--muted);
}
.empty-state > svg {
  width: 30px;
  height: 30px;
  color: #666371;
  margin: 0 auto 12px;
}
.empty-state h3 {
  font-size: 13px;
  font-weight: 550;
  color: #d9d6e0;
  margin: 0 0 7px;
}
.empty-state p {
  font-size: 11px;
  margin: 0 auto 16px;
  max-width: 320px;
  line-height: 1.7;
}
.empty-state.compact {
  padding: 22px 10px;
}
.empty-state.compact p {
  font-size: 10px;
}
.resource-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1;
  min-width: 150px;
}
.search svg {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 16px;
  height: 16px;
  color: var(--faint);
}
.search input {
  padding-left: 38px;
}
.field,
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  min-height: 41px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #101116b8;
  color: var(--text);
  padding: 10px 12px;
  font-size: 11px;
  transition: border-color 0.2s;
}
select {
  appearance: auto;
}
textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 110px;
}
input::placeholder,
textarea::placeholder {
  color: #6d6c7a;
}
.resource-toolbar > select {
  width: auto;
  max-width: 220px;
  min-width: 130px;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  background: #ffffff03;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  max-width: 100%;
  overflow: auto;
}
.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 10px;
}
.segmented button.active {
  background: #ffffff09;
  color: #f4f0f6;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.resource-card {
  padding: 18px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.resource-card:hover {
  border-color: #ffffff22;
  transform: translateY(-2px);
}
.resource-card.selected {
  border-color: #e15b6d70;
  box-shadow: inset 0 0 0 1px #e15b6d16;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.card-identity {
  min-width: 0;
  flex: 1;
}
.card-identity h3 {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 4px;
}
.card-identity p {
  font-size: 10px;
  margin: 0;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-menu {
  margin-left: auto;
  flex-shrink: 0;
}
.card-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 8px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 16px;
}
.card-info dt {
  color: var(--faint);
  font-size: 9px;
  margin-bottom: 3px;
}
.card-info dd {
  margin: 0;
  color: #c6c3cf;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
  min-height: 19px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border: 1px solid #ffffff0b;
  border-radius: 4px;
  background: #ffffff04;
  font-size: 8px;
  color: #aaa6b4;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 17px;
}
.card-actions .btn {
  flex: 1;
  min-height: 33px;
  font-size: 10px;
  padding: 7px;
}
.card-check {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 1px solid #ffffff25;
  border-radius: 5px;
  background: #ffffff04;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}
.card-check:checked {
  background: var(--red);
  border-color: var(--red);
}
.card-check:checked:after {
  content: "✓";
  font-size: 11px;
  line-height: 1;
  color: #fff;
}
.selection-bar {
  position: sticky;
  top: 90px;
  z-index: 20;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 15px;
  border-radius: 10px;
  background: #352028f5;
  border: 1px solid #f3475235;
  font-size: 11px;
  backdrop-filter: blur(12px);
}
.selection-bar > span {
  margin-right: auto;
}
.list-footer {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.material-body {
  font-size: 11px;
  line-height: 1.75;
  color: #b8b3c2;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 76px;
  margin: 14px 0;
}
.material-thumb {
  height: 100px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin: 12px 0;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-soft);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
th,
td {
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  font-size: 9px;
  letter-spacing: 0.7px;
  color: var(--faint);
  font-weight: 550;
  white-space: nowrap;
}
td {
  color: #c8c4cf;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-weight: 550;
  color: #eeeaf3;
}
.nowrap {
  white-space: nowrap;
}
.mono {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
}
.info-box {
  border: 1px solid #ffffff0e;
  background: #ffffff03;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 17px;
}
.info-box.warning {
  border-color: #e5ba6b22;
  background: #e5ba6b07;
  color: #d7c4a3;
}
.info-box.success {
  border-color: #73d4aa22;
  background: #73d4aa07;
  color: #acd3be;
}
.info-box strong {
  color: #e2dce7;
  font-weight: 550;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 24px;
}
.profile-header .avatar {
  width: 65px;
  height: 65px;
  font-size: 20px;
  border-radius: 18px;
}
.profile-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
}
.profile-header p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.settings-card {
  padding: 21px;
}
.settings-card h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 17px;
}
.setting-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.setting-row:first-of-type {
  padding-top: 0;
}
.setting-row strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
}
.setting-row small {
  display: block;
  font-size: 10px;
  color: var(--faint);
  margin-top: 4px;
  line-height: 1.5;
}
.toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.toggle input {
  appearance: none;
  width: 34px;
  height: 20px;
  border-radius: 20px;
  background: #3b3a45;
  border: 1px solid #ffffff12;
  margin: 0;
  cursor: pointer;
}
.toggle input:checked {
  background: #c94152;
}
.toggle input:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  top: 3px;
  left: 3px;
  background: #d5d0da;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle input:checked:after {
  transform: translateX(14px);
  background: white;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.more-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-soft);
  padding: 19px;
  text-align: left;
}
.more-item > svg {
  color: #b6acbd;
}
.more-item strong {
  display: block;
  font-size: 12px;
}
.more-item small {
  display: block;
  font-size: 10px;
  color: var(--faint);
  margin-top: 3px;
}
.modal {
  color: var(--text);
  background: linear-gradient(145deg, #24232afc, #15161bfc);
  border: 1px solid #ffffff1c;
  border-radius: 20px;
  padding: 24px;
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  box-shadow: 0 30px 120px #000a;
  scrollbar-width: thin;
  scrollbar-color: #4c414e transparent;
}
.modal.wide {
  width: min(760px, calc(100vw - 28px));
}
.modal::backdrop {
  background: #050609b8;
  backdrop-filter: blur(8px);
}
.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.modal-top h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin: 5px 0 0;
}
.modal-top .eyebrow {
  font-size: 8px;
}
.form-field {
  display: block;
  margin-bottom: 16px;
}
.form-field > span,
.form-field > label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #d7d2de;
  margin-bottom: 7px;
}
.form-field > small {
  display: block;
  font-size: 10px;
  color: var(--faint);
  line-height: 1.6;
  margin-top: 6px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 22px;
}
.form-actions .btn {
  min-height: 41px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.choice {
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #ffffff02;
  padding: 15px;
  text-align: left;
}
.choice svg {
  color: #b4aab9;
  display: block;
  margin-bottom: 10px;
}
.choice strong {
  font-size: 11px;
  display: block;
}
.choice small {
  display: block;
  font-size: 9px;
  color: var(--faint);
  margin-top: 5px;
}
.choice.selected {
  border-color: #f3475270;
  background: #f3475209;
}
.choice.selected svg {
  color: #f58a95;
}
.stepper {
  display: flex;
  gap: 7px;
  margin-bottom: 23px;
}
.stepper span {
  height: 3px;
  flex: 1;
  background: #ffffff0a;
  border-radius: 5px;
}
.stepper span.active {
  background: linear-gradient(90deg, #ae3446, #f16877);
}
.step-label {
  font-size: 9px;
  color: var(--faint);
  margin-bottom: 12px;
}
.check-list {
  max-height: 210px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #11121666;
}
.check-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  cursor: pointer;
  min-height: 42px;
}
.check-option:last-child {
  border: 0;
}
.check-option small {
  margin-left: auto;
  color: var(--faint);
  font-size: 9px;
}
.check-option input {
  accent-color: var(--red);
  flex-shrink: 0;
}
.rich-toolbar {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
}
.rich-toolbar button {
  width: 31px;
  height: 27px;
  border: 0;
  border-radius: 4px;
  background: none;
  font-size: 11px;
  color: #bcb3c3;
}
.rich-toolbar button:hover {
  background: #ffffff09;
}
.format-preview {
  padding: 16px;
  background: #25232b;
  border: 1px solid var(--line);
  border-radius: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.8;
}
.form-error {
  font-size: 11px;
  padding: 11px 12px;
  color: #ffa0aa;
  border: 1px solid #f3475233;
  border-radius: 9px;
  background: #f3475209;
  margin-bottom: 15px;
}
.upload-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 22px 15px;
  border: 1px dashed #ffffff28;
  border-radius: 11px;
  background: #ffffff02;
  text-align: center;
  cursor: pointer;
  font-size: 11px;
  color: #b9afc3;
}
.upload-zone small {
  font-size: 9px;
  color: var(--faint);
}
.upload-zone input {
  padding: 8px !important;
  min-height: 0 !important;
  font-size: 10px !important;
  max-width: 100%;
}
.file-badge {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin: 9px 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin-bottom: 20px;
}
.detail-grid > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.detail-grid dt {
  color: var(--faint);
  font-size: 10px;
  margin-bottom: 5px;
}
.detail-grid dd {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.capability-label {
  font-size: 9px;
  color: #c2a776;
  display: inline-block;
  margin-top: 5px;
}
.gate {
  max-width: 460px;
  margin: 30px auto;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  text-align: center;
}
.gate img {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  margin: 0 auto 22px;
  box-shadow: 0 0 55px #d6323a20;
}
.gate h1 {
  font-size: 23px;
  margin: 0 0 12px;
  letter-spacing: -0.6px;
}
.gate p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 23px;
}
.gate .form-field {
  text-align: left;
}
.gate .btn {
  width: 100%;
}
.gate .eyebrow {
  display: block;
  margin-bottom: 12px;
}
.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 13px 17px;
  background: #29242ef5;
  border: 1px solid #ffffff20;
  border-radius: 11px;
  font-size: 11px;
  box-shadow: 0 10px 35px #0005;
  animation: toast-in 0.2s ease-out;
  color: #eee4f1;
  overflow-wrap: anywhere;
}
.toast.error {
  border-color: #ed485750;
  color: #ffb0b8;
}
.skeleton {
  background: linear-gradient(100deg, #1a1b21 25%, #24242c 45%, #1a1b21 65%);
  background-size: 250% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: 14px;
}
.skeleton-hero {
  height: 250px;
  margin-bottom: 20px;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.skeleton-grid > div {
  height: 130px;
}
#demo-ribbon {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px 38px;
  background: #a3752b10;
  border-bottom: 1px solid #c6a65f18;
  color: #b8a88b;
  font-size: 10px;
}
#demo-ribbon > span {
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid #c6a65f28;
  border-radius: 4px;
  padding: 2px 5px;
}
#demo-ribbon button {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #ddc699;
  font-size: 10px;
}
#splash {
  position: fixed;
  inset: 0;
  background: #08090d;
  z-index: 1000;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  transform-origin: right center;
}
.splash-halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, #9f233c1f, transparent 55%);
}
.splash-content {
  width: 270px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.emblem-stage {
  position: relative;
  width: 246px;
  height: 246px;
  margin: -40px auto 6px;
  mask-image: radial-gradient(ellipse at center, #000 42%, transparent 74%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 42%,
    transparent 74%
  );
}
.emblem-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.emblem-shadow {
  opacity: 0.12;
  filter: grayscale(1) blur(3px);
}
.emblem-crown {
  clip-path: polygon(
    12% 1%,
    90% 1%,
    90% 41%,
    77% 50%,
    50% 36%,
    23% 50%,
    12% 41%
  );
  animation: crown-settle 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.emblem-g {
  clip-path: polygon(24% 40%, 50.5% 33%, 50.5% 85%, 24% 76%);
  animation: g-arrive 0.6s 0.65s cubic-bezier(0.15, 0.8, 0.2, 1) both;
}
.emblem-s {
  clip-path: polygon(49.5% 33%, 78% 40%, 78% 76%, 49.5% 85%);
  animation: s-arrive 0.6s 0.65s cubic-bezier(0.15, 0.8, 0.2, 1) both;
}
.emblem-glint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 35%,
    #fff6 49%,
    transparent 57%
  );
  mix-blend-mode: screen;
  transform: translateX(-140%);
  animation: glint 0.65s 1.1s ease-out both;
}
.splash-name {
  font-size: 18px;
  letter-spacing: 4px;
  font-weight: 800;
}
.splash-name span {
  color: #c8bdc8;
  font-weight: 350;
  font-size: 13px;
  letter-spacing: 3px;
  display: block;
  margin-top: 3px;
}
.splash-subtitle {
  font-size: 7px;
  letter-spacing: 1.45px;
  color: #6f6574;
  margin-top: 16px;
}
.loading-line {
  height: 3px;
  background: #ffffff0c;
  margin-top: 31px;
  border-radius: 10px;
  overflow: hidden;
}
.loading-line > div {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #922538, #f54d5c, #f8a3a9);
  transform-origin: left;
  animation: load-progress 1.8s linear both;
  box-shadow: 0 0 15px #f3475255;
}
.loading-meta {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #817586;
  margin-top: 10px;
}
.exit-smoke {
  position: absolute;
  inset: -40%;
  opacity: 0;
  background:
    radial-gradient(ellipse at 38% 47%, #cdc3cd35, transparent 32%),
    radial-gradient(ellipse at 67% 54%, #ac4a5b33, transparent 35%);
  filter: blur(20px);
  pointer-events: none;
}
.splash-exit {
  animation: splash-leave 0.22s ease-in forwards;
}
.splash-exit .exit-smoke {
  animation: smoke-exit 0.22s ease-out both;
}
.splash-exit .splash-content {
  filter: blur(3px);
}
.page-enter {
  animation: page-in 0.3s ease-out both;
}
@keyframes crown-settle {
  from {
    opacity: 0;
    transform: translateY(-65px) scale(1.08);
  }
  65% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes g-arrive {
  from {
    opacity: 0;
    transform: translateX(-95px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes s-arrive {
  from {
    opacity: 0;
    transform: translateX(95px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes glint {
  to {
    transform: translateX(140%);
  }
}
@keyframes load-progress {
  0% {
    transform: scaleX(0);
  }
  25% {
    transform: scaleX(0.25);
  }
  65% {
    transform: scaleX(0.69);
  }
  100% {
    transform: scaleX(1);
  }
}
@keyframes splash-leave {
  0% {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translateX(100%) scaleX(0.25);
  }
}
@keyframes smoke-exit {
  from {
    opacity: 0;
    transform: translateX(-15%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(30%) scale(1.4);
  }
}
@keyframes fog-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-8%, 10%, 0) scale(1.1);
  }
}
@keyframes dust-drift {
  to {
    transform: translateY(-140px);
  }
}
@keyframes shimmer {
  to {
    background-position: -150% 0;
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  .hero {
    min-height: 295px;
  }
  .hero-content {
    padding: 37px 39px;
  }
  .hero h2 {
    font-size: 34px;
  }
  .hero-image {
    object-position: center 42%;
  }
  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 210px;
  }
  .brand {
    gap: 8px;
    padding-left: 7px;
  }
  .brand > span {
    font-size: 16px;
    letter-spacing: 1.5px;
  }
  .brand small {
    font-size: 7px;
  }
  .brand img {
    width: 39px;
    height: 39px;
  }
  .topbar {
    padding: 0 26px;
  }
  main {
    padding: 26px 26px 10px;
  }
  .workspace-footer {
    padding: 20px 26px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-columns {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr);
    gap: 17px;
  }
  .quick-action {
    padding: 16px 11px;
  }
  .quick-action small {
    font-size: 8px;
  }
  .category-card {
    padding: 14px;
    gap: 9px;
  }
  .category-icon {
    width: 31px;
    height: 31px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-top {
    font-size: 9px;
  }
  #demo-ribbon {
    padding: 8px 26px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 76px;
    padding: 22px 10px;
  }
  .brand {
    padding: 0 7px 26px;
  }
  .brand img {
    width: 42px;
    height: 42px;
    max-width: none;
  }
  .brand > span,
  .sidebar-caption,
  .side-link > span,
  .sidebar-bottom,
  .nav-count {
    display: none;
  }
  .side-link {
    justify-content: center;
    padding: 14px;
    margin-bottom: 7px;
  }
  .side-link svg {
    width: 21px;
    height: 21px;
  }
  .workspace {
    margin-left: 76px;
  }
  .dashboard-columns {
    grid-template-columns: 1fr 1fr;
  }
  .quick-grid {
    gap: 7px;
  }
  .quick-action {
    padding: 13px 9px;
  }
  .quick-action strong {
    font-size: 10px;
  }
  .quick-action small {
    display: none;
  }
  .quick-icon {
    margin-bottom: 12px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 245px;
  }
  .hero-content {
    padding: 27px;
  }
  .hero h2 {
    font-size: 28px;
  }
  .topbar {
    height: 68px;
  }
  .selection-bar {
    top: 80px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: calc(62px + var(--safe-top));
    padding: var(--safe-top) 20px 0;
  }
  .desktop-only {
    display: none;
  }
  .topbar-actions {
    gap: 8px;
  }
  .access-pill {
    font-size: 9px;
    padding: 4px 7px;
  }
  .breadcrumb strong {
    font-size: 13px;
  }
  .topbar .icon-button {
    width: 32px;
    height: 32px;
  }
  .topbar .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px calc(8px + var(--safe-bottom));
    background: #111217ed;
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line-strong);
    z-index: 45;
    gap: 4px;
  }
  .bottom-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    min-height: 44px;
    padding: 4px 0;
    border-radius: 9px;
    color: #85818f;
    font-size: 8px;
  }
  .bottom-link svg {
    width: 20px;
    height: 20px;
  }
  .bottom-link.active {
    color: #f18794;
    background: linear-gradient(0deg, #d23d4a10, transparent);
  }
  main {
    padding: 22px 18px 10px;
    min-height: calc(100dvh - 160px);
  }
  .workspace-footer {
    padding: 18px 18px calc(96px + var(--safe-bottom));
    font-size: 8px;
    gap: 8px;
  }
  .workspace-footer > span:last-child {
    font-size: 7px;
  }
  .page-heading {
    margin-bottom: 18px;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 24px;
    margin-bottom: 5px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 240px;
    line-height: 1.6;
  }
  .heading-actions .btn {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 10px;
  }
  .heading-actions .hide-mobile {
    display: none;
  }
  .hero {
    border-radius: 15px;
    min-height: 234px;
    margin-bottom: 17px;
  }
  .hero-content {
    padding: 24px 23px;
    max-width: 360px;
  }
  .hero-image {
    object-position: 63% 50%;
    opacity: 0.7;
  }
  .hero::before {
    background:
      linear-gradient(90deg, #0c0d12e8, #0c0d1280 48%, #0c0d121a 100%),
      linear-gradient(0deg, #101115b0, transparent 80%);
  }
  .hero h2 {
    font-size: 27px;
    margin-top: 14px;
    line-height: 1.15;
  }
  .hero p {
    max-width: 230px;
    font-size: 10px;
    margin-bottom: 18px;
    line-height: 1.7;
  }
  .hero-kicker {
    font-size: 7px;
    padding: 4px 7px;
  }
  .hero-seal {
    font-size: 6px;
    right: 12px;
    bottom: 11px;
    letter-spacing: 1px;
  }
  .hero .btn {
    font-size: 9px;
  }
  .hero-bottom .text-link {
    font-size: 9px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-value {
    font-size: 28px;
    margin: 11px 0 9px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .quick-grid {
    gap: 9px;
    margin-bottom: 23px;
  }
  .quick-action {
    padding: 16px 12px;
  }
  .quick-action strong {
    font-size: 10px;
  }
  .quick-action small {
    display: block;
    font-size: 8px;
  }
  .quick-icon {
    width: 31px;
    height: 31px;
    margin-bottom: 14px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .category-card {
    padding: 13px 11px;
    gap: 9px;
  }
  .category-card strong {
    font-size: 10px;
  }
  .category-card small {
    font-size: 8px;
  }
  .category-card > .chevron {
    display: none;
  }
  .category-icon {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }
  .category-icon svg {
    width: 15px;
    height: 15px;
  }
  .panel {
    padding: 17px;
  }
  .task-row strong {
    font-size: 12px;
  }
  .task-meta {
    font-size: 10px;
  }
  .task-progress-label {
    font-size: 10px;
  }
  .section-bar h2 {
    font-size: 14px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .resource-card {
    padding: 15px 13px;
  }
  .card-top {
    gap: 9px;
  }
  .card-identity h3 {
    font-size: 11px;
  }
  .card-identity p {
    font-size: 9px;
  }
  .resource-card .avatar {
    width: 32px;
    height: 36px;
    font-size: 10px;
    border-radius: 9px;
  }
  .card-check {
    width: 15px;
    height: 15px;
  }
  .card-info {
    gap: 11px 7px;
    padding-top: 13px;
    margin-top: 13px;
  }
  .card-info dt {
    font-size: 8px;
  }
  .card-info dd {
    font-size: 9px;
  }
  .card-actions {
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
  }
  .card-actions .btn {
    font-size: 9px;
    min-height: 33px;
    padding: 6px;
  }
  .card-tags {
    margin-top: 12px;
  }
  .tag {
    font-size: 7px;
  }
  .resource-toolbar {
    gap: 8px;
    margin-bottom: 16px;
  }
  .resource-toolbar .search {
    flex-basis: 100%;
  }
  .resource-toolbar > select {
    flex: 1;
    max-width: none;
    min-width: 0;
  }
  .selection-bar {
    top: calc(71px + var(--safe-top));
    font-size: 10px;
    padding: 10px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .settings-card {
    padding: 19px;
  }
  .modal {
    padding: 21px 19px;
    max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 26px);
    width: calc(100vw - 24px);
    border-radius: 17px;
  }
  .modal-top {
    margin-bottom: 19px;
  }
  .modal-top h2 {
    font-size: 20px;
  }
  .toast-region {
    left: 18px;
    right: 18px;
    bottom: calc(85px + var(--safe-bottom));
    max-width: none;
  }
  .form-actions .btn {
    flex: 1;
  }
  .form-actions {
    gap: 8px;
  }
  .check-list {
    max-height: 190px;
  }
  .gate {
    padding: 25px 22px;
    margin: 20px auto;
  }
  .skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .material-body {
    font-size: 10px;
    min-height: 68px;
  }
  .connection-panel {
    padding: 14px;
  }
  .connection-panel small {
    font-size: 8px;
  }
  .connection-panel .status {
    font-size: 7px;
  }
  #demo-ribbon {
    font-size: 8px;
    padding: 7px 18px;
    gap: 6px;
  }
  #demo-ribbon > span {
    font-size: 6px;
  }
  #demo-ribbon button {
    font-size: 8px;
    flex-shrink: 0;
  }
  .table-wrap {
    font-size: 10px;
  }
  th,
  td {
    padding: 13px;
  }
  .more-item {
    padding: 16px 13px;
    gap: 10px;
  }
  .more-item strong {
    font-size: 11px;
  }
  .more-item small {
    font-size: 9px;
  }
}
@media (max-width: 370px) {
  main {
    padding-left: 13px;
    padding-right: 13px;
  }
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero-content {
    padding: 21px 18px;
  }
  .hero h2 {
    font-size: 25px;
  }
  .hero p {
    max-width: 205px;
  }
  .hero {
    min-height: 230px;
  }
  .access-pill {
    font-size: 8px;
    padding: 4px 6px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .card-identity h3 {
    font-size: 13px;
  }
  .card-identity p {
    font-size: 11px;
  }
  .card-info dt {
    font-size: 9px;
  }
  .card-info dd {
    font-size: 11px;
  }
  .card-actions .btn {
    font-size: 11px;
  }
  .resource-card {
    padding: 17px;
  }
  .resource-card .avatar {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }
  .quick-action {
    padding: 13px 9px;
  }
  .quick-action strong {
    font-size: 9px;
  }
  .quick-action small {
    font-size: 7px;
  }
  .category-card {
    gap: 8px;
    padding: 12px 9px;
  }
  .category-icon {
    width: 25px;
    height: 25px;
  }
  .category-card strong {
    font-size: 9px;
  }
  .category-card small {
    font-size: 7px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .choice {
    padding: 12px;
  }
  .choice strong {
    font-size: 10px;
  }
  .workspace-footer > span:last-child {
    display: none;
  }
  .topbar-actions {
    gap: 4px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-top {
    font-size: 9px;
  }
  .more-grid {
    gap: 9px;
  }
  .more-item {
    padding: 14px 11px;
  }
  .more-item > svg {
    width: 17px;
    height: 17px;
  }
  .more-item strong {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
  .fog,
  .dust,
  .hero-smoke,
  .emblem-glint {
    animation: none !important;
  }
  .emblem-crown,
  .emblem-g,
  .emblem-s {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .splash-exit {
    animation: none !important;
    opacity: 0 !important;
  }
  .splash-exit .exit-smoke {
    animation: none !important;
  }
  .page-enter {
    animation: none;
  }
  .loading-line > div {
    animation: load-progress 1.8s linear both;
  }
  .resource-card:hover {
    transform: none;
  }
}
/* Phone layouts use full-width cards and touch-size controls. */
@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .resource-card {
    padding: 19px;
  }
  .card-identity h3 {
    font-size: 14px;
  }
  .card-identity p {
    font-size: 12px;
  }
  .resource-card .avatar {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }
  .card-info dt {
    font-size: 11px;
  }
  .card-info dd {
    font-size: 12px;
  }
  .card-info {
    gap: 14px;
  }
  .card-actions .btn,
  .btn-small {
    font-size: 12px;
    min-height: 42px;
    padding: 9px 12px;
  }
  .tag {
    font-size: 10px;
  }
  .material-body {
    font-size: 13px;
  }
  .bottom-link {
    font-size: 10px;
    min-height: 46px;
  }
  .page-heading {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .page-heading p {
    font-size: 12px;
    max-width: 100%;
  }
  .heading-actions {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .heading-actions .btn {
    font-size: 12px;
    min-height: 42px;
  }
  .form-field > span,
  .form-field > label {
    font-size: 13px;
  }
  .form-field > small,
  .choice small,
  .info-box {
    font-size: 12px;
  }
  input:not([type="checkbox"]),
  textarea,
  select {
    font-size: 16px !important;
    min-height: 44px;
  }
  .choice strong,
  .check-option,
  .form-error {
    font-size: 13px;
  }
  .choice {
    min-height: 115px;
  }
  .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .check-option {
    min-height: 46px;
  }
  .setting-row strong {
    font-size: 13px;
  }
  .setting-row small {
    font-size: 11px;
  }
  .task-result {
    font-size: 12px;
  }
  .detail-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-actions .btn {
    min-height: 44px;
    font-size: 12px;
  }
  .selection-bar {
    flex-wrap: wrap;
    gap: 7px;
  }
  .selection-bar .btn {
    min-height: 38px;
    font-size: 11px;
  }
  .category-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .category-card strong {
    font-size: 13px;
  }
  .category-card small {
    font-size: 11px;
  }
  .toast {
    font-size: 13px;
  }
  .settings-card {
    min-width: 0;
  }
  .setting-row {
    gap: 12px;
  }
  .setting-row > span:first-child {
    min-width: 0;
  }
  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
  td .mono {
    overflow-wrap: anywhere;
  }
  .card-identity {
    min-width: 0;
  }
  .card-identity h3,
  .card-identity p,
  .more-item strong,
  .check-option span {
    overflow-wrap: anywhere;
  }
}
