/* Ms. Flora — independent brand studio. No external font requests. */
@font-face {
  font-family: "Flora Myanmar";
  src: url("/assets/fonts/NotoSansMyanmar-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Flora Myanmar";
  src: url("/assets/fonts/NotoSansMyanmar-Bold.ttf") format("truetype");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080f1b;
  --surface: #101a2a;
  --surface-raised: #142033;
  --surface-hover: #1b2a3d;
  --sidebar: #0c1421;
  --border: #253347;
  --border-soft: #1b293c;
  --text: #edf3fa;
  --muted: #9eafc3;
  --subtle: #6d829d;
  --aqua: #90e4d5;
  --lime: #c1ef88;
  --amber: #f4cd8e;
  --red: #f3a0a9;
  --radius: 16px;
  --shadow: 0 16px 44px rgba(0, 0, 0, .16);
  font-family: Arial, "Helvetica Neue", "Flora Myanmar", "Noto Sans Myanmar", "Myanmar Text", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: var(--aqua); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--aqua); outline-offset: 4px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.035em; line-height: 1.25; }
h1 { margin-bottom: 8px; font-size: clamp(27px, 2.7vw, 37px); }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin-bottom: 14px; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
button svg { width: 17px; height: 17px; }
.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; z-index: 30; display: flex; flex-direction: column; padding: 30px 20px 20px; background: var(--sidebar); border-right: 1px solid var(--border-soft); }
.sidebar > a:first-child, .sidebar > .brand, .sidebar > .logo, .sidebar .brand-lockup { display: flex; align-items: center; gap: 11px; margin: 0 9px 40px; text-decoration: none; color: var(--text); }
.logo-mark { position: relative; display: inline-grid; width: 38px; height: 38px; flex-shrink: 0; place-items: center; border-radius: 12px; background: var(--aqua); color: #102b2b; font-size: 23px; font-weight: 700; }
.wordmark { color: #f1f5f9; font-size: 22px; font-weight: 650; letter-spacing: -.055em; line-height: 1.1; }
.wordmark small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.wordmark-caption { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: .12em; white-space: nowrap; }
.workspace-label > span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .09em; }
.workspace-label { margin: 6px 13px 12px; color: var(--subtle); font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.nav-list { display: flex; flex-direction: column; gap: 5px; }
.nav-list button.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); text-align: left; font-size: 13px; font-weight: 500; transition: color .15s, background .15s; }
.nav-list button.nav-item:hover { background: #142233; color: #e8f0f8; }
.nav-list button.nav-item.active { border-color: #29483f; background: #17352f; color: #b8efd9; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 20px; opacity: .95; font-size: 16px; }
.nav-item .count, .nav-item .badge { margin-left: auto; padding: 0 6px; border-radius: 4px; background: rgba(255, 255, 255, .07); font-size: 10px; }
.sidebar-footer { margin-top: auto; padding: 24px 9px 0; }
.sidebar-footer > p { margin-bottom: 18px; color: var(--subtle); font-size: 11px; line-height: 1.6; }
.sidebar-footer .owner, .sidebar-footer .owner-profile, .sidebar-footer .profile { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); padding-top: 19px; }
.owner-avatar { display: inline-grid; width: 36px; height: 36px; flex-shrink: 0; place-items: center; border: 1px solid #3b4961; border-radius: 50%; background: #293850; color: #d9e7f7; font-size: 11px; font-weight: 600; }
.sidebar-footer strong { display: block; font-size: 12px; font-weight: 550; }
.sidebar-footer small { display: block; color: var(--muted); font-size: 10px; }
.sidebar-note { margin-bottom: 22px; color: #a1c5bc; font-size: 10px; }
.sidebar-note > .status-dot { margin-right: 5px; }
.sidebar-note p { margin: 9px 0 0; color: var(--subtle); font-size: 11px; line-height: 1.8; }
.owner-row { display: flex; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--border); }
.main-shell { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 38px; border-bottom: 1px solid var(--border-soft); background: rgba(8, 15, 27, .85); }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; color: var(--subtle); font-size: 12px; }
.breadcrumbs strong, .breadcrumbs .current { color: #c2d0e0; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.topbar-actions > span { color: var(--muted); font-size: 11px; }
.topbar-actions .small-avatar { width: 30px; height: 30px; font-size: 9px; }
.mobile-menu { display: none !important; }
main#content { width: 100%; max-width: 1660px; padding: 34px 38px 50px; margin: 0 auto; }
.workspace-footer { padding: 0 25px 24px; color: var(--subtle); font-size: 10px; text-align: center; }
.workspace-footer span { padding: 0 6px; }
.skip-link { position: fixed; z-index: 110; top: 10px; left: 10px; padding: 10px 16px; border-radius: 7px; background: var(--aqua); color: #102b2b; font-size: 12px; font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 7px; color: var(--aqua); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.subtitle { margin: 0; max-width: 730px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.heading-actions { display: flex; align-items: center; flex-shrink: 0; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface-raised); font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.button:hover { border-color: #4a6077; background: #203048; text-decoration: none; }
.button:active { transform: translateY(1px); }
.button.primary { border-color: var(--aqua); background: var(--aqua); color: #153732; }
.button.primary:hover { border-color: #b0f2e6; background: #b0f2e6; }
.button.secondary { background: #142033; }
.button.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button.ghost:hover { background: var(--surface-raised); color: var(--text); }
.button.danger { border-color: #663643; background: #32202d; color: #ffbdc6; }
.button.small { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.full-width { width: 100%; }
.icon-button { display: inline-grid; width: 36px; height: 36px; flex-shrink: 0; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted); }
.icon-button:hover { border-color: #50647d; background: var(--surface-raised); color: var(--text); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 19px; margin-bottom: 22px; }
.hero-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 246px; padding: 31px 33px; border: 1px solid #285354; border-radius: var(--radius); background: linear-gradient(113deg, #163b3c 0%, #143136 48%, #102531 100%); }
.hero-copy { position: relative; z-index: 2; width: 70%; max-width: 510px; }
.hero-kicker { display: flex; align-items: center; gap: 7px; margin: 0 0 13px; color: #a6d7c8; font-size: 10px; font-weight: 550; letter-spacing: .15em; text-transform: uppercase; }
.hero-title { margin: 0 0 11px; font-size: clamp(26px, 2.6vw, 35px); font-weight: 550; letter-spacing: -.045em; line-height: 1.17; }
.hero-copy > p:not(.hero-kicker):not(.hero-footnote) { max-width: 350px; color: #b4cece; font-size: 12px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.hero-footnote { margin: 13px 0 0; color: #a3c1c0; font-size: 10px; }
.hero-art { position: absolute; z-index: 1; width: 260px; height: 260px; right: -8px; top: 50%; transform: translateY(-50%); border: 1px solid rgba(159, 221, 201, .13); border-radius: 50%; background: radial-gradient(ellipse at 47% 51%, rgba(160, 235, 199, .18), transparent 61%); }
.flora-orbit { position: absolute; inset: 24px; border: 1px solid rgba(159, 221, 201, .22); border-radius: 50%; }
.orbit-one { transform: rotate(-28deg) scaleX(.67); }
.orbit-two { transform: rotate(40deg) scaleX(.67); }
.orbit-three { inset: 48px; opacity: .4; }
.flora-bloom { position: absolute; inset: 18px; display: grid; place-items: center; color: #b9ebba; font-size: 145px; line-height: 1; font-weight: 300; text-shadow: 0 0 35px rgba(193, 239, 136, .13); transform: rotate(-12deg); }
.orbit-label { position: absolute; z-index: 2; padding: 4px 9px; border: 1px solid #45685e; border-radius: 5px; background: #193c36; color: #c4dcd1; font-size: 8px; letter-spacing: .03em; }
.label-one { top: 32px; right: 30px; }
.label-two { bottom: 33px; left: 18px; }
.orbit-point { position: absolute; width: 6px; height: 6px; top: 45px; left: 65px; border-radius: 50%; background: var(--lime); box-shadow: 137px 148px 0 -1px var(--aqua); }
.hero-art .orbit { position: absolute; inset: 44px 10px; border: 1px solid rgba(159, 221, 201, .28); border-radius: 50%; transform: rotate(36deg); }
.hero-art .spark { position: absolute; width: 6px; height: 6px; top: 45px; left: 75px; border-radius: 50%; background: var(--lime); box-shadow: 112px 142px 0 -1px var(--aqua); }
.status-card { display: flex; flex-direction: column; padding: 23px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.status-card h3 { margin-bottom: 6px; font-size: 15px; }
.status-card > p { color: var(--muted); font-size: 11px; }
.status-card > .panel-header { padding: 0; margin-bottom: 8px; }
.status-card > .panel-header h3 { margin-bottom: 0; }
.status-card > .status-row { justify-content: flex-start; gap: 11px; border-bottom: 0; padding: 8px 0; }
.status-card > .status-row:last-of-type { margin-bottom: 15px; }
.step-number { display: inline-grid; place-items: center; width: 25px; height: 25px; flex-shrink: 0; border: 1px solid #394c62; border-radius: 50%; background: #172438; color: #9ab1c9; font-size: 10px; }
.status-row > span.step-number { display: inline-grid; }
.step-number.complete { border-color: #3a6b56; background: #193e32; color: #b7e7c3; }
.step-number svg { width: 13px; height: 13px; }
.status-row strong { display: block; color: #d3dfec; font-size: 12px; font-weight: 500; }
.status-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.muted-text { color: var(--muted); font-size: 12px; line-height: 1.85; }
.status-card .button { margin-top: auto; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); color: #c8d5e4; font-size: 11px; }
.status-row:last-of-type { margin-bottom: 15px; border-bottom: 0; }
.status-row > span:first-child { display: flex; align-items: center; gap: 7px; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--aqua); }
.status-dot.amber { background: var(--amber); }
.status-dot.muted { background: var(--subtle); }
.pill { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 3px 7px; border: 1px solid #33465a; border-radius: 5px; color: #bdd1e3; background: #1c2d40; font-size: 9px; font-weight: 550; line-height: 1.6; white-space: nowrap; }
.pill.green { border-color: #2a5549; background: #19382f; color: #ade4c9; }
.pill.amber { border-color: #574a33; background: #322e24; color: #e9c592; }
.pill.blue { border-color: #304b67; background: #1b3046; color: #abcfea; }
.pill.muted { border-color: #364151; background: #202b3b; color: #a8b8cb; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.stat-card { position: relative; padding: 20px 23px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: var(--muted); font-size: 11px; }
.stat-label svg { width: 16px; height: 16px; color: var(--subtle); }
.stat-value { font-size: 29px; font-weight: 550; letter-spacing: -.04em; line-height: 1.3; }
.stat-card > .stat-value, .stat-card > .stat-meta { display: block; }
.stat-value > span { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.stat-value small { margin-left: 4px; color: var(--muted); font-size: 13px; font-weight: 400; }
.stat-meta { margin-top: 6px; color: var(--subtle); font-size: 10px; }
.stat-meta .positive { color: var(--aqua); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 15px; }
.section-heading h2 { margin: 0; font-size: 18px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.section-actions { display: flex; align-items: center; gap: 8px; }
.brands-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 28px; }
.brand-card { --brand-color: #80c1e7; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color .15s, transform .15s; }
.brand-card:hover { border-color: #4a6178; transform: translateY(-2px); }
.brand-art { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: center; height: 116px; background: radial-gradient(ellipse at 65% 100%, color-mix(in srgb, var(--brand-color) 21%, transparent), transparent 78%), #0f1c2d; border-bottom: 1px solid var(--border); }
.brand-art::before { content: ""; position: absolute; z-index: -1; inset: -60px; border: 1px solid color-mix(in srgb, var(--brand-color) 21%, transparent); border-radius: 50%; transform: rotate(-26deg) scaleY(.45); box-shadow: 0 0 0 32px color-mix(in srgb, var(--brand-color) 4%, transparent), 0 0 0 64px color-mix(in srgb, var(--brand-color) 3%, transparent); }
.brand-art::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .12; background-image: linear-gradient(color-mix(in srgb, var(--brand-color) 50%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--brand-color) 50%, transparent) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(transparent, #000); }
.brand-art .pill { position: absolute; top: 10px; right: 10px; }
.brand-monogram { color: var(--brand-color); font-size: 25px; font-weight: 650; letter-spacing: -.06em; text-shadow: 0 1px 20px color-mix(in srgb, var(--brand-color) 20%, transparent); }
.brand-card-body { padding: 16px 17px 12px; }
.brand-title { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin: 0 0 5px; font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.brand-title h3 { margin: 0; font-size: inherit; letter-spacing: inherit; }
.brand-dot { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; }
.brand-art { flex-direction: column; gap: 4px; }
.brand-art-label { color: color-mix(in srgb, var(--brand-color) 65%, #fff); font-size: 9px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.brand-description { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; min-height: 51px; margin: 0 0 13px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.brand-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 11px; border-top: 1px solid var(--border-soft); color: var(--subtle); font-size: 10px; }
.brand-footer .button { padding-left: 0; padding-right: 0; color: #c6d7e7; font-size: 10px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-bottom: 24px; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 20px 23px 15px; }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 15px; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 0 23px 23px; }
.panel-body > p { color: var(--muted); font-size: 12px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 200px; padding: 30px 24px; text-align: center; }
.empty-state h3 { margin: 7px 0 3px; font-size: 15px; }
.empty-state p { max-width: 410px; margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.empty-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 5px; border: 1px solid #324358; border-radius: 12px; background: #192739; color: #96b0cc; font-size: 22px; }
.activity-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.activity-item { display: flex; align-items: flex-start; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--border-soft); font-size: 12px; }
.activity-item:last-child { border-bottom: 0; }
.activity-item .status-dot { margin-top: 7px; }
.activity-item strong { font-weight: 500; }
.activity-item p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.activity-item time, .activity-item small { margin-left: auto; color: var(--subtle); font-size: 10px; white-space: nowrap; }
.progress-track { overflow: hidden; height: 7px; border-radius: 20px; background: #253246; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: var(--aqua); transition: width .25s; }
.budget-legend { display: flex; flex-wrap: wrap; gap: 13px; margin: 12px 0 18px; color: var(--muted); font-size: 10px; }
.budget-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }
.budget-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 22px; margin: 0 0 24px; }
.budget-number { font-size: 31px; font-weight: 550; letter-spacing: -.05em; }
.budget-number > span { color: var(--muted); font-size: 16px; font-weight: 400; }
.budget-legend > span { flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; }
.budget-legend strong { color: #d0ddeb; font-size: 12px; font-weight: 500; }
.progress-fill.over-budget { background: var(--red); }
.budget-number small { color: var(--muted); font-size: 14px; font-weight: 400; }
.budget-split > span { color: var(--muted); font-size: 11px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.calendar-toolbar > div { display: flex; align-items: center; gap: 9px; }
.calendar-toolbar h2 { margin: 0; font-size: 17px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--border); }
.calendar-day { min-height: 245px; padding: 13px 10px; background: var(--surface); }
.calendar-day-header { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-bottom: 10px; color: var(--muted); font-size: 10px; }
.calendar-day-header strong { color: #dce5f0; font-size: 17px; font-weight: 500; }
.calendar-language { display: block; margin-bottom: 12px; color: #8ac8bb; font-size: 9px; }
.calendar-post { width: 100%; margin-bottom: 8px; padding: 8px; border: 1px solid #35495c; border-left: 2px solid var(--brand-color, var(--aqua)); border-radius: 6px; background: #1b293a; color: var(--text); text-align: left; font-size: 10px; }
.calendar-post:hover { background: #25364b; }
.calendar-post strong { display: block; margin-bottom: 4px; font-size: 10px; }
.calendar-post span { display: block; color: var(--muted); font-size: 9px; }
.calendar-post > small { display: block; color: var(--muted); font-size: 9px; }
.calendar-post > .pill { display: inline-flex; margin-top: 6px; font-size: 8px; }
.calendar-empty { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; padding: 22px 2px; border: 1px dashed #314258; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; text-align: center; }
.calendar-empty svg { width: 13px; height: 13px; }
.calendar-empty:hover { border-color: #57788c; background: #17273a; color: var(--aqua); }
.calendar-day.is-today { background: #152638; }
.calendar-grid + .info-banner { margin-top: 22px; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.filter-row .search-input { flex: 1; min-width: 180px; }
.filter-row .select { width: auto; min-width: 150px; }
.tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; border: 1px solid var(--border); border-radius: 9px; background: #0d1624; overflow-x: auto; }
.tab { min-height: 32px; padding: 5px 13px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; white-space: nowrap; }
.tab.active { background: #233348; color: #e5eef8; box-shadow: 0 2px 5px #0002; }
.tab:hover { color: var(--text); }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.knowledge-card { display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.knowledge-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; color: var(--aqua); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.knowledge-card h3 { margin-bottom: 10px; font-size: 16px; }
.knowledge-content { flex: 1; color: var(--muted); font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.knowledge-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--border-soft); color: var(--subtle); font-size: 10px; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.media-card { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.media-preview { display: grid; place-items: center; aspect-ratio: 1.25; overflow: hidden; background: #172336; }
.media-preview img { width: 100%; height: 100%; object-fit: contain; }
.media-meta { padding: 13px 15px; }
.media-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.media-meta small { display: block; color: var(--muted); font-size: 10px; }
.upload-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 176px; gap: 8px; padding: 28px; margin-bottom: 24px; border: 1px dashed #49617b; border-radius: 12px; background: #101c2b; color: #c2d4e6; text-align: center; cursor: pointer; }
.upload-zone:hover, .upload-zone.dragover, .upload-zone.is-dragover { border-color: var(--aqua); background: #142b32; }
.upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-zone:focus-within { outline: 2px solid var(--aqua); outline-offset: 4px; }
.upload-zone small, .upload-zone p { max-width: 500px; margin: 0; color: var(--muted); font-size: 11px; }
.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.integration-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 23px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.integration-card > h3 { margin: 0; }
.integration-card > p { margin: 0; color: var(--muted); font-size: 12px; }
.integration-card > .button { margin-top: auto; }
.integration-grid + .panel { margin-top: 24px; }
.integration-icon { display: grid; width: 44px; height: 44px; flex-shrink: 0; place-items: center; border: 1px solid #324a63; border-radius: 11px; background: #20354a; color: #b9d6ef; font-size: 20px; font-weight: 600; }
.integration-details { min-width: 0; flex: 1; }
.integration-details h3 { margin: 0 0 6px; font-size: 15px; }
.integration-details p { margin-bottom: 15px; color: var(--muted); font-size: 12px; }
.integration-details .pill { margin-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: flex; flex-direction: column; min-width: 0; gap: 7px; margin-bottom: 17px; }
.form-grid .form-field { margin-bottom: 0; }
.form-grid + .form-field, .form-help + .form-grid { margin-top: 18px; }
.upload-button:focus-within { outline: 2px solid var(--aqua); outline-offset: 4px; }
.form-field.full, .form-field.full-width { grid-column: 1 / -1; }
label { color: #c4d3e3; font-size: 12px; font-weight: 500; }
input, textarea, select, .select, .search-input { width: 100%; min-height: 40px; padding: 10px 12px; border: 1px solid #34445a; border-radius: 8px; background: #0d1726; color: #e6eef8; font-size: 12px; outline: none; transition: border-color .15s; }
input:hover, textarea:hover, select:hover { border-color: #52667f; }
input:focus, textarea:focus, select:focus { border-color: var(--aqua); }
input::placeholder, textarea::placeholder { color: #778ba4; }
input[type="checkbox"], input[type="radio"] { width: 16px; min-height: 16px; margin: 0; accent-color: var(--aqua); }
input[type="range"] { padding: 0; accent-color: var(--aqua); }
input[type="color"] { min-height: 43px; padding: 4px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.9; }
select { padding-right: 26px; }
.form-help { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.brand-detail-hero { --brand-color: var(--aqua); display: flex; align-items: center; gap: 22px; margin-bottom: 24px; padding: 27px; border: 1px solid color-mix(in srgb, var(--brand-color) 30%, #172437); border-radius: var(--radius); background: linear-gradient(115deg, color-mix(in srgb, var(--brand-color) 11%, #101a2a), #101a2a); }
.brand-detail-hero .brand-monogram { display: grid; width: 84px; height: 84px; flex-shrink: 0; place-items: center; border: 1px solid color-mix(in srgb, var(--brand-color) 25%, transparent); border-radius: 16px; background: #101a2a; font-size: 30px; }
.brand-detail-hero h2 { margin: 0 0 6px; }
.brand-detail-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.draft-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: 25px; }
.draft-editor { padding: 25px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.draft-editor h2 { margin-bottom: 23px; font-size: 17px; }
.post-preview { overflow: hidden; border: 1px solid #34445a; border-radius: 12px; background: #142033; }
.post-preview-header { display: flex; align-items: center; gap: 10px; padding: 17px; border-bottom: 1px solid var(--border); font-size: 12px; }
.post-preview-header .owner-avatar { width: 34px; height: 34px; }
.post-preview-header strong { font-weight: 550; }
.post-preview-header small { display: block; color: var(--muted); font-size: 10px; }
.post-preview-image { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 12px; width: 100%; aspect-ratio: 4 / 5; padding: 25px; overflow: hidden; background: radial-gradient(ellipse at 50% 95%, color-mix(in srgb, var(--brand-color, #80c8ff) 18%, transparent), transparent 70%), linear-gradient(130deg, #15283f, #142234); color: #a9c6d9; text-align: left; }
.post-preview-image.story-preview { aspect-ratio: 9 / 16; }
.post-preview-image > span { color: var(--brand-color, var(--aqua)); font-size: 10px; font-weight: 550; letter-spacing: .03em; }
.post-preview-image > h3 { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin: 0; color: #eef5fc; font-size: 21px; line-height: 1.55; overflow-wrap: anywhere; }
.post-preview-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.post-preview-image > .photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 0; color: #83a5bf; }
.photo-placeholder svg { width: 42px; height: 42px; }
.post-preview-image > small { padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--brand-color, var(--aqua)) 60%, transparent); color: #d4e4f0; }
.post-preview-image strong { display: block; color: #e9f2fa; font-size: 25px; line-height: 1.3; }
.post-preview-image small { display: block; margin-top: 10px; font-size: 10px; }
.post-preview-caption { padding: 18px; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-preview-caption:last-child { margin-bottom: 0; }
.post-preview + .form-help { margin-top: 13px; }
.info-banner, .warning-banner { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; margin: 0 0 22px; border: 1px solid #2d4a5c; border-radius: 9px; background: #122936; color: #adcbdc; font-size: 11px; line-height: 1.8; }
.warning-banner { border-color: #5c503b; background: #2b281f; color: #dec89f; }
.info-banner p, .warning-banner p { margin: 0; }
.info-banner svg, .warning-banner svg { margin-top: 3px; }
dialog.modal { position: fixed; width: min(660px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; overflow-y: auto; border: 1px solid #3c506a; border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 25px 100px #0008; }
dialog.modal::backdrop { background: rgba(3, 9, 18, .8); backdrop-filter: blur(5px); }
dialog.wide-modal { width: min(1000px, calc(100vw - 32px)); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 24px 26px 20px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-size: 21px; }
.modal-close { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 23px; }
.modal-close:hover { background: var(--surface-hover); color: var(--text); }
.modal-body { padding: 24px 26px; }
.modal-body > p { color: var(--muted); font-size: 12px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 18px 26px; border-top: 1px solid var(--border); background: #0e1827; }
#toast.toast { position: fixed; z-index: 100; right: 28px; bottom: 26px; max-width: min(420px, calc(100vw - 32px)); padding: 14px 19px; border: 1px solid #3a6b5c; border-radius: 10px; background: #19392e; color: #d5efdf; box-shadow: 0 10px 40px #0005; font-size: 12px; opacity: 0; transform: translateY(15px); pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.toast.visible { opacity: 1; transform: translateY(0); }
.mobile-overlay { display: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.data-table th { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--subtle); font-size: 10px; font-weight: 500; }
.data-table td { padding: 15px 16px; border-bottom: 1px solid var(--border-soft); color: #c5d3e2; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #162337; }
.settings-list { display: flex; flex-direction: column; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 19px 0; border-bottom: 1px solid var(--border-soft); }
.settings-row:last-child { border-bottom: 0; }
.settings-row strong { display: block; font-size: 12px; font-weight: 550; }
.settings-row p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.settings-row > input:not([type="checkbox"]), .settings-row > select { max-width: 200px; flex-shrink: 0; }
.profile-list { display: flex; flex-direction: column; }
.profile-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.panel > .profile-list { padding: 0 23px 15px; }
button.profile-item { width: 100%; border: 0; border-bottom: 1px solid var(--border-soft); background: transparent; color: var(--text); text-align: left; }
button.profile-item:hover { background: #17283b; }
.profile-item > .button { margin-left: auto; }
.profile-item > div, .profile-item > span:not(.owner-avatar):not(.pill) { min-width: 0; }
.profile-item strong { overflow-wrap: anywhere; }
.brand-quote { margin: 3px 0 15px; padding: 6px 0 6px 15px; border-left: 2px solid var(--aqua); color: #d2e4df; font-size: 16px; font-weight: 400; line-height: 2; }
.profile-item:last-child { border-bottom: 0; }
.profile-item strong { display: block; font-size: 12px; font-weight: 550; }
.profile-item small { display: block; color: var(--muted); font-size: 10px; }
.profile-item .pill { margin-left: auto; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tag { display: inline-block; padding: 3px 7px; border: 1px solid #344457; border-radius: 5px; background: #19283b; color: #adc1d5; font-size: 10px; }
.attachment-label { color: #b4d8d1; font-size: 11px; }
.connection-note { margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.divider { height: 1px; margin: 22px 0; background: var(--border); border: 0; }

@media (min-width: 1700px) {
  main#content { padding-top: 45px; }
  .hero-card { min-height: 280px; }
  .hero-art { right: 35px; }
  .brand-art { height: 140px; }
}
@media (max-width: 1250px) {
  .app-shell { grid-template-columns: 216px minmax(0, 1fr); }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .topbar { padding-left: 25px; padding-right: 25px; }
  main#content { padding-left: 25px; padding-right: 25px; }
  .hero-grid { grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); }
  .hero-card { padding: 27px; }
  .hero-art { right: -70px; opacity: .75; }
  .hero-copy { width: 82%; }
  .brands-grid { gap: 12px; }
  .brand-card-body { padding-left: 12px; padding-right: 12px; }
  .brand-title { font-size: 12px; }
  .brand-description { min-height: 52px; }
  .brand-footer { flex-wrap: wrap; gap: 0; }
  .stat-card { padding: 17px; }
  .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-card { min-height: 244px; }
  .hero-art { right: 12px; opacity: 1; }
  .hero-copy { width: 68%; }
  .status-card { display: flex; }
  .status-card .button { margin-top: 10px; }
  .brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .brand-title { font-size: 14px; }
  .brand-description { min-height: 34px; }
  .brand-card-body { padding: 17px; }
  .brand-footer { flex-wrap: nowrap; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 15px 12px; }
  .stat-value { font-size: 25px; }
  .stat-label { font-size: 10px; }
  .two-column { grid-template-columns: 1fr; }
  .budget-split { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .calendar-day { min-height: 205px; }
  .draft-layout { grid-template-columns: 1fr; }
  .post-preview { max-width: 490px; }
  .integration-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 246px; height: 100dvh; transform: translateX(-100%); transition: transform .2s; box-shadow: 12px 0 44px #0005; }
  .sidebar.open, .sidebar.is-open, .app-shell.sidebar-open .sidebar, body.sidebar-open .sidebar { transform: translateX(0); }
  .mobile-overlay:not([hidden]), .mobile-overlay.open, .app-shell.sidebar-open .mobile-overlay, body.sidebar-open .mobile-overlay { display: block; position: fixed; z-index: 25; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #020810b8; backdrop-filter: blur(2px); }
  .mobile-menu { display: inline-grid !important; }
  .topbar { gap: 12px; min-height: 66px; padding: 0 20px; }
  .breadcrumbs { margin-right: auto; font-size: 11px; }
  .topbar-actions { gap: 10px; }
  .topbar-actions .timezone-label { display: none; }
  main#content { padding: 27px 20px 36px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 15px; margin-bottom: 23px; }
  .page-heading .heading-actions { width: 100%; }
  h1 { font-size: 29px; }
  .hero-title { font-size: 31px; }
  .hero-art { right: -3px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat-card { padding: 18px; }
  .stat-value { font-size: 28px; }
  .stat-label { font-size: 11px; }
  .calendar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calendar-toolbar { flex-wrap: wrap; }
  .calendar-day { min-height: 190px; }
  .filter-row { align-items: stretch; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-detail-hero { align-items: flex-start; padding: 22px; }
  .brand-detail-hero .brand-monogram { width: 64px; height: 64px; font-size: 23px; }
  .settings-row { gap: 15px; }
}
@media (max-width: 480px) {
  :root { font-size: 13px; }
  .topbar { padding: 0 15px; }
  .topbar .breadcrumbs > span:first-child { display: none; }
  .topbar-actions .pill { font-size: 8px; padding: 3px 5px; }
  .topbar-actions .icon-button { width: 31px; height: 31px; }
  main#content { padding: 23px 15px 32px; }
  h1 { font-size: 27px; }
  .subtitle { font-size: 12px; }
  .heading-actions { flex-wrap: wrap; }
  .hero-card { min-height: 275px; padding: 24px; }
  .hero-copy { width: 100%; }
  .hero-title { max-width: 245px; font-size: 31px; }
  .hero-copy > p:not(.hero-kicker):not(.hero-footnote) { max-width: 250px; }
  .hero-art { right: -112px; top: 60%; opacity: .35; }
  .hero-actions { gap: 6px; }
  .hero-actions .button { padding: 8px 11px; font-size: 11px; }
  .status-card { display: flex; padding: 20px; }
  .status-card .status-row { width: 100%; }
  .status-card > h3, .status-card > p { align-self: flex-start; }
  .status-card .button { width: 100%; margin-top: 15px; }
  .stat-card { padding: 15px; }
  .stat-label { font-size: 10px; }
  .stat-meta { font-size: 9px; }
  .brands-grid { grid-template-columns: 1fr; gap: 15px; }
  .brand-art { height: 128px; }
  .brand-card-body { padding: 17px 20px; }
  .brand-description { min-height: unset; font-size: 11px; }
  .brand-title { font-size: 16px; }
  .brand-monogram { font-size: 29px; }
  .brand-footer { font-size: 11px; }
  .brand-footer .button { font-size: 11px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading .button { font-size: 10px; padding: 6px 7px; }
  .panel-header { padding: 19px 18px 14px; }
  .panel-body { padding: 0 18px 20px; }
  .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-day { min-height: 190px; }
  .calendar-day-header { font-size: 11px; }
  .calendar-language, .calendar-post, .calendar-post strong { font-size: 10px; }
  .filter-row .select { flex: 1; min-width: 120px; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .media-grid { gap: 10px; }
  .media-meta { padding: 11px; }
  .media-meta strong { font-size: 10px; }
  .integration-card { padding: 18px; gap: 12px; }
  .integration-icon { width: 37px; height: 37px; border-radius: 9px; font-size: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full, .form-field.full-width { grid-column: auto; }
  .brand-detail-hero { flex-direction: column; gap: 15px; }
  .draft-editor { padding: 19px; }
  .draft-layout { gap: 22px; }
  .draft-layout .draft-editor { padding: 0; border: 0; border-radius: 0; }
  .form-actions { flex-wrap: wrap; }
  .profile-item { gap: 9px; }
  .profile-item > .button { font-size: 9px; white-space: nowrap; }
  .profile-item .pill { font-size: 8px; }
  .panel > .profile-list { padding-left: 18px; padding-right: 18px; }
  .settings-row { align-items: flex-start; flex-wrap: wrap; }
  .settings-row > input:not([type="checkbox"]), .settings-row > select { max-width: none; }
  dialog.modal { max-height: calc(100dvh - 24px); width: calc(100vw - 24px); }
  .modal-header, .modal-body { padding: 21px; }
  .modal-footer { padding: 16px 21px; }
  #toast.toast { right: 16px; bottom: 16px; }
  .activity-item { gap: 8px; }
  .activity-item time { font-size: 9px; }
  .workspace-footer { padding-left: 20px; padding-right: 20px; font-size: 9px; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Hosted application extensions */
[hidden] { display: none !important; }
.sidebar { overflow-y: auto; }
.sidebar > a:first-child { margin-bottom: 22px; }
.nav-list .nav-link { display:flex; align-items:center; gap:12px; width:100%; padding:10px 12px; border:1px solid transparent; border-radius:8px; background:transparent; color:var(--muted); text-align:left; font-size:12px; }
.nav-list .nav-link:hover { color:var(--text); background:#142233; }
.nav-list .nav-link.active { color:#b8efd9; background:#17352f; border-color:#29483f; }
.nav-symbol { display:inline-grid; place-items:center; width:19px; font-size:18px; }
.page-heading > div > p { max-width:720px; margin:0; color:var(--muted); }
.hero-panel { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(180px,.7fr); align-items:center; gap:30px; padding:36px; margin-bottom:24px; border:1px solid #285354; border-radius:16px; background:linear-gradient(120deg,#15393e,#102331); }
.hero-panel h2 { margin:8px 0 14px; font-size:clamp(28px,3vw,44px); line-height:1.2; letter-spacing:-.045em; }
.hero-panel p { max-width:600px; color:#b1c7ce; }
.hero-panel .form-actions { justify-content:flex-start; flex-wrap:wrap; }
.hero-panel .hero-art { position:static; display:flex; flex-direction:column; align-items:center; justify-content:center; transform:none; width:auto; height:auto; min-height:190px; border:0; background:none; }
.hero-panel .hero-art img { width:145px; height:145px; }
.hero-panel .hero-art span { margin-top:20px; font-size:11px; color:#b1d9cb; text-align:center; }
.stat-card > span,.stat-card > strong,.stat-card > small { display:block; }
.stat-card > strong { margin:5px 0; font-size:28px; font-weight:550; letter-spacing:-.03em; }
.stat-card > span,.stat-card > small { color:var(--muted); font-size:11px; }
.panel { margin-bottom:22px; }
.panel-body:first-child { padding-top:23px; }
.brand-grid,.notes-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:20px 0; }
.brand-card,.note-card { padding:24px; min-width:0; }
.brand-card h2 { margin-top:20px; font-size:22px; }
.brand-card p,.note-card p { color:var(--muted); font-size:13px; }
.brand-card-top { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.brand-monogram { display:grid; place-items:center; width:46px; height:46px; border:1px solid var(--border); border-radius:12px; background:#0c1423; font-size:19px; }
.brand-meta { color:var(--subtle); font-size:12px; }
.note-card { border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.note-card .prewrap { max-height:260px; overflow:auto; }
.photo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.photo-card { overflow:hidden; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.photo-card > img { display:block; width:100%; aspect-ratio:1; object-fit:contain; background:#0e1826; }
.photo-card > div { padding:18px; }
.photo-card strong,.photo-card small { display:block; overflow-wrap:anywhere; }
.photo-card small { color:var(--muted); }
.toolbar { display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between; margin-bottom:20px; }
.toolbar .form-actions { margin:0; flex-wrap:wrap; }
.filter-label { display:block; max-width:300px; margin-bottom:15px; }
.filter-label select { margin-top:5px; }
.calendar-day h3 { font-size:11px; }
.calendar-post { padding:10px; }
.calendar-post strong { font-size:12px; }
.calendar-post small,.calendar-post span { font-size:10px; }
.form-actions { flex-wrap:wrap; }
.form-grid { margin-bottom:18px; }
.check-row { display:flex; align-items:flex-start; gap:10px; margin:13px 0; line-height:1.5; }
.check-row input { flex-shrink:0; margin-top:2px; }
.model-row { min-width:0; margin:20px 0; padding:20px; border:1px solid #34445a; border-radius:12px; }
.model-row legend { padding:0 8px; color:var(--aqua); }
.table-wrap { width:100%; overflow:auto; }
.table-wrap table { width:100%; border-collapse:collapse; font-size:12px; }
.table-wrap th,.table-wrap td { padding:12px 10px; text-align:left; border-bottom:1px solid var(--border); vertical-align:top; overflow-wrap:anywhere; }
.table-wrap th { color:var(--muted); font-weight:500; white-space:nowrap; }
.table-wrap td input[type="number"] { min-width:95px; }
.prewrap { white-space:pre-wrap; overflow-wrap:anywhere; }
.ai-result { padding:20px; border:1px solid #355a54; border-radius:10px; background:#10251f; line-height:1.9; }
.json-view { overflow:auto; max-height:450px; padding:16px; border-radius:8px; background:#0a1422; color:#c4d6e3; font-size:11px; white-space:pre-wrap; overflow-wrap:anywhere; }
.error-text { color:var(--red); white-space:pre-wrap; }
.error-banner { border-color:#75404d; background:#2c1b26; color:#f7c6ce; }
.info-banner { margin:18px 0; }
.session-row { display:flex; justify-content:space-between; gap:15px; padding:12px 0; border-bottom:1px solid var(--border); }
.session-row small { display:block; color:var(--muted); }
.secret-display { display:block; padding:20px; background:#091321; border:1px solid var(--border); border-radius:8px; font-size:16px; overflow-wrap:anywhere; user-select:all; }
output { display:block; margin-top:20px; color:var(--aqua); }
.setup-list { padding-left:20px; color:var(--muted); }
.setup-list li { margin-bottom:15px; }
.topbar-actions #session-label { max-width:300px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.signed-out .app-shell { display:block; }
.signed-out .sidebar,.signed-out .topbar,.signed-out .workspace-footer { display:none; }
.login-card { max-width:500px; margin:9vh auto; padding:38px; background:linear-gradient(140deg,#152b35,var(--surface)); }
.login-card h1 { font-size:32px; margin-top:15px; }
.login-card form { margin:28px 0; }
.login-card form .button { width:100%; }
@media(max-width:1100px) { .calendar-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } .topbar-actions .timezone-label { display:none; } .photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:750px) { .brand-grid,.notes-grid { grid-template-columns:1fr; } .hero-panel { grid-template-columns:1fr; padding:26px; } .hero-panel .hero-art { display:none; } .heading-actions { flex-wrap:wrap; } .page-heading h1 { font-size:26px; } .calendar-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .topbar-actions #session-label { max-width:170px; font-size:10px; } .login-card { padding:25px; margin:7vh auto; } .form-grid { grid-template-columns:1fr; } .table-wrap td,.table-wrap th { padding:10px 7px; } }
@media(max-width:450px) { .photo-grid { grid-template-columns:1fr; } .topbar-actions .small-avatar { display:none; } .brand-card,.note-card { padding:20px; } .hero-panel .form-actions .button { width:100%; } .stat-card > strong { font-size:23px; } }
.exact-photo-preview { display:grid; place-items:center; min-height:200px; max-height:650px; overflow:hidden; border:1px solid var(--border); border-radius:10px; background:#091321; }
.exact-photo-preview img { display:block; width:100%; height:auto; max-height:650px; object-fit:contain; }
.exact-photo-preview .photo-placeholder { padding:40px 20px; color:var(--muted); text-align:center; }
/* Department and customer control center */
.control-intro { display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:30px; padding:30px; margin-bottom:22px; border:1px solid #355e66; border-radius:16px; background:linear-gradient(120deg,#15333d,#102335); }
.control-intro h2 { margin:5px 0 12px; font-size:30px; letter-spacing:-.035em; }
.control-intro p { max-width:720px; color:#b6cad7; }
.control-summary { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; border-left:1px solid #31515a; padding-left:20px; }
.control-summary strong { font-size:48px; line-height:1.1; font-weight:500; letter-spacing:-.04em; color:var(--aqua); }
.control-summary span { margin:10px 0; color:var(--muted); font-size:12px; }
.control-summary small { color:#a5c7c0; font-size:11px; }
.capability-legend { display:flex; flex-wrap:wrap; gap:8px; }
.control-fieldset { min-width:0; border:0; padding:0; margin:0; }
.control-savebar { position:sticky; z-index:5; top:0; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 20px; margin:20px 0; border:1px solid #3b586b; border-radius:10px; background:rgba(14,29,44,.97); box-shadow:0 12px 25px #050d1640; }
.control-savebar strong,.control-savebar span { display:block; }
.control-savebar strong { font-size:13px; color:#dcebf8; }
.control-savebar span { font-size:11px; color:var(--muted); }
.bottom-savebar { position:static; }
.control-section { margin:30px 0; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.section-heading h2 { font-size:21px; margin:0 0 5px; }
.section-heading p { margin:0; color:var(--muted); font-size:12px; }
.department-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.department-card { min-width:0; padding:20px; border:1px solid var(--border); border-radius:12px; background:#101b2b; }
.control-card-title h3 { margin:0 0 10px; font-size:17px; }
.department-card > p { min-height:40px; color:var(--muted); font-size:12px; }
.control-switch { display:flex; align-items:center; gap:10px; min-height:30px; color:#d4e3f0; cursor:pointer; font-size:12px; }
.control-switch input { position:absolute; width:1px; height:1px; opacity:0; }
.switch-track { position:relative; width:35px; height:21px; flex-shrink:0; border:1px solid #53647b; border-radius:20px; background:#253247; transition:background .15s; }
.switch-track::after { content:''; position:absolute; top:3px; left:3px; width:13px; height:13px; border-radius:50%; background:#aab9cb; transition:transform .15s; }
.control-switch input:checked + .switch-track { border-color:#82d9c8; background:#286456; }
.control-switch input:checked + .switch-track::after { background:#b4f5df; transform:translateX(14px); }
.control-switch input:focus-visible + .switch-track { outline:2px solid #baf5e6; outline-offset:3px; }
.control-switch input:disabled + .switch-track { opacity:.55; cursor:not-allowed; }
.bot-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.bot-card { padding:24px; min-width:0; border:1px solid var(--border); border-radius:14px; background:linear-gradient(150deg,#142235,#101928); }
.bot-card.bot-enabled { border-color:#37685d; }
.bot-card-top { display:flex; align-items:center; gap:14px; }
.bot-icon { display:grid; flex-shrink:0; place-items:center; width:44px; height:44px; border:1px solid #385069; border-radius:12px; background:#1c3448; color:#8fded5; font-size:24px; }
.bot-card-top h3 { margin:4px 0 0; font-size:19px; line-height:1.35; }
.bot-card > p { min-height:42px; margin:14px 0; color:var(--muted); font-size:12px; }
.bot-card .eyebrow { font-size:9px; }
.bot-status { display:flex; gap:7px; flex-wrap:wrap; margin:14px 0 5px; }
.bot-usage { display:flex; flex-wrap:wrap; gap:12px; padding:14px 0; color:var(--muted); font-size:10px; }
.bot-usage span { display:flex; flex-direction:column; gap:4px; min-width:74px; }
.bot-usage strong { color:#dbe5f1; font-size:13px; font-weight:500; }
.bot-card details,.department-card details { border-top:1px solid var(--border); margin-top:3px; padding-top:12px; }
.bot-card summary,.department-card summary,.customer-card summary { color:#abc6da; font-size:12px; cursor:pointer; }
.bot-card details[open] summary,.department-card details[open] summary { margin-bottom:16px; }
.compact-grid { gap:12px; }
.compact-grid .form-field { font-size:11px; }
.hours-settings { margin-top:22px; padding-top:15px; border-top:1px solid var(--border); }
.weekday-switches { display:flex; flex-wrap:wrap; gap:15px; margin:12px 0; }
.weekday-switches .check-row { margin:0; }
.brand-permission-table th { min-width:125px; max-width:160px; white-space:normal; }
.brand-permission-table select { min-width:100px; }
.locked-capabilities { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.locked-card { display:flex; align-items:flex-start; gap:14px; padding:18px; border:1px dashed #3a4659; border-radius:10px; background:#0e1724; }
.locked-card > div { flex:1; min-width:0; }
.locked-card h3 { margin:0 0 6px; color:#b3c2d3; font-size:14px; }
.locked-card p { margin:0 0 10px; color:var(--subtle); font-size:11px; }
.lock-symbol { color:#7d91a9; font-size:23px; }
.locked-card > input { margin-top:4px; }
.customer-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.customer-card { min-width:0; padding:23px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.customer-card-heading { display:flex; align-items:center; gap:14px; }
.customer-card-heading h3 { margin:0 0 3px; font-size:18px; }
.customer-card-heading p { color:var(--muted); margin:0; font-size:11px; overflow-wrap:anywhere; }
.customer-avatar { display:grid; place-items:center; width:43px; height:43px; border-radius:50%; border:1px solid #38546b; background:#1c3346; color:#9cd7df; font-size:17px; }
.customer-card details { margin-top:15px; }
.customer-id { display:block; margin:10px 0; color:var(--muted); overflow-wrap:anywhere; font-size:11px; }
.draft-preflight { padding:16px; margin:18px 0; border:1px solid #3e5064; border-radius:9px; background:#101f2e; color:var(--muted); font-size:12px; }
.draft-preflight strong { color:#c8dce9; }
.draft-preflight ul { padding-left:18px; margin:10px 0 0; }
.draft-preflight li { margin:5px 0; }
.draft-preflight p { margin:8px 0 0; }
#studio-customer { margin:18px 0; padding:18px; border:1px solid #324d61; border-radius:10px; }
#studio-customer .button { margin-top:10px; }
#customer-limit-fields input:disabled { opacity:.5; }
@media(max-width:1200px) { .department-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:750px) { .control-intro { grid-template-columns:1fr; padding:24px; } .control-summary { border-left:0; border-top:1px solid #31515a; padding:20px 0 0; } .control-summary strong { font-size:36px; } .bot-grid,.customer-grid { grid-template-columns:1fr; } .control-savebar { padding:12px 15px; gap:10px; } .control-savebar .button { padding:9px 11px; } .locked-capabilities { grid-template-columns:1fr; } .control-intro h2 { font-size:26px; } }
@media(max-width:460px) { .department-grid { grid-template-columns:1fr; } .bot-card,.customer-card { padding:20px; } .control-savebar { align-items:flex-start; flex-direction:column; } .control-savebar .button { width:100%; } .section-heading { align-items:flex-start; } }
.control-switch { position:relative; }
.control-switch input { z-index:1; left:0; top:50%; transform:translateY(-50%); width:35px; height:21px; min-height:21px; margin:0; cursor:pointer; }
.control-switch .switch-track { pointer-events:none; }
#bot-controls-form input,#bot-controls-form select,#bot-controls-form summary { scroll-margin-top:110px; }
@media(max-width:780px) { .sidebar { visibility:hidden; } .sidebar.is-open,.sidebar.open { visibility:visible; } }
