:root {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color-scheme: light;
  --bg: #eef3ff;
  --panel: #f8faff;
  --card: #ffffff;
  --line: #cfd8ff;
  --line-strong: #aab8ff;
  --ink: #17213d;
  --muted: #7180a4;
  --blue: #2674ff;
  --violet: #8055ff;
  --green: #16a163;
  --warning: #ff7a1a;
  --shadow: 0 16px 42px rgba(68, 88, 150, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(111, 153, 255, 0.18), rgba(129, 244, 245, 0.22)),
    var(--bg);
}

.hidden {
  display: none !important;
}

.admin-page {
  overflow: auto;
}

.case-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: auto;
  color: #10233f;
  background:
    radial-gradient(circle at 78% 12%, rgba(54, 210, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #f7fbff 0%, #eef7ff 48%, #f8fbff 100%);
}

.case-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(25, 122, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 122, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.case-sidebar {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
  padding: 28px 18px;
  border-right: 1px solid rgba(72, 164, 255, 0.2);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.case-back {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #2563eb;
  text-decoration: none;
  background: #eef6ff;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.case-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 244, 255, 0.8));
  border: 1px solid rgba(92, 183, 255, 0.28);
  box-shadow: 0 18px 48px rgba(33, 116, 255, 0.12);
}

.case-brand strong {
  display: block;
  font-size: 18px;
}

.case-brand small {
  color: #6b7c96;
}

.case-nav {
  display: grid;
  gap: 8px;
}

.case-nav a {
  padding: 11px 14px;
  border-radius: 14px;
  color: #34506f;
  text-decoration: none;
  font-weight: 700;
}

.case-nav a:hover,
.case-nav a.active {
  color: #1463ff;
  background: linear-gradient(135deg, #eaf6ff, #f4f0ff);
  box-shadow: inset 0 0 0 1px rgba(51, 125, 255, 0.15);
}

.case-main {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100vw - 320px));
  margin: 0 auto;
  padding: 62px 0 96px;
}

.case-hero {
  padding: 42px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(225, 244, 255, 0.82)),
    radial-gradient(circle at 88% 18%, rgba(105, 93, 255, 0.18), transparent 24%);
  border: 1px solid rgba(79, 167, 255, 0.28);
  box-shadow: 0 28px 80px rgba(40, 106, 210, 0.14);
}

.case-kicker {
  margin: 0 0 12px;
  color: #1779ff;
  font-weight: 900;
  letter-spacing: 0;
}

.case-hero h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.15;
}

.case-hero > p:not(.case-kicker) {
  max-width: 680px;
  margin: 18px 0 0;
  color: #506780;
  font-size: 17px;
  line-height: 1.8;
}

.case-stats,
.case-tabs,
.case-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-stats {
  margin-top: 28px;
}

.case-stats span,
.case-tabs a,
.case-pill-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(67, 153, 255, 0.22);
  box-shadow: 0 14px 30px rgba(41, 110, 210, 0.08);
}

.case-stats b {
  margin-right: 6px;
  color: #136dff;
}

.case-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 22px 0 34px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(246, 251, 255, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(71, 168, 255, 0.2);
}

.case-tabs a {
  color: #23486f;
  text-decoration: none;
  font-weight: 800;
}

.case-tabs a:hover {
  color: #fff;
  background: linear-gradient(135deg, #35c4ff, #7a5cff);
}

.case-section {
  margin-top: 34px;
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(78, 169, 255, 0.24);
  box-shadow: 0 20px 60px rgba(50, 112, 200, 0.1);
}

.case-section-head p {
  margin: 0 0 8px;
  color: #167bff;
  font-weight: 900;
}

.case-section-head h2 {
  margin: 0 0 22px;
  font-size: 28px;
}

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

.case-card {
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f4fbff);
  border: 1px solid rgba(72, 157, 255, 0.2);
  box-shadow: 0 18px 44px rgba(38, 112, 210, 0.1);
}

.case-card img,
.case-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  background: linear-gradient(145deg, #eaf7ff, #fff);
}

.case-card.reference img {
  aspect-ratio: 16 / 10;
  object-position: top center;
}

.case-card.tall .case-thumb {
  aspect-ratio: 3 / 5;
}

.case-card h3 {
  margin: 14px 4px 8px;
  font-size: 18px;
}

.case-card p,
.case-note {
  margin: 0 4px 4px;
  color: #5c6f87;
  line-height: 1.7;
}

.case-card.reference a {
  display: inline-flex;
  margin: 12px 4px 2px;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #126dff;
  text-decoration: none;
  font-weight: 800;
  background: #eef6ff;
  border: 1px solid rgba(18, 109, 255, 0.18);
}

.case-card.reference a:hover {
  color: #fff;
  background: linear-gradient(135deg, #35c4ff, #7a5cff);
}

.case-thumb {
  position: relative;
  overflow: hidden;
}

.case-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(17, 48, 88, 0.26)),
    var(--case-bg);
  background-size: cover;
  background-position: center;
}

.case-thumb::after {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: rgba(16, 42, 78, 0.46);
  backdrop-filter: blur(10px);
}

.apparel-one { --case-bg: linear-gradient(145deg, #ff8ab3, #fff0f7 42%, #172447); }
.apparel-one::after { content: "运动外套 / 活力详情"; }
.apparel-two { --case-bg: linear-gradient(145deg, #fff0d9, #f9fbff 42%, #b7d3ff); }
.apparel-two::after { content: "针织毛衣 / 柔和卖点"; }
.apparel-three { --case-bg: linear-gradient(145deg, #1f2937, #6b4e35 54%, #f4e7d0); }
.apparel-three::after { content: "男装外套 / 高级质感"; }

.case-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.case-timeline div {
  min-height: 118px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, #f6fbff, #ffffff);
  border: 1px solid rgba(61, 151, 255, 0.18);
}

.case-timeline b {
  display: block;
  color: #126dff;
  margin-bottom: 10px;
  font-size: 18px;
}

.case-timeline span {
  color: #5b7089;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .case-page {
    grid-template-columns: 1fr;
  }
  .case-sidebar {
    position: relative;
    height: auto;
  }
  .case-main {
    width: min(100% - 28px, 760px);
    padding-top: 28px;
  }
  .case-card-grid,
  .case-timeline {
    grid-template-columns: 1fr;
  }
  .case-hero h1 {
    font-size: 34px;
  }
}

/* Feishu-like industry case document */
body.case-page {
  display: grid !important;
  grid-template-columns: 248px minmax(0, 1fr) !important;
  overflow: auto !important;
  min-height: 100vh;
  color: #1f2f46 !important;
  background: #ffffff !important;
}

body.case-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    repeating-linear-gradient(-16deg, transparent 0 92px, rgba(36, 73, 120, 0.04) 92px 94px),
    radial-gradient(circle at 62% 20%, rgba(34, 111, 255, 0.05), transparent 28%);
}

.case-doc-sidebar {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 100vh;
  padding: 18px 18px 40px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid #e8edf5;
}

.case-doc-back {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  color: #31577f;
  text-decoration: none;
  border-radius: 8px;
}

.case-doc-back:hover {
  background: #f3f6fb;
}

.case-doc-title {
  margin: 34px 0 18px;
  font-size: 15px;
  font-weight: 900;
  color: #16365a;
}

.case-doc-nav {
  display: grid;
  gap: 2px;
}

.case-doc-nav a {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 2px;
  color: #263f5f;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.case-doc-nav a.active,
.case-doc-nav a:hover {
  color: #136dff;
}

.case-doc-main {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 44px 90px;
}

.case-doc-header {
  min-height: 120px;
  border-bottom: 1px solid #eef1f5;
  margin-bottom: 36px;
}

.case-doc-header p,
.case-doc-header span {
  margin: 0;
  color: #60748e;
  font-size: 13px;
}

.case-doc-header h1 {
  margin: 16px 0 12px;
  color: #10233f;
  font-size: 34px;
  line-height: 1.2;
}

.case-doc-block {
  margin: 0 0 44px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.case-doc-block h2 {
  margin: 0 0 28px;
  color: #10233f;
  font-size: 26px;
  line-height: 1.35;
}

.case-doc-lead {
  max-width: 760px;
  color: #52677f;
  line-height: 1.9;
  margin: 0;
}

.case-long-grid {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  justify-content: center;
  gap: 92px;
  align-items: start;
}

.case-long-grid figure {
  margin: 0;
  width: 150px;
}

.case-long-grid img {
  width: 150px;
  height: 760px;
  display: block;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  background: #f4f6f8;
  box-shadow: 0 8px 28px rgba(15, 35, 70, 0.08);
}

.case-long-grid figcaption {
  margin-top: 10px;
  color: #42546a;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 960px) {
  body.case-page {
    grid-template-columns: 1fr !important;
  }
  .case-doc-sidebar {
    position: relative;
    height: auto;
  }
  .case-doc-main {
    padding: 28px 18px 70px;
  }
  .case-long-grid {
    grid-template-columns: repeat(2, 150px);
    gap: 42px;
  }
}

.admin-standalone {
  min-height: 100vh;
  padding: 40px 24px;
  display: grid;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(235, 245, 255, 0.92), rgba(246, 252, 248, 0.95)),
    #f5f8ff;
}

.doc-page {
  overflow: auto;
  background:
    linear-gradient(rgba(43, 123, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 123, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #f4fbff, #eef4ff);
  background-size: 22px 22px, 22px 22px, auto;
}

.doc-shell {
  width: min(980px, calc(100vw - 40px));
  margin: 34px auto;
}

.doc-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(161, 205, 255, 0.58);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(58, 92, 164, 0.14);
}

.doc-hero h1 {
  margin: 0 0 6px;
  color: #11285b;
  font-size: 28px;
}

.doc-hero p,
.doc-card p {
  margin: 0;
  color: #596984;
  line-height: 1.8;
}

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

.doc-card {
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid rgba(188, 211, 255, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(58, 92, 164, 0.1);
}

.doc-card h2 {
  margin: 0 0 10px;
  color: #17346f;
  font-size: 18px;
}

.manual-page {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  overflow: auto;
  background: #ffffff;
}

.manual-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  border-right: 1px solid #e5eaf5;
  background: #fbfdff;
  overflow: auto;
}

.manual-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  margin-bottom: 14px;
  color: #5d6b82;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.manual-nav {
  display: grid;
  gap: 2px;
}

.manual-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #344563;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.manual-nav a:hover,
.manual-nav a.active {
  background: #eef4ff;
  color: #0f5eea;
  font-weight: 800;
}

.manual-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.manual-dot.blue {
  background: #1f66e5;
}

.manual-dot.gold {
  background: #ffb321;
}

.manual-content {
  width: min(980px, calc(100vw - 340px));
  margin: 0 auto;
  padding: 44px 48px 80px;
}

.manual-section {
  scroll-margin-top: 24px;
  padding-bottom: 28px;
}

.manual-kicker {
  margin: 0 0 8px;
  color: #1f66e5;
  font-size: 14px;
  font-weight: 900;
}

.manual-section h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 34px;
  line-height: 1.25;
}

.manual-section h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 22px;
  line-height: 1.4;
}

.manual-section h3 {
  margin: 0 0 12px;
  color: #1f2a44;
  font-size: 17px;
  line-height: 1.45;
}

.manual-section p,
.manual-section li {
  color: #24324b;
  font-size: 15px;
  line-height: 1.9;
}

.manual-section p {
  margin: 0 0 12px;
}

.manual-section ol,
.manual-section ul {
  margin: 0 0 12px 22px;
  padding: 0;
}

.manual-lead {
  max-width: 840px;
  color: #4f5f77 !important;
  font-size: 16px !important;
}

.manual-note,
.manual-tip {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #344563;
  font-size: 14px;
  line-height: 1.8;
}

.manual-note {
  border: 1px solid #d7e3ff;
  background: #f5f8ff;
}

.manual-tip {
  border: 1px solid #c9efd9;
  background: #f3fff8;
}

.manual-layout-demo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.manual-layout-demo div {
  min-height: 74px;
  padding: 16px;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: #fbfdff;
  color: #24324b;
  font-weight: 800;
  line-height: 1.6;
}

.admin-panel.standalone {
  width: min(980px, 100%);
  max-height: none;
}

#adminAuditView {
  width: min(1180px, 100%);
}

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

button {
  cursor: pointer;
}

.app-topbar {
  height: 58px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 36px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 18px rgba(90, 110, 160, 0.16);
  position: relative;
  z-index: 5;
}

.logo,
.top-metrics,
.top-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-metrics {
  justify-content: center;
  padding: 4px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(240, 246, 255, 0.58)),
    rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 34px rgba(31, 73, 140, 0.12);
}

.top-links {
  justify-content: flex-end;
}

.logo-icon,
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #5fb7ff, var(--violet));
  font-weight: 800;
}

.logo strong {
  font-size: 18px;
}

.gift,
.top-metrics span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff0df;
  color: #8c480d;
  font-size: 13px;
  font-weight: 700;
}

.gift {
  background: linear-gradient(90deg, #ff7aa7, #ffbc48);
  color: white;
}

.top-metrics b {
  color: inherit;
  font-weight: 900;
}

.metric-pill {
  position: relative;
  gap: 7px;
  min-width: 154px;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transform: translateZ(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -8px 14px rgba(255, 255, 255, 0.32),
    0 10px 22px rgba(31, 73, 140, 0.08);
}

.metric-pill i {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 16px rgba(0, 0, 0, 0.12);
}

.metric-pill i::before,
.metric-pill i::after {
  content: "";
  position: absolute;
  background: #ffffff;
}

.metric-pill.tasks {
  background: linear-gradient(135deg, #fff0df, #ffe2c6);
  color: #96520d;
}

.metric-pill.tasks i {
  background: linear-gradient(145deg, #b46b16, #ffb347);
}

.metric-pill.tasks i::before {
  left: 6px;
  top: 5px;
  width: 10px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.9;
}

.metric-pill.tasks i::after {
  left: 9px;
  top: 3px;
  width: 6px;
  height: 4px;
  border-radius: 2px;
  background: #ffd79a;
}

.metric-pill.edits {
  background: linear-gradient(135deg, #fff0df, #ffe7d3);
  color: #85430c;
}

.metric-pill.edits i {
  background: linear-gradient(145deg, #8a4b10, #ff9f34);
}

.metric-pill.edits i::before {
  left: 5px;
  top: 11px;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  transform: rotate(-35deg);
}

.metric-pill.edits i::after {
  right: 4px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  box-shadow: -9px 5px 0 rgba(255, 255, 255, 0.78);
}

.metric-pill.points {
  background: linear-gradient(135deg, #f0ecff, #ded7ff);
  color: #6552f2;
}

.metric-pill.points i {
  background: linear-gradient(145deg, #7a6cff, #b8a7ff);
}

.metric-pill.points i::before {
  left: 5px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.92;
}

.metric-pill.points i::after {
  left: 9px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7a6cff;
}

.metric-pill strong {
  color: currentColor;
  font-weight: 950;
}

.metric-pill em {
  margin-left: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6f63ff, #9486ff);
  color: #ffffff;
  font-style: normal;
  font-weight: 950;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 8px 18px rgba(111, 99, 255, 0.28);
}

#specialOfferBtn {
  cursor: pointer;
}

#specialOfferBtn:focus-visible {
  outline: 2px solid rgba(92, 224, 255, 0.9);
  outline-offset: 2px;
}

.top-links button {
  min-height: 28px;
  border: 1px solid rgba(89, 145, 255, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(230, 241, 255, 0.62)),
    rgba(255, 255, 255, 0.45);
  color: #2a3b68;
  font-size: 13px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 20px rgba(31, 122, 255, 0.08);
}

.login-entry {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(112, 87, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(230, 242, 255, 0.72)),
    rgba(255, 255, 255, 0.58);
  color: #1f66e5;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(31, 122, 255, 0.12);
}

.account-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.account-avatar-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.72), transparent 25%),
    linear-gradient(135deg, #32c9ff 0%, #6d6cff 54%, #8c54ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -10px 18px rgba(57, 42, 185, 0.22),
    0 10px 24px rgba(82, 105, 255, 0.32);
  cursor: pointer;
}

.account-avatar-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.account-avatar-icon::before,
.account-avatar-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.96);
}

.account-avatar-icon::before {
  top: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.account-avatar-icon::after {
  bottom: 1px;
  width: 14px;
  height: 8px;
  border-radius: 9px 9px 4px 4px;
  border-bottom: 0;
}

.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 45;
  width: 204px;
  padding: 12px;
  border: 1px solid rgba(225, 232, 245, 0.96);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  color: #26324a;
  box-shadow:
    0 24px 54px rgba(15, 23, 42, 0.18),
    0 8px 20px rgba(31, 122, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.18s ease;
}

.account-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 17px;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(225, 232, 245, 0.96);
  border-top: 1px solid rgba(225, 232, 245, 0.96);
  transform: rotate(45deg);
}

.account-menu-wrap:hover .account-menu,
.account-menu-wrap:focus-within .account-menu,
.account-menu-wrap.open .account-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.account-menu-name {
  display: block;
  padding: 3px 0 9px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.top-links .account-menu button {
  width: 100%;
  min-height: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.top-links .account-menu button:hover {
  background: #f4f7ff;
  color: #245bff;
}

.top-links .account-menu .account-menu-danger {
  color: #ff4d4f;
}

.top-links .account-menu .account-menu-danger:hover {
  background: #fff2f1;
  color: #ff3b30;
}

.account-menu-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentColor;
}

.account-menu-icon::before,
.account-menu-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.account-menu-icon-orders::before {
  inset: 3px;
  border: 1.7px solid currentColor;
  border-radius: 4px;
}

.account-menu-icon-orders::after {
  left: 6px;
  right: 6px;
  top: 7px;
  height: 1.7px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.account-menu-icon-gift::before {
  inset: 4px 3px 3px;
  border: 1.7px solid currentColor;
  border-radius: 3px;
}

.account-menu-icon-gift::after {
  left: 8px;
  top: 3px;
  width: 1.7px;
  height: 12px;
  background: currentColor;
  box-shadow: -5px 4px 0 -0.6px currentColor, 5px 4px 0 -0.6px currentColor;
}

.account-menu-icon-edit::before {
  left: 4px;
  top: 4px;
  width: 11px;
  height: 11px;
  border: 1.7px solid currentColor;
  border-radius: 2px;
}

.account-menu-icon-edit::after {
  right: 1px;
  top: 2px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-45deg);
}

.account-menu-icon-logout::before {
  left: 2px;
  top: 3px;
  width: 11px;
  height: 12px;
  border: 1.7px solid currentColor;
  border-right: 0;
  border-radius: 7px 0 0 7px;
}

.account-menu-icon-logout::after {
  right: 2px;
  top: 8px;
  width: 9px;
  height: 1.7px;
  background: currentColor;
  box-shadow: 3px -3px 0 -0.6px currentColor, 3px 3px 0 -0.6px currentColor;
}

.account-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #eaf8ff;
}

.account-dialog::backdrop {
  background: rgba(0, 8, 24, 0.58);
  backdrop-filter: blur(6px);
}

.account-dialog-panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(67, 198, 255, 0.54);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(76, 211, 255, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(10, 31, 69, 0.98), rgba(4, 16, 38, 0.98));
  box-shadow:
    0 26px 70px rgba(0, 8, 28, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-dialog-panel h2 {
  margin: 0 0 2px;
  font-size: 20px;
  line-height: 1.25;
}

.account-dialog-panel label {
  display: grid;
  gap: 8px;
  color: #b8d9f5;
  font-size: 13px;
  font-weight: 800;
}

.account-dialog-panel input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(78, 190, 255, 0.45);
  border-radius: 8px;
  background: rgba(2, 12, 30, 0.78);
  color: #f4fbff;
  outline: none;
}

.account-dialog-panel input:focus {
  border-color: rgba(85, 213, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(52, 190, 255, 0.14);
}

.account-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(92, 194, 255, 0.32);
  border-radius: 50%;
  background: rgba(5, 20, 45, 0.8);
  color: #dff7ff;
  cursor: pointer;
}

.account-dialog-status {
  min-height: 20px;
  margin: 0;
  color: #a8c6df;
  font-size: 13px;
  line-height: 1.45;
}

.account-dialog-status[data-type="error"] {
  color: #ff8f92;
}

.account-dialog-status[data-type="ok"] {
  color: #4df0bd;
}

.account-dialog-status[data-type="info"] {
  color: #7ee4ff;
}

.account-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

.account-dialog-actions button {
  height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(78, 190, 255, 0.38);
  border-radius: 999px;
  background: rgba(7, 28, 60, 0.86);
  color: #dff7ff;
  font-weight: 900;
  cursor: pointer;
}

.account-dialog-actions .primary {
  border: 0;
  background: linear-gradient(135deg, #38c8ff, #7a5cff);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(61, 183, 255, 0.22);
}

.account-dialog-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.order-center-dialog {
  width: min(720px, calc(100vw - 32px));
}

.order-center-panel {
  gap: 14px;
}

.order-center-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 34px;
}

.order-center-head span {
  display: block;
  margin-bottom: 4px;
  color: #76ddff;
  font-size: 12px;
  font-weight: 900;
}

.order-center-head h2 {
  margin: 0;
}

.order-center-head button {
  height: 34px;
  padding: 0 15px;
  border: 1px solid rgba(78, 190, 255, 0.42);
  border-radius: 999px;
  background: rgba(7, 28, 60, 0.86);
  color: #dff7ff;
  font-weight: 900;
  cursor: pointer;
}

.order-center-balance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.order-center-balance article {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(54, 200, 255, 0.24);
  border-radius: 12px;
  background: rgba(3, 16, 42, 0.68);
}

.order-center-balance span {
  display: block;
  color: #82dfff;
  font-size: 12px;
  font-weight: 800;
}

.order-center-balance strong {
  display: block;
  margin-top: 4px;
  color: #f4fbff;
  font-size: 20px;
  line-height: 1.2;
}

.order-center-list {
  display: grid;
  gap: 9px;
  max-height: min(54vh, 520px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(58, 214, 255, 0.7) rgba(6, 18, 44, 0.45);
}

.order-center-list::-webkit-scrollbar {
  width: 5px;
}

.order-center-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(58, 214, 255, 0.72);
}

.order-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding: 12px;
  border: 1px solid rgba(54, 200, 255, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(54, 200, 255, 0.12), transparent 42%),
    rgba(4, 17, 43, 0.72);
}

.order-record-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.order-record-main strong {
  color: #f2fbff;
  font-size: 14px;
  line-height: 1.35;
}

.order-record-main span,
.order-record-balance,
.order-record-side small {
  color: rgba(205, 229, 249, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.order-record-side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 5px;
  white-space: nowrap;
}

.order-amount {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.order-amount.debit {
  background: rgba(255, 91, 116, 0.16);
  color: #ff9dab;
}

.order-amount.credit {
  background: rgba(42, 236, 177, 0.14);
  color: #6ff4c8;
}

.order-amount.neutral {
  background: rgba(126, 160, 202, 0.14);
  color: #b8d9f5;
}

.order-record-balance {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(54, 200, 255, 0.12);
}

.order-empty {
  padding: 28px 12px;
  border: 1px dashed rgba(54, 200, 255, 0.24);
  border-radius: 12px;
  color: #b8d9f5;
  text-align: center;
  font-size: 13px;
}

.help-menu-wrap {
  position: relative;
  perspective: 800px;
}

.help-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  z-index: 20;
  width: 188px;
  padding: 12px;
  border: 1px solid rgba(120, 181, 255, 0.45);
  border-radius: 16px;
  background:
    radial-gradient(circle at 24% 0%, rgba(98, 192, 255, 0.34), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(233, 243, 255, 0.88));
  box-shadow:
    0 22px 54px rgba(31, 73, 140, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 14px 26px rgba(98, 192, 255, 0.1) inset;
  backdrop-filter: blur(14px);
  transform: translateX(-50%) translateY(-8px) rotateX(-7deg) scale(0.97);
  transform-origin: top center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.2s ease;
}

.help-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 34px;
  width: 14px;
  height: 14px;
  background: rgba(248, 252, 255, 0.96);
  border-left: 1px solid rgba(120, 181, 255, 0.38);
  border-top: 1px solid rgba(120, 181, 255, 0.38);
  transform: rotate(45deg);
}

.help-menu::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(31, 122, 255, 0.12), rgba(18, 185, 129, 0.08));
  filter: blur(12px);
  opacity: 0.7;
}

.help-menu-wrap:hover .help-menu,
.help-menu-wrap:focus-within .help-menu,
.help-menu-wrap.open .help-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) rotateX(0deg) scale(1);
}

.help-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #1f2d4d;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.help-menu a:first-child {
  background:
    linear-gradient(135deg, rgba(31, 122, 255, 0.16), rgba(98, 192, 255, 0.12)),
    rgba(255, 255, 255, 0.72);
  border-color: rgba(31, 122, 255, 0.16);
  color: #175ee8;
}

.help-menu a:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(31, 122, 255, 0.18), rgba(18, 185, 129, 0.12)),
    rgba(255, 255, 255, 0.78);
  border-color: rgba(31, 122, 255, 0.22);
  color: #0e57d8;
  box-shadow: 0 10px 24px rgba(31, 122, 255, 0.14);
}

.book-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid rgba(31, 122, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(211, 235, 255, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 8px 16px rgba(31, 122, 255, 0.14);
}

.book-icon::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 9px;
  height: 12px;
  border: 2px solid currentColor;
  border-left-width: 3px;
  border-radius: 2px 4px 4px 2px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 2px 1px 0 rgba(31, 122, 255, 0.16);
  opacity: 0.92;
}

.book-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  width: 4px;
  height: 1px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
  opacity: 0.45;
}

.top-links .avatar {
  border: 0;
  font-size: 13px;
}

.workspace {
  height: calc(100vh - 58px);
  display: grid;
  grid-template-columns: 300px 360px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 22px 18px;
}

.task-sidebar,
.input-panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 255, 0.82);
  box-shadow: var(--shadow);
  min-height: 0;
}

.task-sidebar {
  padding: 12px;
  position: relative;
  background:
    radial-gradient(circle at 20% 8%, rgba(74, 170, 255, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 250, 255, 0.74));
  box-shadow: 0 18px 48px rgba(36, 84, 150, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: 38px minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.task-mode-rail {
  grid-row: 1 / -1;
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px 8px;
  border: 1px solid rgba(123, 190, 255, 0.42);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(234, 247, 255, 0.62)),
    rgba(255, 255, 255, 0.64);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.76),
    inset 0 0 28px rgba(77, 169, 255, 0.12),
    0 18px 42px rgba(42, 112, 195, 0.14);
}

.task-mode-rail::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 46px;
  bottom: 46px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f8fff, #27d8ff 52%, rgba(79, 143, 255, 0.12));
  box-shadow: 0 0 14px rgba(39, 216, 255, 0.62);
}

.category-new-task {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 6;
  width: 100%;
  height: 38px;
  border: 1px solid #9fc5ff;
  border-radius: 8px;
  background: #eef6ff;
  color: #1766e8;
  font-size: 14px;
  font-weight: 900;
  pointer-events: auto;
  cursor: pointer;
}

.category-new-task:hover {
  background: #e1efff;
  border-color: #6faaff;
}

.task-mode-btn {
  min-height: 102px;
  position: relative;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #17315e;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 9px 2px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.12;
  isolation: isolate;
}

.task-mode-btn strong {
  display: grid;
  grid-template-rows: repeat(2, 1em);
  justify-items: center;
  align-items: center;
  min-height: 2.25em;
  text-align: center;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: nowrap;
}

.task-mode-btn strong span {
  display: block;
}

.task-mode-btn::before {
  content: "";
  position: absolute;
  inset: 4px 2px;
  z-index: -1;
  border-radius: 20px;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(224, 244, 255, 0.82)),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(81, 178, 255, 0.28),
    0 12px 30px rgba(41, 116, 205, 0.13);
  transition: opacity 160ms ease, transform 160ms ease;
}

.task-mode-btn::after {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(39, 216, 255, 0.9), transparent);
  opacity: 0.42;
  box-shadow: 0 0 10px rgba(39, 216, 255, 0.46);
}

.task-mode-btn:hover::before,
.task-mode-btn.active::before {
  opacity: 1;
  transform: translateY(-1px);
}

.task-mode-btn:hover,
.task-mode-btn.active {
  color: #0b57de;
}

.task-mode-icon {
  width: 48px;
  height: 48px;
  position: relative;
  border: 1px solid rgba(101, 185, 255, 0.45);
  border-radius: 16px;
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.95) 0 10%, transparent 12%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(196, 229, 255, 0.88) 45%, rgba(43, 111, 255, 0.95));
  display: grid;
  place-items: center;
  color: #1452db;
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 8px rgba(255, 255, 255, 0.78),
    inset 0 -10px 20px rgba(22, 90, 220, 0.2),
    0 10px 24px rgba(31, 122, 255, 0.22),
    0 0 18px rgba(60, 210, 255, 0.18);
}

.task-mode-btn.active .task-mode-icon {
  border-color: rgba(63, 219, 255, 0.9);
  color: #ffffff;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.95) 0 10%, transparent 12%),
    linear-gradient(145deg, #91d8ff 0%, #1f7aff 48%, #124fd5 100%);
  box-shadow:
    inset 0 1px 10px rgba(255, 255, 255, 0.72),
    inset 0 -10px 22px rgba(5, 35, 140, 0.28),
    0 12px 28px rgba(31, 122, 255, 0.34),
    0 0 22px rgba(45, 224, 255, 0.46);
}

.task-sidebar .new-task-wrap,
.task-sidebar .sidebar-tools,
.task-sidebar .favorite-section {
  display: none;
}

.task-sidebar .task-list {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 10px;
  align-content: start;
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
}

.task-list-empty {
  min-height: 80px;
  border: 1px dashed #c8d5f2;
  border-radius: 8px;
  color: #7180a4;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.62);
}

.new-task {
  width: calc(100% - 46px);
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(90deg, #62c0ff, #8151ff);
  font-weight: 800;
  font-size: 15px;
}

.new-task-wrap {
  position: relative;
}

.new-task-menu {
  position: absolute;
  top: 46px;
  left: 0;
  width: calc(100% - 46px);
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(42, 55, 105, 0.18);
  display: none;
  z-index: 5;
}

.new-task-wrap.open .new-task-menu {
  display: grid;
  gap: 6px;
}

.new-task-menu button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f4f7ff;
  color: #263862;
  font-weight: 800;
  text-align: left;
  padding: 8px 12px;
}

.new-task-menu button:hover {
  background: #e9efff;
}

.new-task-menu button strong,
.new-task-menu button small {
  display: block;
}

.new-task-menu button small {
  margin-top: 4px;
  color: #6d7896;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.sidebar-tools {
  position: absolute;
  top: 16px;
  right: 16px;
}

.sidebar-tools button,
.more {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: white;
  color: #4560d4;
}

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

.task-card {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 72px 10px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #eeedff;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.task-card > div:not(.task-thumb):not(.task-actions):not(.task-menu) {
  min-width: 0;
}

.task-list .task-card {
  margin-top: 0;
}

.task-card.active {
  border-color: #7f63ff;
  box-shadow: 0 0 0 3px rgba(127, 99, 255, 0.1);
}

.task-menu {
  position: absolute;
  top: 36px;
  right: 10px;
  width: 82px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #061329;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32), 0 0 18px rgba(44, 199, 255, 0.12);
  z-index: 3;
  display: none;
}

.task-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.favorite-toggle {
  width: 26px;
  height: 26px;
  border: 1px solid #ff7e91;
  border-radius: 7px;
  background: #fff;
  color: #ff4d67;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
}

.favorite-toggle.active {
  background: #ff4d67;
  color: white;
}

.favorite-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.favorite-section h2 {
  margin: 0 0 10px;
  color: #526186;
  font-size: 13px;
}

.favorite-list {
  display: grid;
  gap: 8px;
}

.favorite-item,
.favorite-empty {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: #354260;
  font-size: 12px;
  text-align: left;
  padding: 8px 10px;
}

.favorite-item {
  cursor: pointer;
}

.favorite-item.active {
  border-color: #ff7e91;
  background: #fff2f4;
}

.favorite-empty {
  color: #8a96b6;
}

.task-card.menu-open .task-menu {
  display: grid;
  gap: 3px;
}

.task-menu button {
  height: 24px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #b8d8f6;
  text-align: left;
  padding: 0 7px;
  font-size: 11px;
}

.task-menu button:hover {
  background: rgba(44, 199, 255, 0.12);
}

.task-menu button.danger {
  color: #d12f2f;
}

.task-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 45% 70%, #1c171b 0 5px, transparent 6px),
    radial-gradient(circle at 58% 62%, #141316 0 7px, transparent 8px),
    radial-gradient(circle at 35% 58%, #2a2230 0 7px, transparent 8px),
    linear-gradient(135deg, #c7f28a, #4cbb75);
}

.task-thumb-main {
  background:
    radial-gradient(circle at 45% 70%, #1c171b 0 5px, transparent 6px),
    radial-gradient(circle at 58% 62%, #141316 0 7px, transparent 8px),
    radial-gradient(circle at 35% 58%, #2a2230 0 7px, transparent 8px),
    linear-gradient(135deg, #c7f28a, #4cbb75);
}

.task-thumb-detail {
  background:
    linear-gradient(90deg, rgba(255,255,255,.8) 0 30%, transparent 30%),
    linear-gradient(135deg, #ffe8aa, #ff9d43);
}

.task-thumb-replica {
  background:
    radial-gradient(circle at 68% 35%, rgba(255,255,255,.75) 0 10px, transparent 11px),
    linear-gradient(135deg, #ddd7ff, #8a61ff);
}

.task-thumb-sku {
  background:
    linear-gradient(90deg, rgba(255,255,255,.8) 0 2px, transparent 2px 22px),
    linear-gradient(0deg, rgba(255,255,255,.7) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #d8f4ff, #3aa9ff);
  background-size: auto, 22px 22px, auto;
}

.task-type-badge {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px 0 8px 0;
  background: #6d60ff;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(42, 50, 120, .18);
}

.task-thumb-detail .task-type-badge {
  background: #ff8b1f;
}

.task-thumb-replica .task-type-badge {
  background: #8a49ff;
}

.task-thumb-sku .task-type-badge {
  background: #198de8;
  font-size: 10px;
}

.task-card strong,
.task-card span,
.task-card em {
  display: block;
}

.task-card strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.task-card span {
  margin-top: 5px;
  color: #4e5d80;
  font-size: 11px;
  line-height: 1.35;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-card em {
  width: fit-content;
  margin-top: 8px;
  padding: 2px 8px;
  border: 1px solid #8be074;
  border-radius: 999px;
  color: #259100;
  background: #ecffe7;
  font-style: normal;
  font-size: 12px;
}

.input-panel {
  display: block;
  padding: 0;
  overflow: hidden;
}

.ai-intake-panel {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 14px 12px;
  background: linear-gradient(90deg, #f8fbff 0 18%, #e5ebff 18% 26%, #fbfcff 26% 100%);
}

.ai-intake-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #cfdcff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.ai-intake-head > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #5fb7ff, #8055ff);
  font-size: 12px;
  font-weight: 900;
}

.ai-intake-head strong,
.ai-intake-head small {
  display: block;
}

.ai-intake-head strong {
  color: #17213d;
  font-size: 15px;
}

.ai-intake-head small {
  margin-top: 3px;
  color: #7180a4;
  font-size: 12px;
}

.ai-intake-messages {
  overflow-y: auto;
  padding: 0 8px 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-chat-entry {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.ai-chat-avatar {
  width: 38px;
  height: 38px;
  margin-top: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #54c6ff, #8051ff);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(95, 97, 230, 0.22);
}

.ai-form-bubble {
  border-radius: 16px;
  padding: 14px 16px 16px;
  background: #ffffff;
  color: #152044;
  box-shadow: 0 12px 30px rgba(75, 91, 160, 0.10);
}

.ai-form-title {
  margin: 0 0 10px;
  line-height: 1.65;
  font-size: 14px;
  font-weight: 700;
}

.ai-form-card {
  padding: 14px;
  border: 1px solid #cdd8ff;
  border-radius: 14px;
  background: #fbfcff;
}

.ai-form-card label,
.chat-upload-block {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #27365e;
  font-size: 13px;
  font-weight: 800;
}

.ai-form-card b,
.chat-upload-block b {
  color: #ff3b51;
}

.product-image-analysis {
  display: none;
}

.product-image-analysis.loading,
.product-image-analysis.ready,
.product-image-analysis.error {
  display: block;
}

.analysis-inline {
  display: grid;
  gap: 6px;
  color: #3d5f96;
  font-size: 12px;
  font-weight: 700;
}

.analysis-inline i {
  display: block;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(144, 178, 255, 0.22);
}

.analysis-inline i::before {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #31c7ff, #7c63ff);
  animation: analysis-loading 1.15s ease-in-out infinite;
}

.analysis-inline.error {
  color: #ff6b7e;
}

.analysis-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(77, 165, 255, 0.26);
  border-radius: 10px;
  background: rgba(245, 250, 255, 0.92);
  color: #27365e;
}

.analysis-card strong {
  color: #1f7aff;
  font-size: 12px;
}

.analysis-card p {
  display: grid;
  gap: 3px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.analysis-card p b {
  color: #5a6b91;
  font-size: 11px;
}

.analysis-card p span {
  color: #24324f;
  font-weight: 700;
}

.analysis-card div {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.analysis-card button {
  border: 1px solid rgba(31, 122, 255, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  color: #1f5cff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.analysis-card button:first-child {
  border-color: transparent;
  background: linear-gradient(135deg, #34c6ff, #755cff);
  color: #fff;
}

@keyframes analysis-loading {
  0% { transform: translateX(-110%); }
  50% { transform: translateX(45%); }
  100% { transform: translateX(240%); }
}

.ai-form-card input,
.ai-form-card textarea,
.ai-form-card select {
  width: 100%;
  border: 1px solid #d6e0ff;
  border-radius: 10px;
  background: #ffffff;
  color: #17213d;
  padding: 10px 12px;
  font-size: 13px;
}

.ai-form-card select {
  min-width: 0;
  height: 38px;
  padding: 8px 34px 8px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.ai-form-card textarea {
  min-height: 98px;
  resize: none;
  line-height: 1.55;
}

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

.ai-form-grid .wide-field {
  grid-column: 1 / -1;
}

.chat-upload-area {
  min-height: 138px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #9cb9ff;
  border-radius: 14px;
  background: #ffffff;
  color: #1c2a50;
  text-align: center;
  cursor: pointer;
  padding: 12px;
}

.chat-upload-area::before {
  content: "▧";
  color: #554dff;
  font-size: 32px;
  line-height: 1;
}

.chat-upload-area small,
.chat-upload-block small,
.chat-upload-block em {
  color: #6f7da1;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
}

.chat-upload-preview-grid {
  display: none;
  width: 100%;
  margin-top: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.chat-upload-preview-grid.show {
  display: grid;
}

.chat-upload-thumb {
  position: relative;
  display: block;
}

.chat-upload-preview-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #d6e0ff;
  border-radius: 10px;
  background: #fff;
}

.chat-upload-thumb button {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  border: 1px solid #ffd0da;
  border-radius: 50%;
  background: #ffffff;
  color: #ff3b61;
  font-size: 14px;
  font-weight: 900;
  line-height: 18px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 58, 97, 0.18);
}

.chat-start-next {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #62c0ff, #8151ff);
  font-size: 14px;
  font-weight: 900;
}

.ai-intake-bubble {
  max-width: 94%;
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.58;
}

.ai-intake-bubble.ai {
  align-self: flex-start;
  border: 1px solid #dbe5ff;
  background: #ffffff;
  color: #24304f;
  box-shadow: 0 8px 18px rgba(73, 102, 220, 0.08);
}

.ai-intake-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #8a5bff, #6d54f0);
  color: #ffffff;
}

.ai-intake-bubble table {
  width: 100%;
  margin: 8px 0;
  border-collapse: collapse;
  font-size: 12px;
}

.ai-intake-bubble th,
.ai-intake-bubble td {
  border: 1px solid #cfd8ff;
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}

.ai-intake-bubble th {
  background: #f0f4ff;
}

.intake-plan-result h3,
.intake-confirmed h3 {
  margin: 12px 0 8px;
  color: #17213d;
  font-size: 14px;
}

.intake-plan-result p,
.intake-confirmed p {
  margin: 0 0 10px;
}

.live-plan-draft {
  white-space: pre-wrap;
}

.live-draft-progress {
  display: block;
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(54, 200, 255, 0.38);
  border-radius: 999px;
  background: rgba(4, 17, 42, 0.78);
}

.live-draft-progress i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #36c8ff, #7c5cff, #36c8ff);
  box-shadow: 0 0 14px rgba(54, 200, 255, 0.5);
  animation: generationProgressMove 1.35s ease-in-out infinite;
}

.intake-plan-option {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #dfe6ff;
}

.intake-plan-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.intake-plan-actions button {
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(90deg, #62c0ff, #8151ff);
  font-size: 16px;
  font-weight: 900;
}

.intake-confirmed.pending {
  padding: 12px;
  border: 1px solid #d9dfff;
  border-radius: 10px;
  background: #ffffff;
}

.confirm-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.confirm-head strong {
  color: #17213d;
  font-size: 15px;
}

.confirm-head span {
  padding: 2px 8px;
  border: 1px solid #ffd36a;
  border-radius: 999px;
  background: #fff8df;
  color: #bc7a00;
  font-size: 12px;
  font-weight: 800;
}

.confirm-tip {
  margin: 14px 0;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(128, 93, 255, 0.14), rgba(255, 255, 255, 0.92));
}

.confirm-tip b {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #62c0ff, #8151ff);
  color: #ffffff;
  font-size: 12px;
}

.confirm-generate-btn {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #62c0ff, #8151ff);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(93, 109, 255, 0.24);
}

.ai-chat-composer {
  border: 1px solid rgba(58, 200, 255, 0.46);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 12%, rgba(49, 211, 255, 0.1), transparent 34%),
    rgba(2, 16, 38, 0.72);
  box-shadow: inset 0 0 22px rgba(47, 206, 255, 0.07), 0 14px 30px rgba(0, 10, 32, 0.18);
  padding: 10px 12px 12px;
}

#aiRequirementInput {
  min-height: 86px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d9ecff;
  padding: 0;
  resize: none;
  line-height: 1.6;
  box-shadow: none;
}

#aiRequirementInput:focus {
  box-shadow: none;
}

#aiRequirementInput::placeholder {
  color: rgba(203, 221, 255, 0.62);
}

.ai-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(84, 207, 255, 0.2);
}

.ai-composer-footer span {
  color: rgba(205, 222, 255, 0.72);
  font-size: 12px;
}

.ai-composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-attach-btn,
.ai-send-btn {
  border: 0;
  color: #ffffff;
  font-weight: 900;
}

.ai-attach-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(115, 192, 255, 0.5);
  background: rgba(19, 44, 84, 0.78);
  box-shadow: inset 0 0 12px rgba(60, 208, 255, 0.16);
}

.ai-send-btn {
  min-width: 84px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #8055ff);
  box-shadow: 0 10px 24px rgba(80, 110, 255, 0.26);
}

.ai-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.input-panel .phone-frame,
.input-panel .prompt-bar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.phone-frame {
  margin: 0 auto;
  width: 326px;
  height: 100%;
  padding: 22px 28px;
  background: linear-gradient(90deg, #f8fbff 0 25%, #e5ebff 25% 31%, #fbfcff 31% 100%);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #7c88a9;
  font-size: 13px;
  font-weight: 700;
}

textarea,
input[type="text"],
select {
  width: 100%;
  border: 1px solid #dbe3ff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #273250;
  outline: none;
}

textarea {
  min-height: 74px;
  padding: 12px;
  resize: vertical;
  line-height: 1.55;
}

select {
  height: 34px;
  padding: 0 12px;
}

input[type="text"] {
  height: 36px;
  padding: 0 12px;
}

.form-grid span::first-letter {
  color: #ff5454;
}

.task-specific.hidden {
  display: none;
}

.upload-area {
  min-height: 120px;
  margin-bottom: 0;
  border: 1px dashed #aab8ff;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.64);
}

.smart-suggestion {
  margin: -8px 0 18px;
  padding: 10px;
  border: 1px solid #73a4ff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 8px;
}

.smart-suggestion div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.smart-suggestion strong {
  color: #526186;
  font-size: 12px;
}

.smart-suggestion span {
  color: #9aa5c0;
  font-size: 11px;
}

.smart-suggestion p {
  margin: 0;
  color: #6c7896;
  font-size: 13px;
  line-height: 1.55;
}

.smart-suggestion button {
  width: fit-content;
  min-height: 30px;
  border: 1px solid #7ba7ff;
  border-radius: 999px;
  background: #eef5ff;
  color: #2867ff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.upload-area input {
  display: none;
}

.upload-preview {
  display: none;
  width: 100%;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  background: #f2f5ff;
}

.upload-preview-grid {
  display: none;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.upload-preview-grid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: #f2f5ff;
}

.upload-area.has-image {
  padding: 10px;
  gap: 8px;
}

.upload-area.drag-over {
  border-color: #2674ff;
  background: rgba(229, 239, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(38, 116, 255, 0.12);
}

.upload-area.has-image .upload-preview {
  display: block;
}

.upload-area.has-image.has-multiple .upload-preview {
  display: none;
}

.upload-area.has-image.has-multiple .upload-preview-grid,
.upload-area.multi-upload.has-image .upload-preview-grid {
  display: grid;
}

.upload-area.has-image span {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(30, 60, 140, 0.24);
}

.upload-area span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 22px;
}

.upload-area small {
  color: #94a0bf;
  font-weight: 500;
}

.prompt-bar {
  padding: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 10px;
  background: rgba(245, 248, 255, 0.9);
}

.prompt-bar textarea {
  min-height: 76px;
}

.prompt-actions {
  display: grid;
  gap: 8px;
  align-content: center;
}

.prompt-bar button,
.preview-actions button,
.preview-head button {
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(90deg, #62c0ff, #8151ff);
  font-weight: 800;
}

.result-panel {
  padding: 24px 28px;
  overflow: hidden;
}

.result-panel .guide,
.result-panel .task-id,
.result-panel .model-report-wrap,
.result-panel .plan-options,
.result-panel .live-chat-composer {
  display: none !important;
}

.result-panel .result-layout {
  height: 100%;
}

.guide,
.task-id {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(238, 242, 255, 0.88);
}

.guide {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
}

.guide span {
  white-space: nowrap;
  flex: 0 0 auto;
}

.guide b {
  flex: 0 0 auto;
}

.task-id {
  margin-top: 16px;
  font-size: 15px;
}

.model-report-wrap {
  position: relative;
  margin-top: 14px;
}

.model-report {
  min-height: 112px;
  margin-top: 0;
  padding: 10px 168px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  display: block;
  font-size: 12px;
}

.chat-flow {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.chat-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.chat-row.user {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.chat-row.user .chat-avatar {
  grid-column: 2;
  grid-row: 1;
}

.chat-row.user .chat-bubble {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.chat-bubble {
  max-width: 92%;
  border: 1px solid #e2e9fb;
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  color: #263351;
  line-height: 1.55;
  box-shadow: 0 6px 16px rgba(68, 88, 150, 0.08);
}

.chat-bubble.user {
  border-color: #cfe1ff;
  background: linear-gradient(135deg, #8a5bff, #6d54f0);
  color: #ffffff;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5fb7ff, #8055ff);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(73, 102, 220, 0.18);
}

.chat-row.user .chat-avatar {
  background: #edf3ff;
  color: #6d54f0;
  border: 1px solid #cbd8ff;
}

.chat-bubble strong {
  display: block;
  margin-bottom: 4px;
  color: #17213d;
  font-size: 13px;
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.chat-bubble li {
  margin: 4px 0;
}

.chat-tip {
  margin-top: 8px !important;
  color: #6d7896;
  font-size: 12px;
}

.chat-summary-table {
  width: 100%;
  margin: 8px 0 10px;
  border-collapse: collapse;
  font-size: 12px;
}

.chat-summary-table th,
.chat-summary-table td {
  border: 1px solid #cfd8ff;
  padding: 7px 8px;
  vertical-align: top;
  text-align: left;
}

.chat-summary-table th {
  background: #f0f4ff;
  color: #17213d;
}

.live-chat-composer {
  margin-top: 10px;
  border: 1px solid #cfd8ff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 10px;
}

.chat-model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #526186;
  font-size: 12px;
}

.chat-model-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.chat-model-row select {
  height: 30px;
  border: 1px solid #cbd8ff;
  border-radius: 8px;
  background: #f8fbff;
  color: #17213d;
  padding: 0 8px;
  font-size: 12px;
}

.chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 10px;
  align-items: end;
}

.chat-input-row textarea {
  min-height: 58px;
  max-height: 120px;
  border: 1px solid #d7e0ff;
  border-radius: 10px;
  background: #ffffff;
  resize: vertical;
  padding: 10px 12px;
  color: #17213d;
  font-size: 13px;
  line-height: 1.5;
}

.chat-input-row button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(90deg, #62c0ff, #8151ff);
  font-weight: 900;
}

.chat-input-row button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.chat-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.chat-actions button {
  min-height: 58px;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  background: #f7fbff;
  color: #1d2b4a;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  text-align: left;
  padding: 8px 10px;
}

.chat-actions button:hover {
  border-color: #7fb2ff;
  background: #eef6ff;
}

.chat-actions b {
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2674ff;
  color: #fff;
  font-size: 12px;
}

.chat-actions span {
  color: #15203a;
  font-size: 13px;
  font-weight: 900;
  white-space: normal;
}

.chat-actions small {
  color: #6c7898;
  font-size: 11px;
  line-height: 1.35;
}

.render-plan-top {
  position: absolute;
  top: 14px;
  right: 14px;
  height: 34px;
  min-width: 132px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(90deg, #62c0ff, #8151ff);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(73, 102, 220, 0.18);
}

.render-plan-top:disabled {
  opacity: 0.62;
  cursor: wait;
}

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

.plan-card {
  height: 248px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  align-content: start;
}

.plan-choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: sticky;
  top: -10px;
  z-index: 1;
  margin: -10px -10px 2px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5ebfb;
}

.plan-choice-head span {
  min-width: 54px;
  color: #1766e8;
  font-size: 13px;
  font-weight: 900;
}

.choose-plan-btn {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1766e8;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.plan-card.active .choose-plan-btn {
  background: #1766e8;
  color: #ffffff;
}

.plan-card.active {
  border-color: #2674ff;
  box-shadow: 0 0 0 3px rgba(38, 116, 255, 0.12);
}

.plan-card input,
.plan-card textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #3d4b72;
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1.45;
}

.plan-card input:focus,
.plan-card textarea:focus {
  border-color: #8eb1ff;
  background: rgba(255, 255, 255, 0.86);
}

.plan-card .plan-title-input {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.plan-card textarea {
  min-height: 72px;
  resize: vertical;
}

.plan-card .plan-block-input {
  min-height: 92px;
  white-space: pre-wrap;
}

.model-report div {
  display: grid;
  gap: 3px;
}

.model-report b {
  color: #6b789f;
}

.model-report span {
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-report p {
  grid-column: 1 / -1;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.model-report .warn,
.model-report .ok {
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
}

.model-report .warn {
  color: #9a520b;
  background: #fff3dc;
}

.model-report .ok {
  color: #147a42;
  background: #e7fff0;
}

.model-report .chat-flow {
  display: grid;
  gap: 8px;
}

.model-report .chat-bubble {
  display: block;
}

.model-report .chat-bubble p {
  display: block;
  margin: 0;
}

.model-report .chat-actions {
  display: grid;
}

.model-report .chat-actions span,
.model-report .chat-actions small,
.model-report .chat-actions b {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.result-layout {
  height: calc(100% - 300px);
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 236px;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
}

.gallery-column,
.preview-column {
  min-height: 0;
}

.gallery-column {
  height: 100%;
  display: grid;
  grid-template-rows: 30px minmax(0, 1fr);
  overflow: hidden;
}

.gallery-head {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
  color: #3d4b72;
  font-size: 13px;
}

.gallery-head strong {
  margin-right: auto;
  color: var(--ink);
  font-size: 17px;
}

.gallery-wait-note {
  display: none;
  margin-right: auto;
  color: #6f7da1;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.gallery-wait-note.show {
  display: inline-flex;
}

.gallery-head input,
.shot-card input {
  accent-color: var(--blue);
}

.gallery-grid {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 8px 28px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(164px, 1fr));
  gap: 12px;
  align-content: start;
  scrollbar-gutter: stable;
}

.gallery-notice {
  min-height: 260px;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed #9cb9ff;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #243052;
  text-align: center;
}

.gallery-notice strong {
  font-size: 18px;
}

.gallery-notice span {
  color: #7180a4;
  font-size: 13px;
}

.shot-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.shot-card header {
  height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4f5b80;
  font-size: 12px;
  font-weight: 700;
}

.shot-card header strong {
  white-space: nowrap;
}

.single-download {
  height: 26px;
  min-width: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #f3f7ff;
  color: #2867ff;
  font-size: 12px;
  font-weight: 800;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.shot-card label {
  margin: 0 0 0 auto;
}

.shot-card canvas,
.shot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: #f2f5ff;
  object-fit: cover;
}

.preview-head {
  height: 40px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-head h2 {
  margin: 0;
  font-size: 16px;
  flex: 1;
}

.preview-head button {
  width: 104px;
  height: 34px;
  font-size: 13px;
  white-space: nowrap;
}

.long-preview {
  height: calc(100% - 136px);
  overflow-y: auto;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background: linear-gradient(180deg, #eafcff, #f4f1ff);
  padding: 12px;
}

.long-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: white;
}

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

.preview-actions button {
  height: 40px;
  color: #4a57a8;
  background: white;
  border: 1px solid var(--line-strong);
}

.preview-actions .primary {
  color: white;
  border: 0;
  background: linear-gradient(90deg, #62c0ff, #8151ff);
}

.export-status {
  margin: 10px 0 0;
  color: #6f7a9a;
  font-size: 12px;
  line-height: 1.5;
}

.export-status[data-type="ok"] {
  color: #147a42;
}

.export-status[data-type="warn"] {
  color: #9a520b;
}

.admin-dialog {
  width: min(760px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 28px 90px rgba(24, 34, 70, 0.28);
}

.admin-dialog::backdrop {
  background: rgba(18, 27, 56, 0.38);
}

.admin-panel {
  margin: 0;
  background: #ffffff;
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.admin-panel header,
.admin-panel footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.admin-panel footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
}

.admin-panel header strong,
.admin-panel header span {
  display: block;
}

.admin-panel header strong {
  font-size: 18px;
}

.admin-panel header span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

#adminCloseBtn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 22px;
  line-height: 1;
}

.admin-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  overflow-y: auto;
}

.admin-grid label:nth-child(4),
.admin-grid label:nth-child(5),
.admin-grid label:nth-child(10),
.admin-grid label:nth-child(11),
.admin-grid label:nth-child(12),
.admin-grid label:nth-child(13) {
  grid-column: 1 / -1;
}

.admin-panel footer button {
  min-width: 104px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
  color: #40528a;
  font-weight: 800;
}

.admin-panel footer .primary {
  color: white;
  border: 0;
  background: linear-gradient(90deg, #62c0ff, #8151ff);
}

.admin-status {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 12px;
}

.admin-status[data-type="ok"] {
  color: #147a42;
}

.admin-status[data-type="warn"] {
  color: #9a520b;
}

.admin-audit-body {
  padding: 18px 20px 22px;
  display: grid;
  gap: 18px;
  overflow: auto;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-metric-grid article {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.admin-metric-grid span,
.admin-audit-section h2 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-metric-grid strong {
  display: block;
  margin-top: 8px;
  color: #1d3470;
  font-size: 24px;
}

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

.admin-monitor-grid article {
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-monitor-grid[data-status="ok"] article:first-child {
  border-color: rgba(20, 122, 66, 0.28);
  background: #f2fbf6;
}

.admin-monitor-grid[data-status="warn"] article:first-child,
.admin-monitor-grid[data-status="degraded"] article:first-child {
  border-color: rgba(219, 115, 0, 0.28);
  background: #fff8ed;
}

.admin-monitor-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-monitor-grid strong {
  display: block;
  margin-top: 7px;
  color: #1d3470;
  font-size: 20px;
}

.admin-alert-list {
  display: grid;
  gap: 8px;
}

.admin-alert {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(219, 115, 0, 0.22);
  border-radius: 8px;
  background: #fffaf2;
  color: #774900;
  font-size: 12px;
}

.admin-alert[data-severity="critical"] {
  border-color: rgba(198, 45, 45, 0.24);
  background: #fff4f4;
  color: #8d2424;
}

.admin-alert strong {
  color: inherit;
}

.admin-alert span {
  min-width: 0;
}

.admin-alert em {
  min-width: 32px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.admin-audit-section {
  display: grid;
  gap: 10px;
}

.admin-adjust-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(110px, 0.7fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-adjust-grid label {
  display: grid;
  gap: 6px;
  color: #52648d;
  font-size: 12px;
  font-weight: 800;
}

.admin-adjust-grid .wide {
  grid-column: span 2;
}

.admin-adjust-grid input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
}

.admin-adjust-grid button,
#adminAuditRefreshBtn {
  min-width: 104px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, #2674ff, #8055ff);
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-audit-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

.admin-audit-table th,
.admin-audit-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6ecff;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}

.admin-audit-table th {
  color: #52648d;
  background: #f3f7ff;
}

.admin-inline-action {
  min-width: 58px;
  height: 28px;
  border: 1px solid rgba(38, 116, 255, 0.28);
  border-radius: 999px;
  color: #1f62d8;
  background: #eef5ff;
  font-size: 12px;
  font-weight: 800;
}

.admin-empty {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  background: #fff;
}

.pricing-dialog {
  width: min(1500px, calc(100vw - 28px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: #fff;
}

.pricing-dialog::backdrop {
  background: rgba(18, 27, 56, 0.38);
}

.pricing-panel {
  position: relative;
  padding: 22px 24px 26px;
}

.pricing-close {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #888;
  font-size: 28px;
}

.pricing-panel h2 {
  margin: 0;
  text-align: center;
  font-size: 28px;
}

.billing-tabs {
  width: fit-content;
  margin: 34px auto 40px;
  padding: 3px;
  border-radius: 999px;
  background: #f1f1f4;
  display: flex;
  gap: 3px;
}

.billing-tabs button {
  position: relative;
  min-width: 104px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1d2438;
  font-weight: 800;
}

.billing-tabs button.active {
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.billing-tabs span {
  position: absolute;
  top: -16px;
  right: -7px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ff7a2f;
  color: #fff;
  font-size: 11px;
}

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

.pricing-grid.quarter,
.pricing-grid.year {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.price-card {
  min-height: 560px;
  border: 1px solid #e2e4ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(18, 27, 56, 0.1);
  padding: 30px 16px 22px;
  position: relative;
}

.price-card.highlight {
  border-color: #735cff;
  background: #f2f0ff;
}

.price-card em {
  position: absolute;
  left: 90px;
  top: -15px;
  padding: 7px 18px;
  border-radius: 999px;
  background: #ff981f;
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.price-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.price-card p {
  min-height: 42px;
  color: #687487;
  font-size: 13px;
  line-height: 1.5;
}

.price-card strong {
  display: inline-block;
  margin-top: 24px;
  font-size: 40px;
  color: #202228;
}

.price-card .price-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.price-card .price-row small {
  color: #7b8494;
  font-size: 14px;
  line-height: 1.8;
}

.price-card .price-row strong {
  margin-top: 0;
}

.price-card .save {
  align-self: center;
  padding: 3px 9px;
  border-radius: 999px;
  color: #13b95e;
  background: #dfffed;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.price-card .original {
  color: #7d8494;
  font-size: 12px;
  text-decoration: line-through;
}

.price-card.highlight strong {
  color: #7160ff;
}

.price-card > span {
  display: block;
  margin-top: 8px;
  color: #687487;
  font-size: 13px;
}

.price-card > button {
  width: 100%;
  height: 46px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  background: #18191d;
  color: #fff;
  font-weight: 900;
}

.price-card.highlight > button {
  background: #7362ff;
}

.price-card ul {
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid #e3e5ec;
  display: grid;
  gap: 14px;
  color: #4c5360;
  font-size: 13px;
  line-height: 1.5;
  list-style: none;
}

.price-card li::before {
  content: "✓";
  margin-right: 8px;
  color: #111;
  font-weight: 900;
}

.payment-status {
  margin: 18px 4px 0;
  color: #68738f;
  font-size: 13px;
}

.payment-status[data-type="ok"] {
  color: #147a42;
}

.payment-status[data-type="warn"] {
  color: #9a520b;
}

@media (max-width: 1180px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.contact-pop {
  position: fixed;
  top: 42px;
  right: 28px;
  width: 236px;
  padding: 18px;
  border-radius: 0 0 8px 8px;
  background: white;
  box-shadow: 0 18px 44px rgba(50, 62, 100, 0.18);
  display: grid;
  gap: 10px;
  justify-items: center;
  z-index: 4;
}

.contact-pop strong {
  font-size: 15px;
}

.contact-pop span {
  color: #386ed8;
  font-size: 13px;
}

.contact-pop small {
  color: #6d7896;
  font-size: 12px;
}

.qr {
  width: 174px;
  height: 174px;
  border: 1px solid #dfe5f6;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 18px, #111 18px 26px, transparent 26px),
    linear-gradient(#111 10px, transparent 10px 18px, #111 18px 26px, transparent 26px),
    #fff;
  background-size: 34px 34px, 34px 34px, auto;
}

@media (min-width: 1520px) {
  .workspace {
    grid-template-columns: 320px 414px minmax(0, 1fr);
    padding-left: 36px;
    padding-right: 36px;
  }

  .result-layout {
    grid-template-columns: minmax(560px, 1fr) 286px;
    gap: 22px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(174px, 1fr));
  }
}

@media (max-width: 1519px) {
  .contact-pop {
    display: none;
  }
}

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

  .workspace {
    height: auto;
    min-height: calc(100vh - 42px);
    grid-template-columns: 300px minmax(360px, 1fr);
  }

  .result-panel {
    grid-column: 1 / -1;
    min-height: 760px;
  }
}

@media (max-width: 820px) {
  .app-topbar,
  .workspace {
    grid-template-columns: 1fr;
  }

  .app-topbar {
    height: auto;
    padding: 12px;
  }

  .top-metrics,
  .top-links {
    flex-wrap: wrap;
  }

  .workspace {
    padding: 12px;
  }

  .phone-frame {
    width: 100%;
  }

  .result-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    height: auto;
    overflow: visible;
  }

  .long-preview {
    height: 520px;
  }
}

/* Tech visual refresh */
:root {
  --bg: #eef6fb;
  --panel: rgba(255, 255, 255, 0.76);
  --card: rgba(255, 255, 255, 0.9);
  --line: rgba(91, 141, 255, 0.24);
  --line-strong: rgba(55, 105, 255, 0.42);
  --ink: #101a2f;
  --muted: #647391;
  --blue: #1f7aff;
  --violet: #7057ff;
  --green: #12b981;
  --warning: #ff8a2a;
  --shadow: 0 20px 54px rgba(22, 47, 92, 0.16);
}

body {
  background:
    linear-gradient(rgba(42, 120, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 120, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(27, 205, 255, 0.18), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(112, 87, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eaf4ff 44%, #eefbf6 100%);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 48px 0 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(36, 123, 255, 0.08) 18.4%, transparent 19.2% 64%, rgba(18, 185, 129, 0.07) 64.4%, transparent 65.2%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  opacity: 0.9;
}

.app-topbar {
  height: 48px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(87, 128, 255, 0.24);
  background: rgba(250, 253, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 12px 36px rgba(31, 61, 122, 0.12);
}

.logo-icon,
.avatar {
  background: linear-gradient(135deg, rgba(31, 122, 255, 0.98), rgba(18, 185, 129, 0.92));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.78) inset, 0 10px 24px rgba(31, 122, 255, 0.26);
}

.logo strong {
  letter-spacing: 0;
  color: #0c1730;
}

.gift,
.top-metrics span {
  border: 1px solid rgba(61, 123, 255, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #42516f;
  box-shadow: 0 8px 18px rgba(31, 78, 153, 0.08);
}

.gift {
  border: 0;
  background: linear-gradient(90deg, #1f7aff, #12b981);
  color: #fff;
}

.top-metrics b {
  color: #1f7aff;
}

.top-metrics .discount {
  background: #111a2d;
  color: #dff7ff;
}

.top-links button {
  color: #40506e;
}

.top-links button:hover {
  color: #0b6cff;
}

.workspace {
  height: calc(100vh - 48px);
  gap: 20px;
  padding: 22px 28px;
}

.task-sidebar,
.input-panel,
.result-panel {
  position: relative;
  border: 1px solid rgba(91, 141, 255, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 252, 255, 0.68));
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  backdrop-filter: blur(18px) saturate(1.12);
}

.task-sidebar::before,
.input-panel::before,
.result-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(31, 122, 255, 0.18), transparent 26%, transparent 72%, rgba(18, 185, 129, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 26%);
  opacity: 0.7;
}

.new-task,
#generateBtn,
#renderPlanBtn,
.preview-actions .primary,
.price-card.highlight > button,
.smart-suggestion button {
  border: 0;
  background: linear-gradient(90deg, #1f7aff 0%, #18b7f0 48%, #12b981 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(31, 122, 255, 0.24);
}

.new-task:hover,
#generateBtn:hover,
#renderPlanBtn:hover,
.preview-actions .primary:hover,
.smart-suggestion button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

button {
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.sidebar-tools button,
.more,
.preview-actions button,
.admin-panel footer button,
.single-download {
  border-color: rgba(62, 116, 255, 0.32);
  background: rgba(255, 255, 255, 0.82);
  color: #2253c8;
  box-shadow: 0 8px 20px rgba(23, 72, 145, 0.08);
}

.new-task-menu,
.task-menu {
  border-color: rgba(68, 119, 255, 0.28);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 58px rgba(20, 42, 88, 0.18);
  backdrop-filter: blur(16px);
}

.new-task-menu button,
.task-menu button {
  background: rgba(241, 247, 255, 0.78);
}

.new-task-menu button:hover,
.task-menu button:hover {
  background: rgba(222, 237, 255, 0.95);
}

.task-card,
.plan-card,
.shot-card,
.model-flow,
.task-id,
.model-report,
.long-preview,
.smart-suggestion,
.upload-area {
  border-color: rgba(67, 121, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 251, 255, 0.78));
  box-shadow: 0 12px 30px rgba(31, 73, 140, 0.09), 0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.task-card {
  border-radius: 12px;
}

.task-card.active,
.plan-card.active {
  border-color: rgba(31, 122, 255, 0.86);
  box-shadow: 0 0 0 3px rgba(31, 122, 255, 0.12), 0 16px 36px rgba(31, 96, 185, 0.16);
}

.task-card em,
.status-dot {
  background: #e7fff6;
  color: #02865e;
}

.task-thumb {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31, 122, 255, 0.12), rgba(18, 185, 129, 0.2));
}

.task-type-badge {
  background: linear-gradient(135deg, #1f7aff, #12b981);
  box-shadow: 0 8px 18px rgba(31, 122, 255, 0.22);
}

.phone-frame {
  scrollbar-color: rgba(31, 122, 255, 0.45) transparent;
}

.phone-frame label {
  color: #596984;
}

input,
select,
textarea {
  border-color: rgba(79, 130, 255, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(31, 73, 140, 0.05) inset;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: #1f7aff;
  box-shadow: 0 0 0 3px rgba(31, 122, 255, 0.12), 0 8px 20px rgba(31, 73, 140, 0.06);
}

.smart-suggestion {
  border-left: 3px solid #12b981;
}

.smart-suggestion strong,
.model-flow b,
.task-id strong,
.result-panel h2,
.preview-head h2 {
  color: #0d1a34;
}

.upload-area {
  border-style: dashed;
  border-color: rgba(31, 122, 255, 0.42);
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: #12b981;
  background: rgba(238, 255, 249, 0.88);
  box-shadow: 0 0 0 3px rgba(18, 185, 129, 0.12), 0 16px 36px rgba(18, 105, 120, 0.12);
}

.upload-area span {
  background: linear-gradient(135deg, #1f7aff, #12b981);
  box-shadow: 0 10px 24px rgba(31, 122, 255, 0.28);
}

.prompt-bar {
  border-top: 1px solid rgba(91, 141, 255, 0.24);
  background: rgba(250, 253, 255, 0.84);
  backdrop-filter: blur(14px);
}

.plan-options {
  gap: 12px;
}

.plan-card {
  border-radius: 12px;
}

.plan-card input,
.plan-card textarea {
  background: rgba(255, 255, 255, 0.58);
}

.shot-card {
  border-radius: 14px;
}

.shot-card header {
  background: linear-gradient(90deg, rgba(238, 247, 255, 0.96), rgba(239, 255, 249, 0.82));
}

.single-download {
  color: #0b6cff;
}

.long-preview {
  background:
    linear-gradient(rgba(31, 122, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 122, 255, 0.05) 1px, transparent 1px),
    rgba(246, 250, 255, 0.78);
  background-size: 18px 18px;
}

.long-preview canvas {
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(20, 42, 88, 0.12);
}

dialog {
  border: 1px solid rgba(91, 141, 255, 0.26);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(11, 25, 58, 0.24);
}

.price-card {
  border-color: rgba(91, 141, 255, 0.22);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.price-card.highlight {
  border-color: rgba(31, 122, 255, 0.72);
  background: linear-gradient(180deg, #f7fbff, #eef8ff);
}

@media (max-width: 980px) {
  .workspace {
    min-height: calc(100vh - 48px);
  }
}

@media (max-width: 820px) {
  body::before {
    inset: 0;
  }
}

.input-panel .phone-frame,
.input-panel .prompt-bar {
  display: none !important;
}

.logo .logo-icon {
  width: 34px;
  height: 34px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 13px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.95) 0 8%, transparent 10%),
    linear-gradient(145deg, #9ae8ff 0%, #1f7aff 46%, #0f42c8 100%);
  box-shadow:
    inset 0 1px 8px rgba(255, 255, 255, 0.78),
    inset 0 -12px 18px rgba(5, 34, 122, 0.26),
    0 0 0 1px rgba(119, 220, 255, 0.55),
    0 10px 24px rgba(31, 122, 255, 0.28),
    0 0 24px rgba(45, 224, 255, 0.28);
}

.logo .logo-icon::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(255, 255, 255, 0.88) 46% 60%, transparent 61%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 12px rgba(119, 238, 255, 0.74);
}

.logo .logo-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  right: 6px;
  top: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    -19px 20px 0 -3px rgba(255, 255, 255, 0.9),
    0 0 10px rgba(255, 255, 255, 0.9);
}

.task-list .task-card {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 64px 12px 12px;
  border-radius: 14px;
}

.task-list .task-card > div:not(.task-thumb):not(.task-actions):not(.task-menu) {
  max-width: 100%;
  padding-right: 6px;
  overflow: hidden;
}

.task-list .task-actions {
  top: 12px;
  right: 10px;
  width: 50px;
  justify-content: flex-end;
  gap: 4px;
}

.task-list .favorite-toggle {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 12px;
}

.task-list .more {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 13px;
}

.task-list .task-thumb {
  width: 46px;
  height: 46px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(213, 241, 255, 0.72)),
    radial-gradient(circle at 68% 32%, rgba(34, 210, 255, 0.72), transparent 34%),
    linear-gradient(145deg, rgba(31, 122, 255, 0.18), rgba(18, 185, 129, 0.18));
  box-shadow:
    inset 0 0 0 1px rgba(110, 185, 255, 0.42),
    inset 0 -12px 22px rgba(31, 122, 255, 0.08),
    0 10px 22px rgba(31, 122, 255, 0.12);
}

.task-list .task-thumb::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 14px rgba(54, 210, 255, 0.2);
}

.task-list .task-thumb.has-image::after {
  display: none;
}

.task-list .task-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.task-list .task-type-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, #1f7aff, #1fd4ff);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(31, 122, 255, 0.24);
}

.chat-upload-area.drag-over {
  border-color: #1f7aff;
  background:
    linear-gradient(180deg, rgba(238, 247, 255, 0.96), rgba(248, 253, 255, 0.92)),
    #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 122, 255, 0.14), 0 16px 36px rgba(31, 96, 185, 0.14);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(69, 195, 255, 0.16), transparent 34%),
    rgba(238, 248, 255, 0.58);
  backdrop-filter: blur(10px);
}

.loading-overlay.show {
  display: grid;
}

.loading-card {
  width: min(360px, calc(100vw - 48px));
  padding: 34px 28px 26px;
  border: 1px solid rgba(121, 194, 255, 0.5);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 251, 255, 0.9)),
    #ffffff;
  box-shadow:
    0 30px 80px rgba(31, 96, 185, 0.22),
    inset 0 0 24px rgba(124, 223, 255, 0.18);
  text-align: center;
}

.loading-card strong {
  display: block;
  margin-top: 18px;
  color: #103a8c;
  font-size: 18px;
}

.loading-card p {
  margin: 8px 0 0;
  color: #607190;
  line-height: 1.6;
}

.loading-cube {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto;
  border-radius: 30px;
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.95) 0 7%, transparent 9%),
    linear-gradient(145deg, #97e8ff, #287dff 52%, #663fff);
  box-shadow:
    inset 0 2px 18px rgba(255, 255, 255, 0.72),
    inset 0 -18px 30px rgba(0, 36, 134, 0.26),
    0 0 0 1px rgba(123, 229, 255, 0.64),
    0 0 36px rgba(46, 204, 255, 0.58);
  animation: loadingFloat 1.8s ease-in-out infinite;
}

.loading-cube span {
  position: absolute;
  inset: 22px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.72);
}

.loading-cube span:nth-child(2) {
  inset: 14px;
  border-color: rgba(108, 232, 255, 0.34);
  animation: loadingSpin 2.8s linear infinite;
}

.loading-cube span:nth-child(3) {
  inset: -10px;
  border-color: rgba(98, 192, 255, 0.24);
  animation: loadingSpin 3.8s linear infinite reverse;
}

.loading-progress {
  height: 6px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(173, 202, 255, 0.34);
}

.loading-progress i {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #62c0ff, #8151ff);
  animation: loadingProgress 1.35s ease-in-out infinite;
}

@keyframes loadingFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-8px) rotateX(8deg) rotateY(-10deg);
  }
}

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

@keyframes loadingProgress {
  0% {
    transform: translateX(-105%);
  }
  100% {
    transform: translateX(235%);
  }
}

.login-page {
  min-height: 100vh;
  overflow: auto;
  color: #eef7ff;
  background:
    radial-gradient(circle at 50% 72%, rgba(0, 183, 255, 0.28), transparent 24%),
    radial-gradient(circle at 12% 18%, rgba(31, 122, 255, 0.28), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(93, 77, 255, 0.24), transparent 30%),
    linear-gradient(180deg, #020815 0%, #061632 48%, #020712 100%);
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(64, 178, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 178, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0 66%, transparent 100%);
}

.login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 9%, rgba(35, 151, 255, 0.28) 9.2%, transparent 9.7% 90%, rgba(35, 151, 255, 0.22) 90.3%, transparent 91%),
    radial-gradient(circle at 50% 88%, rgba(0, 206, 255, 0.44), transparent 18%);
  opacity: 0.85;
}

.login-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-bg span {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(80, 214, 255, 0.78), transparent);
  box-shadow: 0 0 22px rgba(53, 191, 255, 0.75);
  transform: rotate(-24deg);
}

.login-bg span:nth-child(1) {
  width: 460px;
  left: -90px;
  top: 58%;
}

.login-bg span:nth-child(2) {
  width: 320px;
  right: 30px;
  top: 18%;
}

.login-bg span:nth-child(3) {
  width: 620px;
  left: 42%;
  bottom: 16%;
  transform: rotate(0deg);
  opacity: 0.78;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 380px;
  align-items: center;
  gap: 28px;
  width: min(1080px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 48px 0;
  position: relative;
  z-index: 1;
}

.login-visual,
.login-panel {
  border: 1px solid rgba(44, 179, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(8, 29, 70, 0.74), rgba(2, 9, 26, 0.9));
  box-shadow:
    0 0 0 1px rgba(102, 219, 255, 0.08),
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 46px rgba(21, 160, 255, 0.16),
    inset 0 1px 0 rgba(158, 228, 255, 0.18);
  backdrop-filter: blur(18px);
}

.login-visual {
  min-height: 510px;
  display: grid;
  align-content: center;
  justify-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 86%, rgba(0, 214, 255, 0.52), transparent 12%),
    radial-gradient(circle at 50% 42%, rgba(12, 141, 255, 0.34), transparent 32%),
    linear-gradient(rgba(54, 200, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 200, 255, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 34px 34px, 34px 34px;
  opacity: 0.92;
  z-index: -2;
}

.login-visual::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 42px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(50, 202, 255, 0.42);
  background:
    radial-gradient(ellipse at center, rgba(35, 204, 255, 0.32), transparent 54%),
    repeating-radial-gradient(ellipse at center, rgba(54, 200, 255, 0.52) 0 2px, transparent 2px 22px);
  transform: perspective(600px) rotateX(72deg);
  filter: drop-shadow(0 0 22px rgba(0, 191, 255, 0.42));
  z-index: -1;
}

.tech-corners {
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border-radius: 12px;
  background:
    linear-gradient(90deg, #21d9ff 0 34px, transparent 34px) left top / 110px 2px no-repeat,
    linear-gradient(#21d9ff 0 22px, transparent 22px) left top / 2px 86px no-repeat,
    linear-gradient(270deg, #21d9ff 0 34px, transparent 34px) right bottom / 110px 2px no-repeat,
    linear-gradient(0deg, #21d9ff 0 22px, transparent 22px) right bottom / 2px 86px no-repeat;
  opacity: 0.9;
}

.login-orbit {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #f5fbff 0 17%, rgba(77, 208, 255, 0.92) 18% 18.8%, transparent 19.6%),
    radial-gradient(circle at 50% 50%, rgba(42, 185, 255, 0.92) 0 40%, rgba(14, 86, 255, 0.66) 41% 53%, transparent 54%),
    repeating-radial-gradient(circle, rgba(77, 219, 255, 0.28) 0 1px, transparent 1px 19px);
  filter: drop-shadow(0 0 46px rgba(0, 166, 255, 0.62));
  animation: loginFloat 5s ease-in-out infinite;
}

.login-orbit::before,
.login-orbit::after,
.login-orbit i {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid rgba(92, 217, 255, 0.5);
}

.login-orbit::before {
  transform: rotateX(68deg) rotateZ(-16deg);
}

.login-orbit::after {
  inset: 48px;
  border-style: dashed;
  opacity: 0.7;
}

.login-orbit i {
  inset: 82px -24px;
  border-radius: 50%;
  transform: rotateX(72deg) rotateZ(-12deg);
  border-color: rgba(64, 206, 255, 0.75);
}

.login-orbit span {
  position: absolute;
  width: 36px;
  height: 22px;
  border-radius: 14px;
  background: linear-gradient(145deg, #41e6ff, #2c70ff);
  box-shadow: 0 0 26px rgba(56, 210, 255, 0.88);
}

.login-orbit span:nth-of-type(1) { left: 62px; top: 78px; }
.login-orbit span:nth-of-type(2) { right: 36px; top: 124px; background: linear-gradient(145deg, #d8c7ff, #875fff); }
.login-orbit span:nth-of-type(3) { left: 166px; bottom: 72px; background: linear-gradient(145deg, #5bffed, #35bfff); }

.login-visual h1,
.login-visual p {
  position: relative;
  z-index: 2;
}

.login-visual h1 {
  margin: 34px 0 8px;
  color: #ffffff;
  font-size: 48px;
  letter-spacing: 0;
  text-shadow:
    0 0 18px rgba(74, 214, 255, 0.7),
    0 10px 34px rgba(0, 0, 0, 0.46);
}

.login-visual p {
  margin: 0;
  color: #d8ecff;
  font-size: 16px;
  text-shadow: 0 0 18px rgba(42, 185, 255, 0.34);
}

.login-panel {
  min-height: 455px;
  padding: 34px 30px;
  align-self: center;
}

.login-back {
  color: #50cfff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.login-back::before {
  content: "‹";
  margin-right: 7px;
  font-size: 18px;
  vertical-align: -1px;
}

.login-panel h2 {
  margin: 28px 0 8px;
  color: #ffffff;
  font-size: 30px;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(54, 200, 255, 0.24);
}

.login-panel p {
  margin: 0 0 28px;
  color: #9fb8d7;
}

.login-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #d8ecff;
  font-size: 14px;
  font-weight: 900;
}

.login-panel input {
  height: 48px;
  border: 1px solid rgba(54, 200, 255, 0.62);
  border-radius: 10px;
  padding: 0 44px 0 15px;
  background:
    linear-gradient(145deg, rgba(3, 18, 48, 0.9), rgba(2, 10, 26, 0.88));
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(54, 200, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  outline: none;
}

.login-panel input:focus {
  border-color: rgba(72, 220, 255, 0.95);
  box-shadow:
    0 0 0 3px rgba(54, 200, 255, 0.16),
    0 0 24px rgba(54, 200, 255, 0.18);
}

.login-panel label:nth-of-type(1),
.login-panel label:nth-of-type(2),
.login-panel label:nth-of-type(3) {
  position: relative;
}

.login-panel label:nth-of-type(1)::after,
.login-panel label:nth-of-type(2)::after,
.login-panel label:nth-of-type(3)::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 18px;
  height: 18px;
  opacity: 0.86;
  background: currentColor;
  color: #9ec7ef;
  mask: linear-gradient(#000 0 0);
}

.login-panel label:nth-of-type(1)::after {
  border: 2px solid currentColor;
  border-radius: 50% 50% 42% 42%;
  background: transparent;
  mask: none;
}

.login-panel label:nth-of-type(1)::before {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 22px;
  height: 10px;
  border: 2px solid #9ec7ef;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  opacity: 0.86;
}

.login-panel label:nth-of-type(2)::after,
.login-panel label:nth-of-type(3)::after {
  border: 2px solid currentColor;
  border-radius: 4px;
  background: transparent;
  mask: none;
}

.login-panel label:nth-of-type(2)::before,
.login-panel label:nth-of-type(3)::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 28px;
  width: 10px;
  height: 8px;
  border: 2px solid #9ec7ef;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  opacity: 0.86;
}

.login-panel button {
  width: 100%;
  height: 50px;
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(100deg, #16cfff, #286fff 52%, #7c3cff);
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 14px 34px rgba(33, 116, 255, 0.34),
    0 0 26px rgba(72, 220, 255, 0.22);
  cursor: pointer;
}

.login-panel button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}

.login-links a {
  color: #97b7db;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.login-links a:hover {
  color: #55dfff;
}

.auth-status {
  min-height: 22px;
  margin: 10px 0 0 !important;
  font-size: 13px;
  font-weight: 800;
}

.auth-status[data-type="ok"] {
  color: #42ffba;
}

.auth-status[data-type="warn"] {
  color: #ffb25d;
}

.auth-status[data-type="info"] {
  color: #61dfff;
}

@keyframes loginFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  .manual-page {
    display: block;
  }

  .manual-sidebar {
    position: relative;
    height: auto;
    max-height: 42vh;
    border-right: 0;
    border-bottom: 1px solid #e5eaf5;
  }

  .manual-content {
    width: 100%;
    padding: 28px 20px 56px;
  }

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

  .manual-section h1 {
    font-size: 28px;
  }
}

/* Commercial dark-tech skin */
body:not(.doc-page):not(.admin-page):not(.login-page) {
  --bg: #020817;
  --panel: rgba(5, 17, 40, 0.74);
  --card: rgba(8, 24, 52, 0.78);
  --line: rgba(36, 147, 255, 0.34);
  --line-strong: rgba(45, 179, 255, 0.72);
  --ink: #e8f4ff;
  --muted: #8ea8c8;
  --blue: #2cc7ff;
  --violet: #7c5cff;
  --green: #16f0b0;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 2%, rgba(37, 118, 255, 0.24), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(16, 235, 255, 0.13), transparent 30%),
    linear-gradient(rgba(44, 199, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 199, 255, 0.035) 1px, transparent 1px),
    #020817;
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
}

body:not(.doc-page):not(.admin-page):not(.login-page)::before {
  inset: 58px 0 0;
  background:
    linear-gradient(115deg, transparent 0 12%, rgba(44, 199, 255, 0.11) 12.2%, transparent 12.7% 68%, rgba(124, 92, 255, 0.09) 68.2%, transparent 68.8%),
    radial-gradient(circle at 50% 52%, rgba(44, 199, 255, 0.07), transparent 42%);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .app-topbar {
  height: 64px;
  grid-template-columns: minmax(230px, 0.8fr) minmax(460px, auto) minmax(270px, 0.9fr);
  padding: 0 26px;
  border-bottom: 1px solid rgba(50, 180, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(7, 22, 52, 0.94), rgba(4, 14, 34, 0.88));
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.32), 0 1px 0 rgba(105, 217, 255, 0.18) inset;
  backdrop-filter: blur(18px) saturate(1.18);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .workspace {
  height: calc(100vh - 64px);
  gap: 24px;
  padding: 18px 24px 22px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .logo strong {
  color: #f0fbff;
  text-shadow: 0 0 18px rgba(44, 199, 255, 0.32);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .logo-icon,
body:not(.doc-page):not(.admin-page):not(.login-page) .avatar {
  background:
    linear-gradient(135deg, rgba(44, 199, 255, 0.98), rgba(124, 92, 255, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.58) inset,
    0 0 18px rgba(44, 199, 255, 0.42),
    0 12px 26px rgba(44, 199, 255, 0.22);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gift {
  border: 1px solid rgba(44, 199, 255, 0.38);
  background: linear-gradient(135deg, rgba(37, 118, 255, 0.32), rgba(20, 240, 176, 0.18));
  color: #c9f7ff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .top-metrics {
  gap: 10px;
  border: 1px solid rgba(44, 199, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(12, 32, 72, 0.88), rgba(6, 18, 44, 0.78));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill {
  min-width: 150px;
  border-color: rgba(96, 205, 255, 0.22);
  background: linear-gradient(135deg, rgba(15, 45, 92, 0.94), rgba(6, 20, 48, 0.86));
  color: #d9f8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 22px rgba(44, 199, 255, 0.12);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.tasks i {
  background: linear-gradient(145deg, #ff9d2e, #ffd18a);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.edits i {
  background: linear-gradient(145deg, #9b66ff, #43e4ff);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.points i {
  background: linear-gradient(145deg, #4c7dff, #17f0c2);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .top-links button,
body:not(.doc-page):not(.admin-page):not(.login-page) .login-entry {
  min-height: 34px;
  border: 1px solid rgba(78, 190, 255, 0.3);
  background: linear-gradient(180deg, rgba(20, 50, 96, 0.84), rgba(8, 25, 58, 0.84));
  color: #dff9ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 18px rgba(44, 199, 255, 0.12);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-sidebar,
body:not(.doc-page):not(.admin-page):not(.login-page) .input-panel,
body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel {
  border: 1px solid rgba(40, 160, 255, 0.48);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(6, 22, 52, 0.88), rgba(3, 13, 31, 0.86));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 38px rgba(44, 199, 255, 0.08);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-sidebar::before,
body:not(.doc-page):not(.admin-page):not(.login-page) .input-panel::before,
body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel::before {
  background:
    linear-gradient(90deg, rgba(44, 199, 255, 0.18), transparent 24% 76%, rgba(22, 240, 176, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .new-task,
body:not(.doc-page):not(.admin-page):not(.login-page) #generateBtn,
body:not(.doc-page):not(.admin-page):not(.login-page) #renderPlanBtn,
body:not(.doc-page):not(.admin-page):not(.login-page) .chat-start-next,
body:not(.doc-page):not(.admin-page):not(.login-page) .preview-actions .primary,
body:not(.doc-page):not(.admin-page):not(.login-page) .preview-head button {
  border: 1px solid rgba(72, 211, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(45, 199, 255, 0.95), rgba(124, 92, 255, 0.86));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 0 26px rgba(44, 199, 255, 0.28),
    0 16px 34px rgba(0, 0, 0, 0.25);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-card,
body:not(.doc-page):not(.admin-page):not(.login-page) .plan-card,
body:not(.doc-page):not(.admin-page):not(.login-page) .shot-card,
body:not(.doc-page):not(.admin-page):not(.login-page) .model-report,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-id,
body:not(.doc-page):not(.admin-page):not(.login-page) .long-preview,
body:not(.doc-page):not(.admin-page):not(.login-page) .smart-suggestion,
body:not(.doc-page):not(.admin-page):not(.login-page) .upload-area,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-card,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-bubble {
  border: 1px solid rgba(44, 199, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(10, 30, 68, 0.82), rgba(4, 16, 40, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 24px rgba(44, 199, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.22);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-card {
  padding: 12px 64px 12px 12px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-card.active,
body:not(.doc-page):not(.admin-page):not(.login-page) .plan-card.active {
  border-color: rgba(69, 218, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(69, 218, 255, 0.18),
    0 0 26px rgba(44, 199, 255, 0.28),
    0 22px 42px rgba(0, 0, 0, 0.28);
}

body:not(.doc-page):not(.admin-page):not(.login-page) input,
body:not(.doc-page):not(.admin-page):not(.login-page) textarea,
body:not(.doc-page):not(.admin-page):not(.login-page) select,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-card input,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-card textarea,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-card select,
body:not(.doc-page):not(.admin-page):not(.login-page) .plan-card input,
body:not(.doc-page):not(.admin-page):not(.login-page) .plan-card textarea {
  border-color: rgba(63, 178, 255, 0.48);
  background: rgba(1, 11, 28, 0.64);
  color: #eafaff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 18px rgba(44, 199, 255, 0.04);
}

body:not(.doc-page):not(.admin-page):not(.login-page) input::placeholder,
body:not(.doc-page):not(.admin-page):not(.login-page) textarea::placeholder {
  color: rgba(186, 214, 240, 0.62);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-title,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-card label,
body:not(.doc-page):not(.admin-page):not(.login-page) .chat-upload-block,
body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-head strong,
body:not(.doc-page):not(.admin-page):not(.login-page) .preview-head h2,
body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel h2 {
  color: #f0fbff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-card span,
body:not(.doc-page):not(.admin-page):not(.login-page) .guide,
body:not(.doc-page):not(.admin-page):not(.login-page) .chat-upload-area small,
body:not(.doc-page):not(.admin-page):not(.login-page) .chat-upload-block small,
body:not(.doc-page):not(.admin-page):not(.login-page) .export-status {
  color: #93acd0;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .chat-upload-area,
body:not(.doc-page):not(.admin-page):not(.login-page) .upload-area {
  border-style: dashed;
  border-color: rgba(44, 199, 255, 0.55);
  background:
    radial-gradient(circle at 50% 30%, rgba(44, 199, 255, 0.14), transparent 44%),
    rgba(1, 11, 28, 0.46);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .chat-upload-area strong,
body:not(.doc-page):not(.admin-page):not(.login-page) .upload-area strong,
body:not(.doc-page):not(.admin-page):not(.login-page) .upload-area span {
  color: #48dfff;
  text-shadow: 0 0 18px rgba(44, 199, 255, 0.38);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .analysis-inline {
  color: #9bc8f2;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .analysis-inline i {
  background: rgba(44, 199, 255, 0.16);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .analysis-card {
  border-color: rgba(44, 199, 255, 0.34);
  background: rgba(5, 22, 54, 0.72);
  color: #eafaff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .analysis-card strong {
  color: #51e2ff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .analysis-card p b {
  color: #93acd0;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .analysis-card p span {
  color: #f0fbff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .analysis-card button {
  border-color: rgba(72, 211, 255, 0.34);
  background: rgba(3, 16, 42, 0.82);
  color: #dff9ff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .guide span,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-card em,
body:not(.doc-page):not(.admin-page):not(.login-page) .status-dot {
  background: rgba(16, 240, 176, 0.14);
  color: #57ffd1;
  border-color: rgba(16, 240, 176, 0.42);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .long-preview {
  position: relative;
  overflow-y: auto;
  background:
    linear-gradient(rgba(44, 199, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 199, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(124, 92, 255, 0.24), transparent 46%),
    rgba(1, 10, 27, 0.72);
  background-size: 24px 24px, 24px 24px, auto, auto;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .long-preview::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: 50%;
  top: 18%;
  transform: translateX(-50%) rotateX(58deg) rotateZ(45deg);
  border: 1px solid rgba(72, 211, 255, 0.48);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.46), rgba(44, 199, 255, 0.16));
  box-shadow: 0 0 42px rgba(44, 199, 255, 0.34), inset 0 0 34px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 0;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-notice {
  min-height: 380px;
  border: 1px solid rgba(44, 199, 255, 0.38);
  background:
    radial-gradient(circle at 50% 44%, rgba(44, 199, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(6, 22, 52, 0.74), rgba(2, 11, 28, 0.72));
}

body:not(.doc-page):not(.admin-page):not(.login-page) .pricing-dialog {
  background: #06142d;
  color: #e8f4ff;
}

/* Commercial AI workstation layout, close to the provided reference */
body:not(.doc-page):not(.admin-page):not(.login-page) {
  overflow: auto;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .app-topbar {
  min-width: 1500px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .workspace {
  min-width: 1500px;
  grid-template-columns: 260px 410px minmax(760px, 1fr);
  align-items: stretch;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-sidebar {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 12px;
  overflow: hidden;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-sidebar::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 74px;
  height: 112px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 92%, rgba(44, 199, 255, 0.55), transparent 34%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.58), rgba(44, 199, 255, 0.16));
  clip-path: polygon(50% 0, 86% 20%, 86% 62%, 50% 82%, 14% 62%, 14% 20%);
  filter: drop-shadow(0 0 18px rgba(44, 199, 255, 0.52));
  opacity: 0.9;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-rail {
  grid-column: 1;
  grid-row: 1 / 4;
  display: grid;
  align-content: start;
  gap: 18px;
  width: 72px;
  padding: 12px 8px;
  border: 1px solid rgba(44, 199, 255, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(9, 34, 78, 0.78), rgba(2, 12, 32, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 28px rgba(44, 199, 255, 0.08);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-rail::before {
  display: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn {
  width: 56px;
  min-height: 72px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 8px 6px;
  border: 1px solid rgba(44, 199, 255, 0.18);
  border-radius: 14px;
  background: rgba(3, 15, 39, 0.58);
  color: #b7d4f5;
  box-shadow: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn strong {
  display: grid;
  grid-template-rows: repeat(2, 1em);
  justify-items: center;
  align-items: center;
  width: 100%;
  min-height: 28px;
  font-size: 12px;
  line-height: 1.08;
  text-align: center;
  white-space: nowrap;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(44, 199, 255, 0.2), rgba(124, 92, 255, 0.16));
  color: #69e8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 18px rgba(44, 199, 255, 0.12);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn.active {
  border-color: rgba(76, 218, 255, 0.72);
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 22%, rgba(35, 142, 255, 0.56), transparent 38%),
    linear-gradient(180deg, rgba(5, 32, 82, 0.96), rgba(1, 12, 34, 0.98));
  box-shadow:
    0 0 0 1px rgba(88, 222, 255, 0.18) inset,
    0 0 24px rgba(44, 199, 255, 0.38),
    0 14px 28px rgba(0, 0, 0, 0.28);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .category-new-task,
body:not(.doc-page):not(.admin-page):not(.login-page) .new-task-wrap,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-list,
body:not(.doc-page):not(.admin-page):not(.login-page) .favorite-section {
  grid-column: 2;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .category-new-task {
  display: block;
  position: relative;
  z-index: 8;
  pointer-events: auto;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(44, 199, 255, 0.38);
  background: rgba(3, 18, 45, 0.68);
  color: #37dcff;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 18px rgba(44, 199, 255, 0.12);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .new-task-wrap {
  display: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .sidebar-tools {
  display: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list {
  margin-top: 0;
  align-content: start;
  overflow: auto;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-card {
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 92px;
  padding: 14px 54px 14px 10px;
  border-radius: 13px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-actions {
  width: 44px;
  top: 14px;
  right: 9px;
  gap: 4px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .favorite-toggle,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .more {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 11px;
  background: rgba(4, 18, 44, 0.72);
  color: #73eaff;
  border-color: rgba(44, 199, 255, 0.38);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-card strong {
  font-size: 12px;
  line-height: 1.2;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-card span {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.2;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-card em {
  margin-top: 6px;
  padding: 1px 6px;
  font-size: 10px;
  line-height: 1.2;
  border-radius: 999px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .input-panel {
  overflow: hidden;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-panel {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  padding: 16px;
  overflow: hidden;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-messages,
body:not(.doc-page):not(.admin-page):not(.login-page) .phone-frame {
  scrollbar-color: rgba(44, 199, 255, 0.58) rgba(4, 18, 44, 0.5);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .phone-frame,
body:not(.doc-page):not(.admin-page):not(.login-page) .prompt-bar {
  display: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel {
  position: relative;
  overflow: hidden;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel::after {
  content: "AI";
  position: absolute;
  left: 44%;
  top: 46%;
  z-index: 0;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(45deg);
  border: 2px solid rgba(67, 222, 255, 0.7);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(44, 199, 255, 0.36), rgba(124, 92, 255, 0.42)),
    rgba(4, 18, 44, 0.52);
  color: rgba(210, 250, 255, 0.9);
  font-size: 58px;
  font-weight: 950;
  text-shadow: 0 0 26px rgba(44, 199, 255, 0.75);
  box-shadow:
    0 0 42px rgba(44, 199, 255, 0.44),
    inset 0 0 42px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel > * {
  position: relative;
  z-index: 1;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .result-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-column {
  min-height: 540px;
  background:
    radial-gradient(circle at 50% 46%, rgba(44, 199, 255, 0.16), transparent 32%),
    transparent;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-grid:empty::before {
  content: "";
  display: block;
  min-height: 460px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .generation-progress-wrap {
  grid-column: 1 / -1;
  padding: 8px 2px 2px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .generation-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #d8ecff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .generation-progress-info strong {
  font-size: 14px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .generation-progress-info span {
  color: rgba(204, 224, 255, 0.72);
  font-size: 12px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .generation-progress-bar {
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(45, 204, 255, 0.45);
  border-radius: 999px;
  background: rgba(3, 24, 52, 0.78);
  box-shadow: inset 0 0 14px rgba(40, 196, 255, 0.16), 0 0 18px rgba(39, 186, 255, 0.12);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .generation-progress-bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #32d4ff, #7b5cff, #32d4ff);
  box-shadow: 0 0 18px rgba(50, 212, 255, 0.5);
  animation: generationProgressMove 1.35s ease-in-out infinite;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .generating-card {
  min-height: 300px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .generating-card header small {
  color: #1f7aff;
  font-weight: 800;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .generating-preview {
  min-height: 252px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border-radius: 0 0 12px 12px;
  background:
    radial-gradient(circle at 50% 40%, rgba(45, 211, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(234, 248, 255, 0.78));
  color: #17346f;
  overflow: hidden;
  position: relative;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .generating-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, 0.65) 48%, transparent 62% 100%);
  animation: cardShimmer 1.5s linear infinite;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .generating-orbit {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(145deg, #8ce8ff, #1f7aff 55%, #8055ff);
  box-shadow: 0 0 28px rgba(45, 211, 255, 0.45), inset 0 1px 10px rgba(255, 255, 255, 0.72);
  animation: loadingFloat 1.8s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .generating-orbit::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .generating-preview b,
body:not(.doc-page):not(.admin-page):not(.login-page) .generating-preview em {
  position: relative;
  z-index: 1;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .generating-preview em {
  color: #6b7896;
  font-style: normal;
  font-size: 12px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .card-progress {
  width: min(168px, calc(100% - 34px));
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 10px;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-top: 4px;
  color: #56709d;
  font-size: 11px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .card-progress i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(10, 33, 74, 0.12);
  border: 1px solid rgba(38, 189, 255, 0.25);
  position: relative;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .card-progress i::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #37c7ff, #7a5cff, #37f2ff);
  box-shadow: 0 0 16px rgba(55, 199, 255, 0.55);
  transform-origin: left center;
  animation: cardProgressFill 3.8s ease-in-out var(--progress-delay, 0s) infinite;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .card-progress span {
  line-height: 1;
}

@keyframes cardShimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes generationProgressMove {
  0% {
    transform: translateX(-105%);
  }
  100% {
    transform: translateX(245%);
  }
}

@keyframes cardProgressFill {
  0% {
    transform: scaleX(0.18);
  }
  45% {
    transform: scaleX(0.68);
  }
  78% {
    transform: scaleX(0.92);
  }
  100% {
    transform: scaleX(0.98);
  }
}

body:not(.doc-page):not(.admin-page):not(.login-page) .preview-column {
  background: transparent;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .long-preview {
  min-height: 520px;
  border-style: dashed;
  border-color: rgba(92, 210, 255, 0.55);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .price-card li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, #38d9ff, #6f63ff);
  box-shadow: 0 6px 14px rgba(44, 199, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Reference image 1:1 layout pass */
body:not(.doc-page):not(.admin-page):not(.login-page) .app-topbar {
  grid-template-columns: 430px 1fr 430px;
  min-width: 1600px;
  height: 68px;
  padding: 0 32px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .logo {
  gap: 12px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .logo-icon::before {
  width: 18px;
  height: 18px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .logo strong {
  font-size: 22px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gift {
  min-width: 158px;
  height: 34px;
  justify-content: center;
  border-radius: 999px;
  color: #22e5ff;
  font-weight: 950;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .top-metrics {
  justify-self: center;
  width: fit-content;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(44, 199, 255, 0.18);
  border-radius: 14px;
  background: rgba(2, 12, 30, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 22px rgba(44, 199, 255, 0.08);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill {
  height: 32px;
  min-width: 162px;
  padding: 0 12px;
  border-radius: 10px;
  border-color: rgba(44, 199, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(7, 28, 62, 0.9), rgba(3, 14, 36, 0.9));
  color: #c8f6ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -8px 14px rgba(0, 0, 0, 0.18),
    0 0 14px rgba(44, 199, 255, 0.08);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(145deg, #35d8ff, #286cff) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -7px 12px rgba(0, 0, 0, 0.18),
    0 0 14px rgba(44, 199, 255, 0.32);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.points em {
  height: 24px;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 0 10px;
  border: 1px solid rgba(124, 92, 255, 0.4);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(92, 105, 255, 0.94), rgba(39, 190, 255, 0.48));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 0 14px rgba(92, 105, 255, 0.2);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .top-links {
  gap: 10px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .top-links button,
body:not(.doc-page):not(.admin-page):not(.login-page) .login-entry {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .top-links .account-avatar-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .top-links .account-menu button {
  height: 36px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  box-shadow: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .top-links .account-menu .account-menu-danger {
  color: #ff4d4f;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .top-links .account-menu .account-menu-danger:hover {
  background: #fff2f1;
  color: #ff3b30;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .top-links .account-avatar-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(115, 178, 255, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 24%, rgba(125, 191, 255, 0.9) 0 4%, transparent 17%),
    radial-gradient(circle at 50% 48%, rgba(37, 93, 190, 0.52) 0 44%, rgba(9, 28, 67, 0.94) 69%, rgba(4, 15, 38, 0.98) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(93, 151, 240, 0.35),
    inset 0 0 16px rgba(54, 118, 230, 0.38),
    0 0 0 1px rgba(27, 87, 179, 0.38),
    0 0 18px rgba(42, 128, 255, 0.5);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .top-links .account-avatar-icon {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 8px rgba(78, 154, 255, 0.66));
}

body:not(.doc-page):not(.admin-page):not(.login-page) .top-links .account-avatar-icon::before,
body:not(.doc-page):not(.admin-page):not(.login-page) .top-links .account-avatar-icon::after {
  border-color: rgba(255, 255, 255, 0.98);
  border-width: 2.2px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .top-links .account-avatar-icon::before {
  top: 1px;
  width: 8px;
  height: 8px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .top-links .account-avatar-icon::after {
  bottom: 2px;
  width: 16px;
  height: 9px;
  border-radius: 12px 12px 4px 4px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .workspace {
  min-width: 1600px;
  height: calc(100vh - 68px);
  grid-template-columns: 292px 410px minmax(898px, 1fr);
  gap: 24px;
  padding: 16px 22px 18px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-sidebar,
body:not(.doc-page):not(.admin-page):not(.login-page) .input-panel,
body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel {
  height: calc(100vh - 106px);
  min-height: 720px;
  border-radius: 10px;
  border-color: rgba(27, 133, 255, 0.86);
  background:
    linear-gradient(rgba(28, 147, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 147, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 10%, rgba(29, 132, 255, 0.14), transparent 42%),
    rgba(2, 12, 31, 0.92);
  background-size: 28px 28px, 28px 28px, auto, auto;
  box-shadow:
    0 0 0 1px rgba(100, 213, 255, 0.08) inset,
    0 0 30px rgba(19, 132, 255, 0.22),
    0 28px 80px rgba(0, 0, 0, 0.38);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-sidebar::before,
body:not(.doc-page):not(.admin-page):not(.login-page) .input-panel::before,
body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel::before {
  border-radius: inherit;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-sidebar {
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 12px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-rail {
  width: 64px;
  border-radius: 14px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn {
  width: 50px;
  min-height: 66px;
  padding: 7px 5px;
  gap: 5px;
  border-radius: 12px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn.active {
  min-height: 96px;
  padding: 9px 5px;
  gap: 8px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  font-size: 18px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn.active .task-mode-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn strong {
  font-size: 11px;
  line-height: 1.15;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .category-new-task {
  height: 44px;
  border-radius: 9px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-card {
  min-height: 92px;
  border-radius: 10px;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 14px 50px 14px 10px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-thumb {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .input-panel {
  display: block;
  background:
    radial-gradient(circle at 50% 0%, rgba(48, 126, 255, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(4, 16, 40, 0.98), rgba(1, 7, 22, 0.98)) !important;
  background-size: auto, auto !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-chat-avatar {
  width: 38px;
  height: 38px;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(44, 199, 255, 0.45);
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 45%, #73f2ff 0 6%, transparent 7%),
    radial-gradient(circle at 65% 45%, #73f2ff 0 6%, transparent 7%),
    linear-gradient(145deg, #123c9b, #071d5c 58%, #061638);
  color: transparent;
  font-size: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 20px rgba(44, 199, 255, 0.56),
    0 12px 24px rgba(0, 0, 0, 0.28);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-chat-avatar::before {
  content: "";
  position: absolute;
  left: 11px;
  top: -8px;
  width: 14px;
  height: 8px;
  border: 1px solid rgba(44, 199, 255, 0.7);
  border-bottom: 0;
  border-radius: 999px 999px 2px 2px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-chat-avatar::after {
  display: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .chat-row.ai .chat-avatar,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble.ai::before {
  width: 34px;
  height: 34px;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(44, 199, 255, 0.45);
  border-radius: 12px;
  background:
    radial-gradient(circle at 35% 45%, #73f2ff 0 6%, transparent 7%),
    radial-gradient(circle at 65% 45%, #73f2ff 0 6%, transparent 7%),
    linear-gradient(145deg, #123c9b, #071d5c 58%, #061638);
  color: transparent;
  font-size: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 18px rgba(44, 199, 255, 0.52),
    0 10px 20px rgba(0, 0, 0, 0.25);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .chat-row.ai .chat-avatar::before,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble.ai::after {
  content: "";
  position: absolute;
  left: 10px;
  top: -7px;
  width: 12px;
  height: 7px;
  border: 1px solid rgba(44, 199, 255, 0.7);
  border-bottom: 0;
  border-radius: 999px 999px 2px 2px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-bubble {
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(4, 18, 45, 0.82), rgba(1, 9, 26, 0.82));
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-panel {
  background:
    radial-gradient(circle at 12% 4%, rgba(124, 92, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(2, 12, 31, 0.96), rgba(1, 7, 21, 0.96));
  padding: 14px 14px 16px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-bubble,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-card {
  background:
    linear-gradient(180deg, rgba(4, 17, 43, 0.96), rgba(2, 10, 28, 0.96)) !important;
  border-color: rgba(26, 117, 210, 0.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 20px rgba(25, 123, 255, 0.13) !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-bubble {
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-card {
  padding: 12px;
  border-radius: 10px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-title {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.6;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-card label,
body:not(.doc-page):not(.admin-page):not(.login-page) .chat-upload-block {
  margin-bottom: 12px;
  gap: 7px;
  font-size: 12px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-chat-entry {
  align-items: flex-start;
}

body:not(.doc-page):not(.admin-page):not(.login-page) #aiRequirementInput {
  border-color: rgba(44, 199, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(5, 22, 52, 0.94), rgba(1, 10, 28, 0.94)) !important;
  color: #dff8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 20px rgba(44, 199, 255, 0.08);
  min-height: 54px;
  font-size: 12px;
  padding: 12px 14px 12px 58px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) #aiRequirementInput::placeholder {
  color: rgba(168, 207, 236, 0.72);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-messages::-webkit-scrollbar,
body:not(.doc-page):not(.admin-page):not(.login-page) textarea::-webkit-scrollbar {
  width: 8px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-messages::-webkit-scrollbar-track,
body:not(.doc-page):not(.admin-page):not(.login-page) textarea::-webkit-scrollbar-track {
  background: rgba(5, 18, 44, 0.9);
  border-radius: 999px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-messages::-webkit-scrollbar-thumb,
body:not(.doc-page):not(.admin-page):not(.login-page) textarea::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, #35d7ff, #7265ff);
  box-shadow: 0 0 14px rgba(44, 199, 255, 0.38);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-actions {
  padding-top: 8px;
  background: linear-gradient(180deg, transparent, rgba(1, 7, 22, 0.86) 34%);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .chat-upload-area {
  min-height: 118px;
  border-radius: 10px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .chat-upload-area::before {
  content: "";
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border: 1px solid rgba(113, 218, 255, 0.46);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(215, 248, 255, 0.82), rgba(215, 248, 255, 0.82)) 50% 12px / 2px 12px no-repeat,
    linear-gradient(135deg, transparent 43%, rgba(215, 248, 255, 0.84) 44% 56%, transparent 57%) 15px 11px / 11px 11px no-repeat,
    linear-gradient(225deg, transparent 43%, rgba(215, 248, 255, 0.84) 44% 56%, transparent 57%) 14px 11px / 11px 11px no-repeat,
    linear-gradient(90deg, rgba(215, 248, 255, 0.8), rgba(215, 248, 255, 0.8)) 13px 28px / 14px 2px no-repeat,
    radial-gradient(circle at 28% 16%, rgba(105, 224, 255, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(13, 43, 82, 0.54), rgba(8, 24, 55, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -10px 18px rgba(0, 8, 30, 0.28),
    0 0 0 1px rgba(44, 199, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.16),
    0 0 18px rgba(44, 199, 255, 0.16);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .aiRequirementInput,
body:not(.doc-page):not(.admin-page):not(.login-page) #aiRequirementInput {
  min-height: 74px;
  border-radius: 10px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-card input,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-card select {
  height: 38px;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-card textarea {
  min-height: 76px;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-form-grid {
  gap: 10px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .chat-start-next {
  height: 42px;
  border-radius: 999px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-actions button {
  height: 38px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 18px rgba(44, 199, 255, 0.2);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-actions {
  gap: 10px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-actions button {
  height: 48px;
  border-radius: 999px;
  font-weight: 950;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-actions button:first-child {
  border: 0;
  background: linear-gradient(135deg, #36c8ff, #8b43ff);
  color: #ffffff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-actions button:last-child {
  border: 1px solid rgba(44, 199, 255, 0.58);
  background: linear-gradient(135deg, rgba(7, 42, 82, 0.94), rgba(4, 23, 54, 0.94));
  color: #dff9ff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-panel {
  position: relative;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-panel::after {
  content: "";
  position: absolute;
  left: 27px;
  bottom: 72px;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 35% 38%, #eaffff 0 7%, transparent 8%),
    radial-gradient(circle at 68% 38%, #eaffff 0 7%, transparent 8%),
    radial-gradient(circle at 50% 70%, rgba(44, 199, 255, 0.9) 0 18%, transparent 19%),
    linear-gradient(145deg, #33d7ff, #235dff 58%, #0c1e58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 18px rgba(44, 199, 255, 0.55),
    0 10px 22px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-panel::before {
  content: "";
  position: absolute;
  left: 37px;
  bottom: 104px;
  width: 14px;
  height: 8px;
  border-radius: 999px 999px 2px 2px;
  border: 1px solid rgba(44, 199, 255, 0.65);
  border-bottom: 0;
  pointer-events: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel {
  padding: 28px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .guide,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-id,
body:not(.doc-page):not(.admin-page):not(.login-page) .model-report-wrap,
body:not(.doc-page):not(.admin-page):not(.login-page) .plan-options {
  display: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .result-layout {
  height: 100%;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-column,
body:not(.doc-page):not(.admin-page):not(.login-page) .preview-column {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-head {
  height: 44px;
  align-items: center;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-head strong {
  font-size: 20px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-grid {
  min-height: calc(100% - 64px);
  align-content: center;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .preview-head {
  height: 44px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .long-preview {
  height: calc(100% - 142px);
  min-height: 560px;
  border-radius: 14px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .long-preview canvas {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  background: #061329;
  box-shadow: 0 0 28px rgba(44, 199, 255, 0.12);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .long-preview,
body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-column,
body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-list,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-messages {
  scrollbar-color: #38d9ff #061329;
  scrollbar-width: thin;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .long-preview::-webkit-scrollbar,
body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-column::-webkit-scrollbar,
body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel::-webkit-scrollbar,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-list::-webkit-scrollbar,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-messages::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .long-preview::-webkit-scrollbar-track,
body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-column::-webkit-scrollbar-track,
body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel::-webkit-scrollbar-track,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-list::-webkit-scrollbar-track,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-messages::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #061329;
  box-shadow: inset 0 0 0 1px rgba(44, 199, 255, 0.18);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .long-preview::-webkit-scrollbar-thumb,
body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-column::-webkit-scrollbar-thumb,
body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel::-webkit-scrollbar-thumb,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-list::-webkit-scrollbar-thumb,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, #35d8ff, #2a70ff);
  box-shadow: 0 0 14px rgba(44, 199, 255, 0.55);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .preview-actions {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .preview-actions button {
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(44, 199, 255, 0.58);
  background: rgba(4, 21, 52, 0.76);
  color: #dff9ff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .preview-actions .primary {
  background: linear-gradient(135deg, rgba(44, 199, 255, 0.82), rgba(16, 240, 176, 0.74));
}

body:not(.doc-page):not(.admin-page):not(.login-page) .input-panel,
body:not(.doc-page):not(.admin-page):not(.login-page) .input-panel .phone-frame,
body:not(.doc-page):not(.admin-page):not(.login-page) .input-panel .prompt-bar {
  color-scheme: dark;
}

/* Phase 2: refined 3D icons, AI stage, and dark commercial pricing */
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-icon,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-thumb,
body:not(.doc-page):not(.admin-page):not(.login-page) .book-icon,
body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill i {
  transform: translateZ(0);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-icon {
  position: relative;
  font-size: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(145deg, rgba(44, 199, 255, 0.96), rgba(31, 82, 255, 0.46) 58%, rgba(4, 18, 48, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -12px 22px rgba(1, 10, 34, 0.34),
    0 12px 24px rgba(44, 199, 255, 0.25),
    0 0 22px rgba(44, 199, 255, 0.3);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn.active .task-mode-icon {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.8), transparent 18%),
    linear-gradient(145deg, #35d8ff, #206dff 58%, #0a2b7a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -12px 22px rgba(2, 17, 64, 0.38),
    0 0 24px rgba(44, 199, 255, 0.72),
    0 12px 24px rgba(17, 111, 255, 0.34);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn.active strong {
  color: #e9fbff;
  text-shadow: 0 0 14px rgba(44, 199, 255, 0.42);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn.active::before,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn.active::after {
  opacity: 0;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-icon::before,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="all"] .task-mode-icon::before {
  inset: 12px;
  border: 2px solid rgba(232, 251, 255, 0.94);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(232, 251, 255, 0.94) 0 12px, transparent 12px) 7px 7px / 22px 3px no-repeat,
    linear-gradient(90deg, rgba(232, 251, 255, 0.7) 0 16px, transparent 16px) 7px 15px / 24px 3px no-repeat;
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.12);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="all"] .task-mode-icon::after {
  right: 11px;
  bottom: 10px;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(232, 251, 255, 0.9);
  border-radius: 50%;
  box-shadow: -6px -12px 0 -3px rgba(232, 251, 255, 0.85);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="main"] .task-mode-icon::before {
  inset: 13px;
  border: 2px solid rgba(232, 251, 255, 0.95);
  border-radius: 5px;
  box-shadow: 6px -6px 0 rgba(232, 251, 255, 0.22);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="main"] .task-mode-icon::after {
  left: 18px;
  bottom: 15px;
  width: 14px;
  height: 10px;
  background:
    linear-gradient(135deg, transparent 50%, rgba(232, 251, 255, 0.96) 51%) left bottom / 8px 8px no-repeat,
    linear-gradient(45deg, transparent 50%, rgba(232, 251, 255, 0.86) 51%) right bottom / 9px 9px no-repeat;
  border-radius: 2px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="detail"] .task-mode-icon::before {
  inset: 10px 12px;
  border: 2px solid rgba(232, 251, 255, 0.94);
  border-radius: 5px;
  background:
    linear-gradient(rgba(232, 251, 255, 0.94), rgba(232, 251, 255, 0.94)) 8px 9px / 18px 3px no-repeat,
    linear-gradient(rgba(232, 251, 255, 0.74), rgba(232, 251, 255, 0.74)) 8px 17px / 20px 3px no-repeat,
    linear-gradient(rgba(232, 251, 255, 0.54), rgba(232, 251, 255, 0.54)) 8px 25px / 14px 3px no-repeat;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="detail"] .task-mode-icon::after {
  left: 14px;
  top: 19px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(232, 251, 255, 0.92);
  box-shadow: 0 8px 0 rgba(232, 251, 255, 0.72);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="replica"] .task-mode-icon::before {
  left: 12px;
  top: 13px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(232, 251, 255, 0.96);
  border-radius: 5px;
  background: rgba(232, 251, 255, 0.1);
  box-shadow: 8px 7px 0 -2px rgba(232, 251, 255, 0.26);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="replica"] .task-mode-icon::after {
  right: 11px;
  top: 12px;
  width: 15px;
  height: 28px;
  border-left: 2px solid rgba(232, 251, 255, 0.86);
  border-right: 2px solid rgba(232, 251, 255, 0.42);
  border-radius: 50%;
  transform: rotate(8deg);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="sku"] .task-mode-icon::before {
  inset: 11px;
  border: 2px solid rgba(232, 251, 255, 0.88);
  border-radius: 8px;
  transform: perspective(80px) rotateX(16deg) rotateZ(-4deg);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.1);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="sku"] .task-mode-icon::after {
  inset: auto;
  width: 7px;
  height: 7px;
  left: 14px;
  top: 14px;
  border: 0;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 12px 0 0 #ffffff, 0 12px 0 #ffffff, 12px 12px 0 rgba(232, 251, 255, 0.72);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-thumb {
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.65), transparent 18%),
    linear-gradient(145deg, rgba(55, 218, 255, 0.92), rgba(43, 97, 255, 0.42) 56%, rgba(8, 28, 66, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -14px 22px rgba(2, 12, 38, 0.42),
    0 12px 24px rgba(44, 199, 255, 0.24),
    0 0 22px rgba(44, 199, 255, 0.2);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-column {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-column::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 60%;
  width: 360px;
  height: 170px;
  z-index: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 50% 54%, rgba(44, 199, 255, 0.72), transparent 8%),
    radial-gradient(ellipse at 50% 54%, rgba(44, 199, 255, 0.32), transparent 24%),
    linear-gradient(90deg, transparent 0 13%, rgba(44, 199, 255, 0.68) 14% 15%, transparent 16% 84%, rgba(44, 199, 255, 0.68) 85% 86%, transparent 87%),
    linear-gradient(180deg, transparent 0 48%, rgba(44, 199, 255, 0.58) 49% 51%, transparent 52%),
    radial-gradient(ellipse at 50% 54%, transparent 0 38%, rgba(44, 199, 255, 0.46) 39% 40%, transparent 41% 54%, rgba(44, 199, 255, 0.28) 55% 56%, transparent 57%);
  filter: drop-shadow(0 0 28px rgba(44, 199, 255, 0.42));
  opacity: 0.95;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-column::after {
  content: "AI";
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 0;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(45deg);
  border: 2px solid rgba(83, 226, 255, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(55, 225, 255, 0.58), rgba(102, 91, 255, 0.5)),
    linear-gradient(315deg, rgba(7, 34, 82, 0.88), rgba(2, 12, 36, 0.5));
  color: rgba(224, 255, 255, 0.95);
  font-size: 42px;
  font-weight: 950;
  text-shadow: 0 0 28px rgba(44, 199, 255, 0.9);
  box-shadow:
    18px 18px 0 rgba(10, 42, 98, 0.72),
    32px 32px 0 rgba(18, 69, 155, 0.32),
    -18px 18px 0 rgba(42, 206, 255, 0.12),
    0 0 42px rgba(44, 199, 255, 0.72),
    0 0 90px rgba(44, 199, 255, 0.28),
    inset 0 0 34px rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-grid::before {
  display: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-head,
body:not(.doc-page):not(.login-page):not(.admin-page) .gallery-grid {
  position: relative;
  z-index: 2;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-grid {
  position: relative;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-grid .shot-card {
  position: relative;
  z-index: 3;
  isolation: isolate;
  background: #ffffff !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-grid .shot-card img,
body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-grid .shot-card canvas {
  position: relative;
  z-index: 2;
  background-color: #ffffff !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .pricing-dialog {
  width: min(1480px, calc(100vw - 32px));
  border: 1px solid rgba(44, 199, 255, 0.48);
  border-radius: 18px;
  background:
    linear-gradient(rgba(44, 199, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 199, 255, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(44, 199, 255, 0.16), transparent 36%),
    #041126;
  background-size: 28px 28px, 28px 28px, auto, auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), 0 0 42px rgba(44, 199, 255, 0.16);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .pricing-panel {
  padding: 28px 28px 30px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .pricing-panel h2 {
  color: #eafaff;
  text-shadow: 0 0 24px rgba(44, 199, 255, 0.28);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .billing-tabs {
  background: rgba(3, 16, 42, 0.86);
  border: 1px solid rgba(44, 199, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.28);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .billing-tabs button {
  color: #a8c8ec;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .billing-tabs button.active {
  color: #eafaff;
  background: linear-gradient(135deg, rgba(44, 199, 255, 0.22), rgba(124, 92, 255, 0.18));
  box-shadow: 0 0 20px rgba(44, 199, 255, 0.18);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .price-card {
  min-height: 580px;
  border-color: rgba(44, 199, 255, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 31, 70, 0.92), rgba(3, 14, 36, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 20px 46px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(44, 199, 255, 0.08);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .price-card.highlight {
  border-color: rgba(125, 106, 255, 0.9);
  background:
    radial-gradient(circle at 50% 0%, rgba(125, 106, 255, 0.28), transparent 42%),
    linear-gradient(180deg, rgba(18, 32, 84, 0.94), rgba(6, 15, 42, 0.94));
  box-shadow: 0 0 36px rgba(125, 106, 255, 0.24), 0 22px 52px rgba(0, 0, 0, 0.34);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .price-card h3,
body:not(.doc-page):not(.admin-page):not(.login-page) .price-card strong {
  color: #f3fbff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .price-card.highlight strong {
  color: #8f82ff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .price-card p,
body:not(.doc-page):not(.admin-page):not(.login-page) .price-card > span,
body:not(.doc-page):not(.admin-page):not(.login-page) .price-card ul {
  color: #9bb6d7;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .price-card > button {
  border: 1px solid rgba(44, 199, 255, 0.42);
  background: linear-gradient(135deg, rgba(18, 27, 56, 0.96), rgba(5, 12, 30, 0.96));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .price-card.highlight > button {
  background: linear-gradient(135deg, #36c8ff, #7c5cff);
  box-shadow: 0 18px 34px rgba(44, 199, 255, 0.22);
}

.required-missing {
  border-color: #ff4d67 !important;
  box-shadow: 0 0 0 1px rgba(255, 77, 103, 0.45), 0 0 18px rgba(255, 77, 103, 0.26) !important;
}

@media (max-width: 1600px) {
  body:not(.doc-page):not(.admin-page):not(.login-page) .app-topbar {
    grid-template-columns: 430px 720px 430px;
  }

  body:not(.doc-page):not(.admin-page):not(.login-page) .workspace {
    height: calc(100vh - 68px);
    min-height: 760px;
    grid-template-columns: 292px 410px 898px;
  }

  body:not(.doc-page):not(.admin-page):not(.login-page) .task-sidebar,
  body:not(.doc-page):not(.admin-page):not(.login-page) .input-panel,
  body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel {
    min-height: 0;
  }

  body:not(.doc-page):not(.admin-page):not(.login-page) .task-sidebar {
    height: calc(100vh - 106px);
    min-height: 720px;
  }

  body:not(.doc-page):not(.admin-page):not(.login-page) .input-panel {
    height: calc(100vh - 106px);
    min-height: 720px;
  }

  body:not(.doc-page):not(.admin-page):not(.login-page) .result-panel {
    grid-column: auto;
    height: calc(100vh - 106px);
    min-height: 720px;
  }
}

/* Compact corner loading widget */
body:not(.doc-page):not(.admin-page):not(.login-page) .loading-overlay {
  inset: auto 22px 22px auto;
  width: 286px;
  height: auto;
  place-items: stretch;
  padding: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-overlay.show {
  display: block;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-card {
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 14px 15px 13px;
  border: 1px solid rgba(54, 200, 255, 0.38);
  border-radius: 16px;
  background:
    radial-gradient(circle at 15% 12%, rgba(54, 200, 255, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(9, 31, 72, 0.94), rgba(3, 10, 27, 0.96));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(54, 200, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #eafaff;
  text-align: left;
  pointer-events: auto;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-card strong {
  margin: 0;
  color: #f3fbff;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-card p {
  margin: 5px 0 0;
  color: #9fc4e9;
  font-size: 12px;
  line-height: 1.45;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-cube {
  grid-row: 1 / span 3;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(54, 200, 255, 0.95), rgba(124, 92, 255, 0.76)),
    rgba(5, 18, 42, 0.92);
  box-shadow:
    0 0 20px rgba(54, 200, 255, 0.44),
    inset 0 0 16px rgba(255, 255, 255, 0.2);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-cube::after {
  font-size: 14px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-cube span {
  inset: 11px;
  border-width: 2px;
  border-radius: 10px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-cube span:nth-child(2) {
  inset: 7px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-cube span:nth-child(3) {
  inset: -4px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-progress {
  grid-column: 2;
  height: 4px;
  margin-top: 9px;
  background: rgba(54, 200, 255, 0.14);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-progress i {
  background: linear-gradient(90deg, rgba(54, 200, 255, 0.1), #36c8ff, #7c5cff);
  box-shadow: 0 0 14px rgba(54, 200, 255, 0.55);
}

@media (max-width: 720px) {
  body:not(.doc-page):not(.admin-page):not(.login-page) .loading-overlay {
    inset: auto 12px 12px 12px;
    width: auto;
  }
}

/* Full-screen plan loading page */
body:not(.doc-page):not(.admin-page):not(.login-page) .loading-overlay {
  inset: 0;
  width: auto;
  height: auto;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(54, 200, 255, 0.12), transparent 34%),
    linear-gradient(rgba(54, 200, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 200, 255, 0.028) 1px, transparent 1px),
    rgba(1, 7, 19, 0.72);
  background-size: auto, 32px 32px, 32px 32px, auto;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-overlay.show {
  display: grid;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-card {
  width: min(460px, calc(100vw - 48px));
  min-height: 228px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  column-gap: 20px;
  align-items: center;
  padding: 30px 32px 28px;
  border: 1px solid rgba(54, 200, 255, 0.48);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 16%, rgba(54, 200, 255, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(9, 31, 72, 0.96), rgba(3, 10, 27, 0.98));
  box-shadow:
    0 32px 86px rgba(0, 0, 0, 0.55),
    0 0 42px rgba(54, 200, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #eafaff;
  text-align: left;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-card strong {
  margin: 0;
  color: #f3fbff;
  font-size: 20px;
  line-height: 1.25;
  text-shadow: 0 0 18px rgba(54, 200, 255, 0.24);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-card p {
  margin: 8px 0 0;
  color: #a8caef;
  font-size: 14px;
  line-height: 1.7;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-cube {
  grid-row: 1 / span 3;
  width: 76px;
  height: 76px;
  margin: 0;
  border-radius: 22px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-cube::after {
  font-size: 22px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-cube span {
  inset: 18px;
  border-width: 2px;
  border-radius: 16px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-cube span:nth-child(2) {
  inset: 11px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-cube span:nth-child(3) {
  inset: -7px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-progress {
  grid-column: 2;
  height: 6px;
  margin-top: 18px;
  background: rgba(54, 200, 255, 0.15);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .loading-progress i {
  background: linear-gradient(90deg, rgba(54, 200, 255, 0.12), #36c8ff, #7c5cff);
  box-shadow: 0 0 16px rgba(54, 200, 255, 0.58);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble.typing::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: #36c8ff;
  animation: caretBlink 0.8s steps(1) infinite;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

/* Dark commercial style for AI intake cards */
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble {
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.65;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble.ai {
  border: 1px solid rgba(54, 200, 255, 0.34);
  background:
    radial-gradient(circle at 0% 0%, rgba(54, 200, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(8, 31, 72, 0.92), rgba(2, 10, 27, 0.96));
  color: #d8ecff;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .inline-loading-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .inline-loading-status i {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 2px solid rgba(118, 226, 255, 0.24);
  border-top-color: #48d9ff;
  border-right-color: #7c5cff;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(54, 200, 255, 0.28);
  animation: inlineStatusSpin 0.78s linear infinite;
}

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

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble.user {
  border: 1px solid rgba(132, 104, 255, 0.62);
  background: linear-gradient(135deg, #35bfff, #7b57ff);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(59, 148, 255, 0.24);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(54, 200, 255, 0.24);
  border-radius: 10px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble th,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble td {
  border: 0;
  border-bottom: 1px solid rgba(54, 200, 255, 0.18);
  color: #cfe8ff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble tr:last-child th,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble tr:last-child td {
  border-bottom: 0;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble th {
  background: rgba(54, 200, 255, 0.1);
  color: #f0fbff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-result,
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-confirmed.pending {
  border: 1px solid rgba(54, 200, 255, 0.32);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 92, 255, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(8, 29, 68, 0.94), rgba(2, 10, 28, 0.94));
  color: #d8ecff;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-result {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-hero {
  display: grid;
  gap: 5px;
  padding: 10px 11px 11px;
  border: 1px solid rgba(117, 219, 255, 0.24);
  border-radius: 12px;
  background: rgba(5, 20, 52, 0.54);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-hero > span,
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-demand-card > span,
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-recommend-card > span,
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-feature-grid article span {
  color: #78ddff;
  font-size: 12px;
  font-weight: 800;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-hero strong {
  color: #f4fbff;
  font-size: 16px;
  line-height: 1.35;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-hero p {
  margin: 0;
  color: rgba(218, 238, 255, 0.82);
  font-size: 12px;
  line-height: 1.55;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-feature-grid article {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(54, 200, 255, 0.2);
  border-radius: 10px;
  background: rgba(4, 17, 43, 0.58);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-feature-grid article strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #eefaff;
  font-size: 12px;
  line-height: 1.4;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-demand-card,
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-recommend-card {
  padding: 9px 11px;
  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: 12px;
  background: rgba(17, 30, 72, 0.62);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-demand-card p,
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-recommend-card p {
  max-height: 84px;
  margin: 5px 0 0;
  overflow: auto;
  color: rgba(218, 238, 255, 0.84);
  font-size: 12px;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: rgba(58, 214, 255, 0.7) rgba(6, 18, 44, 0.45);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-recommend-card strong {
  display: block;
  margin-top: 3px;
  color: #f4fbff;
  font-size: 14px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-recommend-card small {
  display: block;
  margin-top: 5px;
  color: rgba(216, 236, 255, 0.68);
  font-size: 11px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-recommend-card p::-webkit-scrollbar {
  width: 4px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-recommend-card p::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(58, 214, 255, 0.72);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-option {
  margin: 0;
  min-height: 0;
  padding: 11px 12px 12px;
  border: 1px solid rgba(54, 200, 255, 0.22);
  border-radius: 12px;
  background: rgba(3, 15, 39, 0.58);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-option-head {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  margin-bottom: 8px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-option-head b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #38ccff, #765dff);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 8px 18px rgba(54, 200, 255, 0.24);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-option-head h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #f2fbff;
  font-size: 13px;
  line-height: 1.48;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-brief {
  min-width: 0;
  display: grid;
  gap: 5px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-brief span,
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-detail strong {
  display: block;
  margin-bottom: 0;
  color: #78ddff;
  font-size: 11px;
  font-weight: 800;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-brief h3 {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-detail {
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(54, 200, 255, 0.16);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-detail p {
  max-height: 126px;
  margin: 5px 0 0;
  padding-right: 4px;
  overflow: auto;
  color: #c7def7;
  font-size: 12px;
  line-height: 1.64;
  scrollbar-width: thin;
  scrollbar-color: rgba(58, 214, 255, 0.7) rgba(6, 18, 44, 0.45);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-detail p::-webkit-scrollbar {
  width: 4px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-detail p::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(58, 214, 255, 0.72);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-actions {
  margin-top: 2px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-confirmed.pending {
  padding: 14px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-result h3,
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-confirmed h3 {
  color: #f2fbff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-result p,
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-confirmed p {
  color: #c7def7;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .confirm-head {
  color: #f2fbff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .confirm-head span {
  border: 1px solid rgba(54, 200, 255, 0.34);
  background: rgba(54, 200, 255, 0.12);
  color: #69ddff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .confirm-tip {
  border: 1px solid rgba(54, 200, 255, 0.24);
  background:
    radial-gradient(circle at 10% 0%, rgba(54, 200, 255, 0.14), transparent 40%),
    rgba(3, 17, 45, 0.72);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .confirm-tip b {
  background: linear-gradient(90deg, #36c8ff, #7c5cff);
  color: #ffffff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .confirm-generate-btn {
  border: 1px solid rgba(133, 211, 255, 0.42);
  background: linear-gradient(90deg, #36c8ff, #7c5cff);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(54, 200, 255, 0.24);
}

.inline-tool {
  float: right;
  color: #38d8ff;
  font-size: 12px;
  font-weight: 800;
}

.template-link-btn {
  justify-self: end;
  border: 0;
  background: transparent;
  color: #6a57ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.replica-count-group {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  color: #27365e;
  font-size: 13px;
  font-weight: 800;
}

.segmented-count {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.segmented-count label {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #d6e0ff;
  border-radius: 12px;
  background: #ffffff;
  color: #25365f;
  cursor: pointer;
}

.segmented-count input {
  width: auto;
  margin: 0 5px 0 0;
}

.replica-count-group em {
  color: #6f7da1;
  font-style: normal;
  font-weight: 700;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .inline-tool,
body:not(.doc-page):not(.admin-page):not(.login-page) .template-link-btn {
  color: #49ddff;
  text-shadow: 0 0 14px rgba(54, 200, 255, 0.36);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .replica-count-group {
  color: #dff5ff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .segmented-count label {
  border-color: rgba(54, 200, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(10, 39, 88, 0.92), rgba(3, 15, 40, 0.94));
  color: #dff5ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .segmented-count label:has(input:checked) {
  border-color: rgba(84, 219, 255, 0.88);
  background: linear-gradient(135deg, #36c8ff, #7c5cff);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(54, 200, 255, 0.22);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .replica-count-group em {
  color: #93eaff;
}

/* Distinct metric icons: task quota, edit quota, and points */
body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill i {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.95), transparent 16%),
    radial-gradient(circle at 72% 78%, rgba(120, 92, 255, 0.72), transparent 32%),
    linear-gradient(145deg, #65e7ff 0%, #2f9dff 42%, #285cff 70%, #09245f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 2px 2px 5px rgba(255, 255, 255, 0.18),
    inset -3px -5px 10px rgba(1, 13, 58, 0.48),
    0 2px 0 rgba(5, 23, 72, 0.9),
    0 9px 18px rgba(31, 134, 255, 0.34),
    0 0 18px rgba(44, 199, 255, 0.44);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill i {
  transform: perspective(40px) rotateX(4deg) rotateY(-6deg);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill i::before,
body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill i::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.tasks i::before {
  left: 8px;
  top: 6px;
  width: 9px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 4px rgba(1, 18, 66, 0.2);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.tasks i::after {
  left: 10px;
  top: 4px;
  width: 5px;
  height: 4px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow:
    0 7px 0 -1px rgba(255, 255, 255, 0.86),
    0 2px 5px rgba(1, 18, 66, 0.2);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.edits i::before {
  left: 6px;
  top: 12px;
  width: 13px;
  height: 4px;
  border-radius: 999px;
  background: #ffffff;
  transform: rotate(-38deg);
  box-shadow:
    -5px 4px 0 -2px rgba(255, 255, 255, 0.82),
    0 2px 5px rgba(1, 18, 66, 0.2);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.edits i::after {
  right: 5px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.points i::before {
  inset: 6px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.16),
    0 2px 5px rgba(1, 18, 66, 0.2);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.points i::after {
  left: 10px;
  top: 5px;
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  transform: rotate(28deg);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Final task rail icon system: ordered, semantic, and non-textual. */
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-rail {
  gap: 12px;
  padding: 14px 10px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-rail::before {
  left: 50%;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(57, 211, 255, 0.28), transparent);
  transform: translateX(-50%);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn {
  position: relative;
  width: 58px;
  min-height: 92px;
  padding: 8px 6px 10px;
  gap: 7px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(6, 25, 58, 0.94), rgba(3, 12, 32, 0.94));
  border-color: rgba(67, 185, 255, 0.22);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn::before {
  content: attr(data-order);
  position: absolute;
  top: 5px;
  left: 7px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 1px solid rgba(118, 224, 255, 0.5);
  background: rgba(4, 20, 48, 0.95);
  color: #9eefff;
  font-size: 9px;
  font-weight: 900;
  opacity: 1;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn[data-task-type="all"]::before { content: "0"; }
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn[data-task-type="main"]::before { content: "1"; }
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn[data-task-type="detail"]::before { content: "2"; }
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn[data-task-type="replica"]::before { content: "3"; }
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn[data-task-type="sku"]::before { content: "4"; }

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 1px;
  height: 9px;
  background: rgba(57, 211, 255, 0.26);
  transform: translateX(-50%);
  opacity: 1;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn:last-child::after {
  display: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn.active,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn:hover {
  border-color: rgba(69, 218, 255, 0.72);
  background:
    radial-gradient(circle at 50% 24%, rgba(55, 216, 255, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(7, 39, 78, 0.98), rgba(3, 16, 42, 0.98));
  box-shadow: 0 0 0 1px rgba(74, 218, 255, 0.12), 0 0 24px rgba(44, 199, 255, 0.28);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.3), transparent 22%),
    linear-gradient(145deg, rgba(39, 144, 235, 0.92), rgba(32, 74, 176, 0.86) 50%, rgba(7, 28, 75, 0.96));
  border: 1px solid rgba(118, 224, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -8px 18px rgba(0, 11, 52, 0.34),
    0 8px 16px rgba(0, 0, 0, 0.26),
    0 0 18px rgba(48, 200, 255, 0.16);
  color: #effcff;
  overflow: hidden;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn.active .task-mode-icon,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn:hover .task-mode-icon {
  border-color: rgba(110, 232, 255, 0.86);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(145deg, rgba(55, 205, 255, 0.98), rgba(71, 103, 242, 0.94) 56%, rgba(20, 50, 137, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -8px 18px rgba(0, 11, 52, 0.28),
    0 10px 22px rgba(22, 179, 255, 0.34),
    0 0 28px rgba(66, 216, 255, 0.22);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-icon::before,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn strong {
  color: #c8e7ff;
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: 0;
  text-shadow: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="all"] .task-mode-icon::before {
  left: 8px;
  top: 7px;
  width: 18px;
  height: 21px;
  border: 1.8px solid currentColor;
  border-radius: 4px 5px 5px 4px;
  background:
    linear-gradient(90deg, rgba(239, 252, 255, 0.22) 0 3px, transparent 3px),
    linear-gradient(145deg, rgba(239, 252, 255, 0.08), rgba(239, 252, 255, 0.02));
  box-shadow:
    inset 4px 0 0 rgba(239, 252, 255, 0.18),
    -3px 2px 0 -1px rgba(239, 252, 255, 0.58);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="all"] .task-mode-icon::after {
  left: 14px;
  top: 10px;
  width: 8px;
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 8px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 5px / 8px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 10px / 6px 1.5px no-repeat;
  opacity: 0.86;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="main"] .task-mode-icon::before {
  left: 8px;
  top: 8px;
  width: 18px;
  height: 17px;
  border: 1.9px solid currentColor;
  border-radius: 5px;
  background:
    radial-gradient(circle at 70% 30%, currentColor 0 2px, transparent 2.7px),
    linear-gradient(135deg, transparent 54%, rgba(239, 252, 255, 0.95) 55%) 2px 8px / 17px 9px no-repeat;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="main"] .task-mode-icon::after {
  left: 11px;
  bottom: 6px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(239, 252, 255, 0.78);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="detail"] .task-mode-icon::before {
  left: 8px;
  top: 7px;
  width: 18px;
  height: 21px;
  border: 1.8px solid currentColor;
  border-radius: 4px 5px 5px 4px;
  background:
    linear-gradient(90deg, rgba(239, 252, 255, 0.24) 0 3px, transparent 3px),
    linear-gradient(145deg, rgba(239, 252, 255, 0.09), rgba(239, 252, 255, 0.02));
  box-shadow:
    inset 4px 0 0 rgba(239, 252, 255, 0.18),
    -3px 2px 0 -1px rgba(239, 252, 255, 0.58);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="detail"] .task-mode-icon::after {
  left: 14px;
  top: 10px;
  width: 8px;
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 8px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 5px / 8px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 10px / 6px 1.5px no-repeat;
  opacity: 0.86;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="replica"] .task-mode-icon::before {
  left: 8px;
  top: 12px;
  width: 17px;
  height: 13px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
  background: rgba(239, 252, 255, 0.08);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="replica"] .task-mode-icon::after {
  left: 12px;
  top: 7px;
  width: 16px;
  height: 13px;
  border: 1.8px solid rgba(239, 252, 255, 0.72);
  border-radius: 4px;
  background: rgba(239, 252, 255, 0.06);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="sku"] .task-mode-icon::before {
  left: 8px;
  top: 8px;
  width: 7px;
  height: 7px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
  box-shadow:
    11px 0 0 -1.8px currentColor,
    0 11px 0 -1.8px currentColor,
    11px 11px 0 -1.8px rgba(239, 252, 255, 0.78);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="sku"] .task-mode-icon::after {
  left: 17px;
  top: 17px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -11px 0 0 currentColor, 0 -11px 0 currentColor, -11px -11px 0 currentColor;
}

/* Final task rail label layout: always two balanced lines. */
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn strong,
.task-mode-btn strong {
  display: grid;
  grid-template-rows: repeat(2, 1em);
  justify-items: center;
  align-items: center;
  width: 100%;
  min-height: 2.2em;
  color: inherit;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn strong span,
.task-mode-btn strong span {
  display: block;
  width: 100%;
  text-align: center;
}

/* Final sidebar polish: remove decorative bottom badge and keep task actions readable. */
body:not(.doc-page):not(.admin-page):not(.login-page) .task-sidebar::after {
  display: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .new-task-wrap {
  display: block;
  grid-row: 1;
  align-self: start;
  position: relative;
  z-index: 30;
  height: 42px;
  min-height: 42px;
  overflow: visible;
  pointer-events: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .new-task-wrap .new-task {
  display: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .new-task-menu {
  top: 50px;
  left: 0;
  width: 100%;
  pointer-events: auto;
  border: 1px solid rgba(76, 218, 255, 0.42);
  border-radius: 12px;
  background: rgba(4, 18, 44, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32), 0 0 24px rgba(44, 199, 255, 0.18);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .new-task-menu button {
  min-height: 38px;
  color: #daf7ff;
  background: rgba(13, 42, 88, 0.82);
  border: 1px solid rgba(76, 218, 255, 0.18);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .new-task-menu button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(44, 199, 255, 0.34), rgba(124, 92, 255, 0.32));
}

body:not(.doc-page):not(.admin-page):not(.login-page) .new-task-menu button[hidden] {
  display: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-card {
  grid-template-columns: 44px minmax(0, 1fr);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-card > div:not(.task-thumb):not(.task-actions):not(.task-menu) {
  display: block;
  min-width: 0;
  overflow: hidden;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-card strong {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-card span {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-card em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1;
}

/* Help center pages should feel like part of the same product, not standalone documents. */
body.doc-page,
body.case-page {
  color: #dff7ff !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(54, 200, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(124, 92, 255, 0.16), transparent 30%),
    linear-gradient(rgba(32, 128, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 128, 255, 0.08) 1px, transparent 1px),
    #061225 !important;
  background-size: auto, auto, 32px 32px, 32px 32px, auto !important;
}

body.doc-page::before,
body.case-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background:
    linear-gradient(120deg, transparent 0 62%, rgba(44, 199, 255, 0.12) 62% 63%, transparent 64%),
    radial-gradient(circle at 48% 48%, rgba(44, 199, 255, 0.1), transparent 30%);
}

.manual-sidebar,
.case-doc-sidebar {
  background: rgba(3, 15, 39, 0.9) !important;
  border-right: 1px solid rgba(44, 199, 255, 0.28) !important;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.manual-back,
.case-doc-back {
  color: #7beeff !important;
  background: rgba(13, 42, 88, 0.8);
  border: 1px solid rgba(76, 218, 255, 0.32);
}

.manual-nav a,
.case-doc-nav a,
.case-doc-title {
  color: #b9dbf4 !important;
}

.manual-nav a:hover,
.manual-nav a.active,
.case-doc-nav a:hover,
.case-doc-nav a.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(44, 199, 255, 0.22), rgba(124, 92, 255, 0.18));
  box-shadow: inset 0 0 0 1px rgba(76, 218, 255, 0.22);
}

.manual-content,
.case-doc-main {
  position: relative;
  z-index: 1;
}

.manual-section,
.case-doc-block,
.case-doc-header {
  color: #dff7ff !important;
}

.manual-section h1,
.manual-section h2,
.manual-section h3,
.case-doc-header h1,
.case-doc-block h2 {
  color: #ffffff !important;
}

.manual-section p,
.manual-section li,
.manual-lead,
.case-doc-lead,
.case-doc-header p,
.case-doc-header span {
  color: #b9d6ec !important;
}

.manual-note,
.manual-tip,
.manual-layout-demo div,
.case-doc-block,
.case-doc-header {
  border-color: rgba(76, 218, 255, 0.22) !important;
  background: rgba(5, 22, 54, 0.72) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.case-long-grid img {
  border: 1px solid rgba(76, 218, 255, 0.28);
  border-radius: 12px;
  background: rgba(5, 22, 54, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26), 0 0 24px rgba(44, 199, 255, 0.1);
}

/* Final task rail: match the tall neon line-icon reference. */
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-rail {
  gap: 28px;
  width: 78px;
  padding: 18px 8px;
  align-items: center;
  overflow: hidden;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-rail::before {
  left: 50%;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(54, 200, 255, 0.22), transparent);
  transform: translateX(-50%);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn {
  box-sizing: border-box;
  width: 60px;
  max-width: 60px;
  min-height: 118px;
  padding: 17px 7px 15px;
  gap: 13px;
  justify-items: center;
  align-items: center;
  text-align: center;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 9%, rgba(58, 214, 255, 0.09), transparent 36%),
    linear-gradient(180deg, rgba(8, 31, 67, 0.82), rgba(2, 12, 35, 0.9));
  border-color: rgba(76, 218, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -18px 28px rgba(0, 8, 31, 0.24),
    0 14px 26px rgba(0, 8, 30, 0.2);
  overflow: hidden;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn::before,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn::after {
  display: none;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn.active,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn:hover {
  min-height: 118px;
  padding: 17px 7px 15px;
  gap: 13px;
  border-color: rgba(76, 236, 255, 0.82);
  background:
    radial-gradient(circle at 50% 18%, rgba(54, 200, 255, 0.2), transparent 44%),
    linear-gradient(180deg, rgba(9, 43, 85, 0.94), rgba(3, 18, 49, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(107, 238, 255, 0.16),
    0 0 0 1px rgba(50, 178, 255, 0.12),
    0 0 28px rgba(44, 199, 255, 0.38);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #dffcff;
  filter:
    drop-shadow(0 0 4px rgba(185, 246, 255, 0.88))
    drop-shadow(0 0 12px rgba(47, 205, 255, 0.64));
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn strong {
  width: 100%;
  max-width: 44px;
  text-align: center;
  justify-self: center;
  color: #f5fbff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.12;
  text-shadow:
    0 0 8px rgba(179, 242, 255, 0.38),
    0 1px 0 rgba(0, 0, 0, 0.28);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn.active .task-mode-icon,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn:hover .task-mode-icon {
  width: 42px;
  height: 42px;
  color: #ffffff;
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.92))
    drop-shadow(0 0 15px rgba(52, 215, 255, 0.82));
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="all"] .task-mode-icon::before {
  left: 7px;
  top: 4px;
  width: 28px;
  height: 34px;
  border: 3px solid currentColor;
  border-radius: 10px;
  background:
    linear-gradient(225deg, transparent 0 7px, currentColor 7px 9px, transparent 9px);
  box-shadow: inset 0 0 13px rgba(91, 218, 255, 0.12);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="all"] .task-mode-icon::after {
  left: 15px;
  top: 14px;
  width: 14px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(currentColor, currentColor) 0 1px / 14px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 0 8px / 14px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 0 15px / 10px 3px no-repeat;
  box-shadow:
    -8px 0 0 -5px currentColor,
    -8px 7px 0 -5px currentColor,
    -8px 14px 0 -5px currentColor;
  opacity: 0.96;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="main"] .task-mode-icon::before {
  left: 5px;
  top: 8px;
  width: 32px;
  height: 26px;
  border: 3px solid currentColor;
  border-radius: 8px;
  background:
    radial-gradient(circle at 77% 27%, currentColor 0 3px, transparent 3.8px);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="main"] .task-mode-icon::after {
  display: block;
  left: 9px;
  top: 19px;
  width: 24px;
  height: 14px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  border-radius: 2px;
  transform: skewX(-16deg) rotate(0deg);
  clip-path: polygon(0 100%, 34% 42%, 53% 66%, 73% 20%, 100% 100%);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="detail"] .task-mode-icon::before {
  left: 8px;
  top: 4px;
  width: 27px;
  height: 34px;
  border: 3px solid currentColor;
  border-radius: 9px;
  background:
    linear-gradient(225deg, transparent 0 7px, currentColor 7px 9px, transparent 9px);
  box-shadow: inset 0 0 13px rgba(91, 218, 255, 0.12);
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="detail"] .task-mode-icon::after {
  display: block;
  left: 15px;
  top: 15px;
  width: 16px;
  height: 15px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 16px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 0 7px / 16px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 0 14px / 13px 3px no-repeat;
  opacity: 0.94;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="replica"] .task-mode-icon::before {
  left: 6px;
  top: 15px;
  width: 25px;
  height: 21px;
  border: 3px solid currentColor;
  border-radius: 8px;
  background: transparent;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="replica"] .task-mode-icon::after {
  left: 13px;
  top: 8px;
  width: 24px;
  height: 21px;
  border: 3px solid currentColor;
  border-radius: 8px;
  background: transparent;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="sku"] .task-mode-icon::before {
  left: 9px;
  top: 9px;
  width: 5px;
  height: 5px;
  border: 1.8px solid currentColor;
  border-radius: 2px;
  box-shadow:
    11px 0 0 -1.8px currentColor,
    0 11px 0 -1.8px currentColor,
    11px 11px 0 -1.8px currentColor;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="sku"] .task-mode-icon::after {
  display: none;
}

/* Compact plan cards: keep generated content, reduce empty vertical space. */
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-result {
  gap: 7px;
  padding: 10px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-hero {
  gap: 3px;
  padding: 8px 9px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-feature-grid {
  gap: 6px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-feature-grid article {
  padding: 7px 8px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-feature-grid article strong {
  margin-top: 2px;
  line-height: 1.32;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-demand-card,
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-recommend-card {
  padding: 8px 9px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-demand-card p,
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-recommend-card p {
  margin-top: 3px;
  margin-bottom: 0;
  line-height: 1.46;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-option {
  display: grid;
  gap: 6px;
  padding: 8px 9px 9px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-option-head {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 0;
  align-items: center;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-option-head b {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 12px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-brief {
  gap: 2px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-brief h3 {
  display: -webkit-box;
  max-height: 40px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.5;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-detail {
  margin-top: 0;
  padding-top: 7px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-detail p {
  max-height: 138px;
  margin-top: 4px;
  margin-bottom: 0;
  line-height: 1.52;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-actions {
  margin-top: 0;
  gap: 8px;
}

/* Final task-card type badge polish: subtle glass tag, aligned with the main app style. */
body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-type-badge {
  left: 62px;
  top: 13px;
  z-index: 3;
  width: auto;
  min-width: 18px;
  max-width: 28px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid rgba(112, 228, 255, 0.72);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(88, 184, 255, 0.82), rgba(87, 96, 255, 0.58)),
    rgba(8, 33, 70, 0.72);
  color: rgba(244, 252, 255, 0.96);
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  letter-spacing: 0;
  text-shadow: 0 1px 3px rgba(0, 16, 44, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -8px 14px rgba(23, 79, 190, 0.2),
    0 5px 14px rgba(37, 197, 255, 0.2);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-card-info {
  padding-top: 22px;
}

/* Compact recommendation block: remove empty hero-like spacing and keep reading flow dense. */
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-recommend-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 9px;
  padding: 10px 11px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-recommend-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 204, 255, 0.26), rgba(118, 93, 255, 0.32));
  color: #85eaff;
  font-size: 11px;
  line-height: 1;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-recommend-card strong {
  min-width: 0;
  margin: 0;
  color: #f4fbff;
  font-size: 13px;
  line-height: 1.35;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-recommend-card p {
  grid-column: 1 / -1;
  max-height: 102px;
  margin: 2px 0 0;
  padding-right: 4px;
  line-height: 1.52;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-recommend-card small {
  grid-column: 1 / -1;
  margin-top: 0;
  line-height: 1.35;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-actions {
  gap: 7px;
  margin-top: 1px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-actions button {
  height: 34px;
  border-radius: 10px;
  font-size: 14px;
}

/* Dense generated-plan cards: match the confirmed-plan reading rhythm. */
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-result {
  gap: 7px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-option {
  display: block;
  padding: 8px 10px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-option-head {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 0;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-brief {
  gap: 2px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-brief h3 {
  display: block;
  max-height: none;
  overflow: visible;
  color: #f4fbff;
  font-size: 12px;
  line-height: 1.46;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-detail {
  margin-top: 4px;
  padding-top: 5px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-detail strong {
  margin: 0 0 3px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-detail p {
  max-height: 118px;
  margin: 0;
  padding-right: 4px;
  line-height: 1.5;
}

/* Keep task type badge anchored to the thumbnail, not in front of the title. */
body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-type-badge {
  left: 8px;
  top: 9px;
  min-width: 18px;
  height: 18px;
  border-radius: 7px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-list .task-card-info {
  padding-top: 0;
}

/* Help menu: align with the main dark glass product style. */
body:not(.doc-page):not(.admin-page):not(.login-page) .help-menu {
  width: 186px;
  padding: 9px;
  border: 1px solid rgba(53, 204, 255, 0.46);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(59, 213, 255, 0.28), transparent 44%),
    radial-gradient(circle at 88% 70%, rgba(124, 92, 255, 0.16), transparent 40%),
    linear-gradient(145deg, rgba(5, 20, 52, 0.97), rgba(3, 13, 36, 0.94));
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(113, 232, 255, 0.09) inset,
    0 0 24px rgba(48, 205, 255, 0.16);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .help-menu::before {
  background: rgba(5, 20, 52, 0.97);
  border-left: 1px solid rgba(53, 204, 255, 0.46);
  border-top: 1px solid rgba(53, 204, 255, 0.46);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .help-menu::after {
  background: linear-gradient(135deg, rgba(42, 199, 255, 0.18), rgba(124, 92, 255, 0.12));
}

body:not(.doc-page):not(.admin-page):not(.login-page) .help-menu a {
  height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(72, 211, 255, 0.1);
  color: #d9f6ff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .help-menu a:first-child {
  background:
    linear-gradient(135deg, rgba(55, 204, 255, 0.22), rgba(124, 92, 255, 0.16)),
    rgba(11, 39, 84, 0.72);
  border-color: rgba(72, 211, 255, 0.26);
  color: #79e9ff;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .help-menu a:hover {
  background:
    linear-gradient(135deg, rgba(49, 204, 255, 0.3), rgba(124, 92, 255, 0.28)),
    rgba(12, 50, 102, 0.88);
  border-color: rgba(96, 227, 255, 0.38);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(39, 205, 255, 0.18);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .help-menu .book-icon {
  border: 1px solid rgba(91, 220, 255, 0.38);
  background:
    linear-gradient(145deg, rgba(69, 199, 255, 0.2), rgba(124, 92, 255, 0.16)),
    rgba(9, 38, 82, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 14px rgba(40, 200, 255, 0.12);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .help-menu .book-icon::before {
  background: rgba(41, 207, 255, 0.08);
  box-shadow: 2px 1px 0 rgba(117, 92, 255, 0.3);
}

/* Futuristic account metric icons: glass chip base with distinct symbols. */
body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill i {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(126, 236, 255, 0.58);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 22%),
    radial-gradient(circle at 68% 74%, rgba(130, 96, 255, 0.72), transparent 34%),
    linear-gradient(145deg, #45d9ff 0%, #2589ff 46%, #5964ff 72%, #071d54 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -8px 14px rgba(0, 17, 72, 0.42),
    0 0 0 1px rgba(55, 210, 255, 0.14),
    0 8px 18px rgba(32, 149, 255, 0.28),
    0 0 18px rgba(52, 214, 255, 0.36);
  transform: perspective(52px) rotateX(7deg) rotateY(-8deg);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill i::before,
body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill i::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill i::before {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.38));
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.tasks i::before {
  left: 8px;
  top: 6px;
  width: 10px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.tasks i::after {
  left: 11px;
  top: 9px;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 -4px 0 -1px rgba(255, 255, 255, 0.9);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.edits i::before {
  left: 6px;
  top: 12px;
  width: 15px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  transform: rotate(-39deg);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.edits i::after {
  left: 5px;
  top: 14px;
  width: 6px;
  height: 6px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transform: rotate(-39deg);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.points i::before {
  inset: 6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.28), transparent 35%),
    rgba(255, 255, 255, 0.08);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .metric-pill.points i::after {
  left: 12px;
  top: 5px;
  width: 3px;
  height: 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  transform: rotate(32deg);
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.42);
}

/* Hide bulk selection controls in the gallery header; individual image selection remains unchanged. */
body:not(.doc-page):not(.admin-page):not(.login-page) .gallery-head label:has(#selectAll),
body:not(.doc-page):not(.admin-page):not(.login-page) #selectedCount {
  display: none;
}

/* Compact AI plan summary only; do not affect plan options, recommendation, or confirm blocks. */
body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-summary {
  display: grid;
  gap: 5px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-summary .intake-plan-hero {
  gap: 1px;
  padding: 7px 8px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-summary .intake-plan-hero strong {
  font-size: 14px;
  line-height: 1.22;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-summary .intake-plan-hero p {
  line-height: 1.36;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-summary .intake-feature-grid {
  gap: 4px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-summary .intake-feature-grid article {
  min-height: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-summary .intake-feature-grid article span {
  font-size: 11px;
  line-height: 1.2;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-summary .intake-feature-grid article strong {
  margin-top: 0;
  font-size: 12px;
  line-height: 1.22;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-summary .intake-demand-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  padding: 7px 8px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-summary .intake-demand-card > span {
  font-size: 11px;
  line-height: 1.35;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .intake-plan-summary .intake-demand-card p {
  max-height: none;
  margin: 0;
  overflow: visible;
  line-height: 1.36;
}

/* Final compact pass for selectable plan cards: remove the boxy empty feel in the plan-picking state. */
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble .intake-plan-option {
  display: grid;
  gap: 6px;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(3, 15, 39, 0.48);
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble .intake-plan-option + .intake-plan-option {
  margin-top: 6px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble .intake-plan-option-head {
  min-height: 0;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 7px;
  margin: 0;
  align-items: start;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble .intake-plan-option-head b {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  font-size: 11px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble .intake-plan-brief {
  min-height: 0;
  gap: 1px;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble .intake-plan-brief span,
body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble .intake-plan-detail strong {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble .intake-plan-brief h3 {
  margin: 0;
  font-size: 12px;
  line-height: 1.38;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble .intake-plan-detail {
  display: grid;
  gap: 3px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-top: 0;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble .intake-plan-detail p {
  max-height: 108px;
  min-height: 0;
  margin: 0;
  padding: 0 4px 0 0;
  line-height: 1.45;
  overflow: auto;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .ai-intake-bubble .intake-plan-flow .intake-plan-detail {
  margin-left: 27px;
}

/* Exact-style task rail override: tall dark pills with pure neon outline icons. */
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-rail {
  width: 66px !important;
  gap: 14px !important;
  padding: 14px 6px !important;
  align-items: center !important;
  overflow: hidden !important;
  background:
    linear-gradient(180deg, rgba(8, 32, 69, 0.66), rgba(3, 15, 40, 0.86)) !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-rail::before {
  left: 50% !important;
  top: 30px !important;
  bottom: 30px !important;
  width: 1px !important;
  background: linear-gradient(180deg, transparent, rgba(54, 200, 255, 0.2), transparent) !important;
  transform: translateX(-50%) !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn {
  width: 52px !important;
  max-width: 52px !important;
  min-height: 96px !important;
  padding: 13px 6px 12px !important;
  gap: 10px !important;
  border: 1px solid rgba(60, 173, 255, 0.22) !important;
  border-radius: 26px !important;
  background:
    linear-gradient(180deg, rgba(8, 33, 70, 0.86), rgba(3, 14, 37, 0.95)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -20px 30px rgba(0, 7, 28, 0.28),
    0 12px 28px rgba(0, 7, 30, 0.24) !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn.active,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn:hover {
  min-height: 108px !important;
  padding: 15px 6px 13px !important;
  gap: 11px !important;
  border-color: rgba(75, 235, 255, 0.92) !important;
  background:
    linear-gradient(180deg, rgba(10, 43, 84, 0.92), rgba(3, 17, 45, 0.98)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(110, 239, 255, 0.16),
    inset 0 -24px 34px rgba(0, 8, 32, 0.24),
    0 0 0 1px rgba(48, 178, 255, 0.14),
    0 0 26px rgba(45, 211, 255, 0.36) !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn::before,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn::after {
  display: none !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-icon,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn.active .task-mode-icon,
body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn:hover .task-mode-icon {
  position: relative !important;
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  color: transparent !important;
  filter: none !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-icon::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 34px 34px !important;
  box-shadow: none !important;
  filter:
    drop-shadow(0 0 4px rgba(232, 252, 255, 0.95))
    drop-shadow(0 0 10px rgba(74, 220, 255, 0.76))
    drop-shadow(0 0 18px rgba(52, 178, 255, 0.42)) !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-icon::after {
  display: none !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="all"] .task-mode-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg width='46' height='46' viewBox='0 0 46 46' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 6.5h12.5L36 15v23.5H15a5 5 0 0 1-5-5v-22a5 5 0 0 1 5-5Z' stroke='%23dffcff' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M27.5 7v8.5H36' stroke='%23dffcff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='17' cy='20' r='1.7' fill='%23dffcff'/%3E%3Ccircle cx='17' cy='27' r='1.7' fill='%23dffcff'/%3E%3Ccircle cx='17' cy='34' r='1.7' fill='%23dffcff'/%3E%3Cpath d='M22 20h8.5M22 27h8.5M22 34h7' stroke='%23dffcff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="main"] .task-mode-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg width='46' height='46' viewBox='0 0 46 46' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='7.5' y='10.5' width='31' height='25' rx='5.5' stroke='%23dffcff' stroke-width='3'/%3E%3Ccircle cx='32' cy='17' r='3' stroke='%23dffcff' stroke-width='3'/%3E%3Cpath d='M10 32l10.2-10.2 7.2 7.2 4.2-4.2L38 31.2' stroke='%23dffcff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="detail"] .task-mode-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg width='46' height='46' viewBox='0 0 46 46' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 6.5h13L36 15v23.5H15a5 5 0 0 1-5-5v-22a5 5 0 0 1 5-5Z' stroke='%23dffcff' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M28 7v8h8' stroke='%23dffcff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17 21h13M17 28h13M17 35h10' stroke='%23dffcff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="replica"] .task-mode-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg width='46' height='46' viewBox='0 0 46 46' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='9' y='17' width='23' height='21' rx='5' stroke='%23dffcff' stroke-width='3'/%3E%3Cpath d='M16 10h16a5 5 0 0 1 5 5v15' stroke='%23dffcff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) [data-task-type="favorite"] .task-mode-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg width='46' height='46' viewBox='0 0 46 46' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M23 8.5l4.5 9.1 10 1.45-7.25 7.05 1.72 9.98L23 31.36l-8.97 4.72 1.72-9.98-7.25-7.05 10-1.45L23 8.5Z' stroke='%23dffcff' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M23 15.5l2.25 4.55 5.03.73-3.64 3.55.86 5.02L23 27l-4.5 2.35.86-5.02-3.64-3.55 5.03-.73L23 15.5Z' stroke='%23dffcff' stroke-width='2.2' stroke-linejoin='round' opacity='.62'/%3E%3C/svg%3E") !important;
}

body:not(.doc-page):not(.admin-page):not(.login-page) .task-mode-btn strong {
  display: grid !important;
  grid-template-rows: repeat(2, 1em) !important;
  justify-items: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 40px !important;
  min-height: 2em !important;
  color: #f5fbff !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.78),
    0 0 12px rgba(110, 226, 255, 0.56),
    0 1px 0 rgba(0, 0, 0, 0.28) !important;
  white-space: nowrap !important;
}
