/* ==========================================================================
   IQ Customer customer portal - SolarisIQ look and feel
   Tokens, skins, base, buttons, cards, fields and the sign-in scene come from
   the SolarisIQ stylesheet. Section A onward restyles the portal's own
   components using those tokens, so changing a variable in section 1 changes
   the whole app. Default is the "midnight" skin; data-skin="daylight" on <html>
   switches to the light skin (toggle in the header).
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- 1. DESIGN TOKENS (midnight skin, the default) ---------- */
:root {
  /* fonts: the website uses Outfit for headings, Manrope for text, JetBrains Mono for labels */
  --font-display: 'Outfit', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* brand */
  --amber: #FBB040;
  --amber-hi: #FFD27A;
  --amber-lo: #E98D1A;
  --amber-ink: #06152B;       /* text on amber */
  --cyan: #0DD3F2;
  --cyan-text: #0DD3F2;       /* cyan used for small text */
  --amber-text: #FBB040;

  /* surfaces */
  --bg: #050F1F;
  --bg-2: #081A33;
  --bg-glow-a: rgba(13, 211, 242, .10);
  --bg-glow-b: rgba(251, 176, 64, .09);
  --card-top: rgba(24, 62, 110, .34);
  --card-bot: rgba(9, 25, 47, .72);
  --raise: rgba(10, 27, 51, .65);          /* chips, inputs on cards */
  --field-bg: rgba(5, 15, 31, .55);
  --chrome-bg: rgba(5, 15, 31, .82);
  --edge: rgba(120, 170, 230, .16);
  --edge-2: rgba(160, 200, 255, .30);
  --edge-hot: rgba(13, 211, 242, .55);

  /* text */
  --ink: #EAF2FF;
  --ink-2: #9CB1CE;
  --ink-3: #7F97B8;

  /* status */
  --good: #34D399;
  --warn: #FBB040;
  --bad: #FF7A7A;
  --good-bg: rgba(52, 211, 153, .12);
  --warn-bg: rgba(251, 176, 64, .12);
  --bad-bg: rgba(255, 122, 122, .12);
  --info-bg: rgba(13, 211, 242, .09);

  /* chart series (bars, donut, roof dots) */
  --s1: #FBB040;
  --s2: #0DD3F2;
  --s3: #7C9CFF;
  --s4: #34D399;
  --s5: #F472B6;
  --s6: #A78BFA;

  /* drawings */
  --panel-a: #235CA3;
  --panel-b: #10335F;
  --panel-line: #0DD3F2;
  --roof-fill: rgba(120, 170, 230, .10);
  --roof-line: rgba(160, 200, 255, .55);
  --grid-line: rgba(120, 170, 230, .14);
  --axis-text: #9CB1CE;
  --shade-fill: rgba(255, 122, 122, .35);

  /* shape and rhythm */
  --r-card: 22px;
  --r-field: 12px;
  --r-pill: 999px;
  --gutter: 20px;
  --max: 1280px;
  --shadow-glow: 0 18px 60px rgba(13, 211, 242, .08);
  --dock-h: 76px;
  color-scheme: dark;
}

/* ---------- 2. DAYLIGHT SKIN ---------- */
:root[data-skin="daylight"] {
  --bg: #F3F6FB;
  --bg-2: #E8EEF7;
  --bg-glow-a: rgba(13, 160, 190, .10);
  --bg-glow-b: rgba(251, 176, 64, .14);
  --card-top: #FFFFFF;
  --card-bot: #F8FAFD;
  --raise: #EEF3FA;
  --field-bg: #FFFFFF;
  --chrome-bg: rgba(243, 246, 251, .88);
  --edge: rgba(10, 40, 90, .14);
  --edge-2: rgba(10, 40, 90, .28);
  --edge-hot: rgba(8, 140, 170, .7);
  --ink: #0B1B33;
  --ink-2: #47607F;
  --ink-3: #5D7392;
  --cyan-text: #07829A;
  --amber-text: #A85F00;
  --good: #0F9F6E;
  --warn: #B26A00;
  --bad: #C73A3A;
  --good-bg: rgba(15, 159, 110, .10);
  --warn-bg: rgba(251, 176, 64, .18);
  --bad-bg: rgba(199, 58, 58, .09);
  --info-bg: rgba(8, 140, 170, .08);
  --s2: #0A9DB8;
  --s3: #4C6FE0;
  --s4: #0F9F6E;
  --panel-a: #2B6CB8;
  --panel-b: #1A4A87;
  --panel-line: #0A9DB8;
  --roof-fill: rgba(10, 40, 90, .05);
  --roof-line: rgba(10, 40, 90, .45);
  --grid-line: rgba(10, 40, 90, .12);
  --axis-text: #47607F;
  --shade-fill: rgba(199, 58, 58, .28);
  --shadow-glow: 0 14px 40px rgba(10, 40, 90, .10);
  color-scheme: light;
}

/* ---------- 3. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 85% -8%, var(--bg-glow-a), transparent 70%),
    radial-gradient(760px 480px at -6% 12%, var(--bg-glow-b), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.view-survey { padding-bottom: calc(var(--dock-h) + 16px); }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
img { max-width: 100%; }
.disp { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-text); }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; margin-top: 12px; }
.h2.sm { font-size: clamp(24px, 3vw, 32px); margin-top: 6px; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 66ch; margin-top: 14px; }
.fine { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.ctitle { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; margin-top: 10px; }
.cbody { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-top: 8px; }
.sq { display: inline-block; width: 9px; height: 9px; background: var(--cyan); flex: 0 0 auto; }
.shine { background: linear-gradient(100deg, #FBB040 0%, #FFE0A0 40%, #FBB040 60%, #F29A26 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
:root[data-skin="daylight"] .shine { background-image: linear-gradient(100deg, #E98D1A 0%, #FBB040 40%, #E98D1A 60%, #C97300 100%); background-size: 220% 100%; }
@keyframes shine { from { background-position: 0 0; } to { background-position: -220% 0; } }
@keyframes rise { from { transform: translateY(18px); filter: blur(5px); opacity: 0; } to { transform: none; filter: none; opacity: 1; } }
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.rise2 { animation: rise .8s .1s cubic-bezier(.2, .7, .2, 1) both; }
.rise3 { animation: rise .8s .2s cubic-bezier(.2, .7, .2, 1) both; }
.rise4 { animation: rise 1s .3s cubic-bezier(.2, .7, .2, 1) both; }
.blink { animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; min-height: 48px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15.5px; line-height: 1.1; cursor: pointer; text-align: center;
  border: 1px solid transparent; background: none;
  transition: transform .2s, box-shadow .25s, border-color .2s, color .2s, background .2s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-amber { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.btn-amber:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(251, 176, 64, .45); }
.btn-ghost { border-color: var(--edge-2); color: var(--ink); background: var(--raise); }
.btn-ghost:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan-text); }
.btn-danger { border-color: rgba(255, 122, 122, .45); color: var(--bad); background: transparent; }
.btn-danger:hover, .btn-danger.armed { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; gap: 8px; }
.btn-icon { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--edge-2); background: var(--raise); cursor: pointer; transition: border-color .2s, color .2s; flex: 0 0 auto; }
.btn-icon:hover { border-color: var(--amber); color: var(--amber-text); }
.btn-icon.sm { width: 34px; height: 34px; }
.nbtn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--edge-2); background: var(--raise); font-size: 24px; line-height: 1; cursor: pointer; transition: all .2s; flex: 0 0 auto; }
.nbtn:hover { border-color: var(--amber); color: var(--amber-text); }
.linkbtn { background: none; border: 0; padding: 0 0 0 8px; color: var(--cyan-text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ic { flex: 0 0 auto; }

/* ---------- 5. CARDS, NOTES, PILLS ---------- */
.card {
  background: linear-gradient(180deg, var(--card-top), var(--card-bot));
  border: 1px solid var(--edge); border-radius: var(--r-card);
  padding: 24px; position: relative; min-width: 0;
}
.card-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; border: 1px solid var(--edge-2); color: var(--ink-2); background: var(--raise); white-space: nowrap; }
.pill.good { color: var(--good); border-color: var(--good); background: var(--good-bg); }
.pill.warn { color: var(--warn); border-color: var(--warn); background: var(--warn-bg); }
.pill.bad { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); }
.tag-sample { padding: 3px 9px; border: 1px solid var(--amber); color: var(--amber-text); border-radius: 6px; font-size: 10.5px; letter-spacing: .12em; }
.notes { display: grid; gap: 10px; margin-top: 18px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--edge); background: var(--info-bg); font-size: 14.5px; line-height: 1.5; }
.note > svg { margin-top: 2px; color: var(--cyan-text); }
.note.ok { background: var(--good-bg); border-color: var(--good); } .note.ok > svg { color: var(--good); }
.note.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 60%, transparent); } .note.warn > svg { color: var(--warn); }
.note.block { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 60%, transparent); } .note.block > svg { color: var(--bad); }
.crit { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--amber); color: var(--amber-text); vertical-align: middle; }

/* ---------- Form fields (SolarisIQ) ---------- */
.field {
  width: 100%; min-width: 0; min-height: 48px; padding: 11px 14px; border-radius: var(--r-field);
  background: var(--field-bg); color: var(--ink); border: 1px solid var(--edge-2);
  font: 500 16px/1.3 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.fld-in:has(.fld-u) .field { padding-right: 38px; padding-left: 12px; }
.roof-form .cols-4, .ko-row .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
textarea.field { min-height: 0; resize: vertical; line-height: 1.5; }
select.field { appearance: none; padding-right: 34px; padding-left: 12px; text-overflow: ellipsis; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field::placeholder { color: var(--ink-3); opacity: .8; }
.field:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 25%, transparent); }

/* ---------- 15. SIGN-IN, ACCOUNT AND TEAM ---------- */
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.login-brand .logo-mark { width: 46px; height: 46px; }
.login-h { font-weight: 600; font-size: clamp(26px, 5vw, 34px); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.card::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, var(--cyan), var(--amber)); opacity: .0; transition: opacity .3s; }
.card:hover::before { opacity: .7; }

/* ---------- Logo mark colours (SolarisIQ) ---------- */
.dial-ring { fill: var(--raise); stroke: var(--edge-2); stroke-width: 1.5; } .dial-tick { stroke: var(--axis-text); stroke-width: 1; } .dial-tick.major { stroke: var(--ink-2); stroke-width: 2; } .dial-card { fill: var(--ink); font-size: 11px; font-weight: 700; }
.dial-needle { fill: var(--amber); } .dial-hub { fill: var(--bg); stroke: var(--amber); stroke-width: 2; } .dial-grab { fill: var(--amber); stroke: var(--bg); stroke-width: 2; cursor: grab; } svg.dial { touch-action: none; cursor: grab; display: block; max-width: 100%; height: auto; }
.lg-sun { fill: var(--amber); } .lg-ink { fill: var(--ink); } .lg-edge { stroke: var(--bg); stroke-width: 1; } .lg-cyan { fill: var(--cyan); } .lg-lines { stroke: var(--amber); fill: none; stroke-width: 2; stroke-linecap: round; }


/* ==========================================================================
   IQ Customer customer portal: components
   Everything below uses the SolarisIQ tokens above. No hard-coded colours
   except the signature pad (white paper, dark ink) and the SVG scene.
   ========================================================================== */

/* ---------- A. APP SHELL ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; flex: 0 0 264px; width: 264px; height: 100vh; align-self: flex-start;
  display: flex; flex-direction: column; padding: 20px 16px; overflow-y: auto;
  background: var(--chrome-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-right: 1px solid var(--edge);
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; }
.sidebar-brand .logo-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; color: var(--ink); }
.wordmark .dot-end { color: var(--amber); }
.logo-mark { display: block; }
.sidebar-user {
  display: grid; gap: 2px; padding: 12px 14px; margin-bottom: 16px; border-radius: 14px;
  border: 1px solid var(--edge); background: var(--raise);
  font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere;
}
.sidebar-user .tag { font-size: 10px; }
.sidebar-links { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 14px;
  border: 1px solid transparent; border-radius: 12px; background: none; color: var(--ink-2);
  font: 600 15px/1.2 var(--font-body); text-align: left; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .25s;
}
.sidebar-link:hover { color: var(--ink); background: var(--raise); border-color: var(--edge-hot); }
.sidebar-link.active { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); box-shadow: 0 8px 28px rgba(251, 176, 64, .3); }
.sidebar-link.muted { color: var(--ink-3); cursor: default; }
.sidebar-logout { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--edge); }
.sidebar-logout .sidebar-link { color: var(--ink-3); }
.sidebar-logout .sidebar-link:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); }

.main-content { flex: 1; min-width: 0; }
.board-header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 84px; padding: 12px 32px;
  background: var(--chrome-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge);
}
.board-header h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; letter-spacing: -.02em; }
.board-header .subtle { margin-top: 4px; color: var(--ink-3); font-size: 14px; }
.hub-content { max-width: var(--max); margin: 0 auto; padding: 28px 32px 48px; }

.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--edge-2); background: var(--raise); color: var(--ink); cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}
.theme-toggle:hover { border-color: var(--amber); color: var(--amber-text); transform: rotate(18deg); }
.theme-toggle .i-sun { display: none; }
:root[data-skin="daylight"] .theme-toggle .i-sun { display: block; }
:root[data-skin="daylight"] .theme-toggle .i-moon { display: none; }
.theme-float { position: fixed; top: 16px; right: 16px; z-index: 40; }

/* ---------- B. DASHBOARD TILES ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; max-width: 1200px; margin: 0 auto; }
.hub-tile {
  position: relative; display: block; min-height: 200px; padding: 24px; border-radius: var(--r-card);
  border: 1px solid var(--edge); background: linear-gradient(180deg, var(--card-top), var(--card-bot));
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.hub-tile::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, var(--cyan), var(--amber)); opacity: 0; transition: opacity .3s; }
a.hub-tile { color: inherit; text-decoration: none; }
.tile-active { cursor: pointer; }
.hub-tile:hover { border-color: var(--edge-hot); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.hub-tile:hover::before { opacity: .7; }
article.hub-tile { opacity: .72; }
article.hub-tile:hover { transform: none; box-shadow: none; border-color: var(--edge); }
article.hub-tile:hover::before { opacity: 0; }
.tile-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 15px;
  color: var(--amber-ink); font: 700 20px/1 var(--font-display); overflow: hidden;
  background: linear-gradient(145deg, var(--amber-hi), var(--amber) 55%, var(--amber-lo));
  box-shadow: 0 10px 30px rgba(251, 176, 64, .25);
}
.hub-tile:nth-child(2n) .tile-icon { background: linear-gradient(145deg, #8CEBFB, var(--cyan) 55%, #07A9C6); box-shadow: 0 10px 30px rgba(13, 211, 242, .22); }
.tile-icon img { width: 100%; height: 100%; object-fit: contain; }
.hub-tile h2 { margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.hub-tile p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.tile-status {
  display: inline-flex; align-items: center; margin-top: 16px; padding: 5px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--warn); color: var(--warn); background: var(--warn-bg);
  font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .04em;
}
.tile-status.live { color: var(--good); border-color: var(--good); background: var(--good-bg); }
.tile-status.attention { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); }
.cancellation-tile .tile-icon { background: linear-gradient(145deg, #FFB4B4, var(--bad)); box-shadow: none; }

/* ---------- C. CONTENT CARDS ---------- */
.content-card {
  position: relative; max-width: 1050px; margin: 0 auto 18px; padding: 26px; min-width: 0;
  border-radius: var(--r-card); border: 1px solid var(--edge);
  background: linear-gradient(180deg, var(--card-top), var(--card-bot));
}
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--edge); }
.section-heading h2, .empty-state h2, .list-heading { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.section-heading p, .empty-state p { margin-top: 6px; color: var(--ink-3); font-size: 14px; }
.eyebrow { margin: 0 0 6px !important; font-size: 11.5px; }
.read-only-badge, .status-badge {
  flex-shrink: 0; padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--edge-2);
  color: var(--ink-2); background: var(--raise); font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .04em; white-space: nowrap;
}
.status-complete { color: var(--good); border-color: var(--good); background: var(--good-bg); }
.status-progress { color: var(--cyan-text); border-color: var(--edge-hot); background: var(--info-bg); }
.status-attention { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); }
.status-planned { color: var(--warn); border-color: var(--warn); background: var(--warn-bg); }

.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-item, .date-row > div, .cancellation-summary > div, .linked-job {
  padding: 14px 16px; border: 1px solid var(--edge); border-radius: 14px; background: var(--raise); min-width: 0;
}
.detail-item { min-height: 82px; }
.detail-item span, .date-row span, .description-block > span, .cancellation-summary span, .linked-job span, .payment-stage small, .payment-summary span {
  display: block; margin-bottom: 6px; color: var(--ink-3);
  font: 500 11px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
}
.detail-item strong, .date-row strong, .cancellation-summary strong, .linked-job strong { color: var(--ink); font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.detail-wide { grid-column: 1 / -1; }
.info-banner {
  max-width: 1050px; margin: 0 auto; padding: 16px 20px; border: 1px solid var(--edge); border-left: 4px solid var(--amber);
  border-radius: 14px; color: var(--ink-2); background: var(--info-bg); font-size: 15px; line-height: 1.6;
}
.info-banner strong { display: block; margin-bottom: 3px; color: var(--ink); font-family: var(--font-display); font-size: 16px; }
.job-list, .journey-list, .message-list, .ticket-list, .document-list { max-width: 1050px; margin: 0 auto; }
.date-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.description-block p, .ticket-comment { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.empty-state { padding: 3.5rem 1.5rem; text-align: center; }

/* documents */
.document-card { display: flex; align-items: center; gap: 16px; }
.document-icon {
  display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 56px; border-radius: 10px;
  color: #fff; background: linear-gradient(160deg, #FF9A9A, var(--bad)); font: 600 11px/1 var(--font-mono); letter-spacing: .06em;
}
.document-info { flex: 1; min-width: 0; }
.document-info h2 { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); }
.document-info p { margin-top: 4px; color: var(--ink-3); font-size: 13.5px; }
.document-button, .primary-button, .cancellation-action a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
  min-height: 44px; padding: 10px 22px; border: 1px solid var(--amber); border-radius: var(--r-pill);
  background: var(--amber); color: var(--amber-ink); font: 700 14.5px/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .25s;
}
.document-button:hover, .primary-button:hover:not(:disabled), .cancellation-action a:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(251, 176, 64, .45); }
.primary-button { margin-top: 14px; }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item { position: relative; display: flex; gap: 16px; min-height: 72px; padding-bottom: 20px; }
.timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--edge-2); }
.timeline-marker { position: relative; z-index: 1; flex: 0 0 18px; width: 18px; height: 18px; border: 3px solid var(--edge-2); border-radius: 50%; background: var(--bg); }
.timeline-item.done .timeline-marker { border-color: var(--good); background: var(--good); }
.timeline-item.current .timeline-marker { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 5px var(--warn-bg); }
.timeline-item strong { color: var(--ink); font-size: 15.5px; font-weight: 700; }
.timeline-item p { margin-top: 3px; color: var(--ink-2); font-size: 14.5px; }

/* messages */
.message-card p { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.message-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--ink-3); font: 500 12px/1.4 var(--font-mono); }
.message-type { padding: 3px 10px; border-radius: var(--r-pill); color: var(--cyan-text); background: var(--info-bg); border: 1px solid var(--edge-hot); font-weight: 500; }
.message-job, .ticket-meta { display: block; margin-top: 12px; color: var(--ink-3); font: 500 12px/1.4 var(--font-mono); }

/* ---------- D. FORMS ---------- */
.support-form label, .reason-field { display: block; color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.support-form input, .support-form select, .support-form textarea, .reason-field textarea,
.auth-box input, .field-like {
  width: 100%; min-width: 0; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--edge-2); border-radius: var(--r-field);
  background: var(--field-bg); color: var(--ink); font: 500 16px/1.4 var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.support-form input, .support-form select { min-height: 48px; }
.support-form textarea, .reason-field textarea { resize: vertical; line-height: 1.5; }
.support-form select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.support-form input::placeholder, .support-form textarea::placeholder, .reason-field textarea::placeholder { color: var(--ink-3); opacity: .8; }
.support-form input:focus, .support-form select:focus, .support-form textarea:focus, .reason-field textarea:focus, .auth-box input:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 25%, transparent);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-wide { grid-column: 1 / -1; }
.flash-success, .flash-error {
  max-width: 1050px; margin: 0 auto 16px; padding: 13px 16px; border: 1px solid var(--good); border-left-width: 4px;
  border-radius: 14px; color: var(--good); background: var(--good-bg); font-size: 14.5px; font-weight: 600;
}
.flash-error { border-color: var(--bad); color: var(--bad); background: var(--bad-bg); }
.list-heading { margin: 26px 0 14px; max-width: 1050px; margin-left: auto; margin-right: auto; }
.inline-error, .empty-inline { padding: 12px 16px; border-radius: 12px; color: var(--bad); background: var(--bad-bg); font-size: 14px; }
.empty-inline { color: var(--ink-2); background: var(--raise); }

/* buttons used by cancellation, satisfaction */
.danger-button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: var(--r-pill); font: 700 14.5px/1.1 var(--font-body); text-align: center; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.danger-button { color: #fff; background: var(--bad); border-color: var(--bad); }
.danger-button:hover:not(:disabled) { filter: brightness(1.1); }
.danger-button:disabled { opacity: .45; cursor: not-allowed; }
.secondary-button { color: var(--ink); background: var(--raise); border-color: var(--edge-2); }
.secondary-button:hover { border-color: var(--cyan); color: var(--cyan-text); }
.button-reset { margin: 0; }

/* ---------- E. CANCELLATION ---------- */
.cancellation-action {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1050px; margin: 0 auto; padding: 18px 20px;
  border: 1px solid var(--edge); border-left: 4px solid var(--bad); border-radius: 14px; background: var(--bad-bg); color: var(--ink);
}
.cancellation-action strong { color: var(--bad); font-family: var(--font-display); font-size: 16px; }
.cancellation-action p { margin-top: 3px; color: var(--ink-2); font-size: 14px; }
.cancellation-action a { background: var(--bad); border-color: var(--bad); color: #fff; }
.cancellation-action a:hover { box-shadow: 0 12px 40px rgba(255, 122, 122, .35); }
.cancellation-notice { border-top: 3px solid var(--amber); }
.notice-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--edge); }
.notice-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; color: var(--amber-ink); background: var(--amber); font: 700 20px/1 var(--font-display); }
.notice-heading h2 { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--ink); }
.notice-heading p { margin-top: 3px; color: var(--ink-2); font-size: 14px; }
.policy-section { margin-bottom: 18px; }
.policy-section h3 { margin-bottom: 4px; color: var(--cyan-text); font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.policy-section p, .policy-acknowledgement { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.policy-acknowledgement { padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); border-radius: 14px; color: var(--ink); background: var(--warn-bg); font-weight: 600; }
.cancellation-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.summary-wide { grid-column: 1 / -1; }
.form-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.declaration-check {
  display: flex; align-items: flex-start; gap: 12px; margin: 18px 0; padding: 16px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); border-radius: 14px; background: var(--warn-bg);
}
.declaration-check input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--amber); }
.declaration-check strong { display: block; color: var(--ink); font-size: 15px; }
.declaration-check small { display: block; margin-top: 3px; color: var(--ink-2); font-size: 13px; }
.cancellation-buttons { display: flex; gap: 10px; margin-top: 16px; }
.cancellation-confirmation { text-align: center; }
.confirmation-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; color: #fff; background: var(--good); font: 700 24px/1 var(--font-display); box-shadow: 0 10px 30px rgba(52, 211, 153, .3); }
.cancellation-confirmation h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--ink); }
.cancellation-confirmation > p { max-width: 650px; margin: 8px auto 0; color: var(--ink-2); font-size: 15px; line-height: 1.7; }

/* modal */
.modal-open, body.modal-open { overflow: hidden; }
.app-modal-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; background: rgba(2, 8, 18, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.app-modal-overlay[hidden] { display: none; }
.app-modal-box { width: min(100%, 420px); padding: 30px; border-radius: var(--r-card); border: 1px solid var(--edge-2); background: var(--bg-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); text-align: center; }
.app-modal-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; color: var(--amber-ink); background: var(--amber); font: 700 22px/1 var(--font-display); }
.app-modal-box h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); }
.app-modal-box p { margin: 8px 0 20px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.app-modal-box .primary-button { width: 100%; margin-top: 0; }

/* payment structure */
.payment-structure { margin-top: 18px; }
.payment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.payment-stage { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--edge); border-radius: 14px; background: var(--raise); }
.payment-stage > span { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; color: var(--amber-ink); background: var(--amber); font: 600 12px/1 var(--font-mono); }
.payment-stage strong { color: var(--ink); font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.payment-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.payment-summary > div { padding: 14px 16px; border: 1px solid var(--edge-hot); border-radius: 14px; color: var(--ink); background: var(--info-bg); }
.payment-summary strong { font-size: 15px; }

/* ---------- F. SIGN-IN / PASSWORD PAGES ---------- */
.view-auth { overflow-x: hidden; }
.auth-wrap { padding: 24px var(--gutter); }
.auth-page { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.auth-box { /* set-password: single glass card, same recipe as .login-card */
  position: relative; width: min(440px, 100%); display: grid; gap: 4px; padding: 34px 32px 28px; border-radius: 26px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bot)); border: 1px solid var(--edge-2);
  box-shadow: 0 30px 80px -34px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.auth-box > h1, .login-card h1.login-h { font-family: var(--font-display); }
.auth-box h1 { font-weight: 600; font-size: clamp(24px, 5vw, 30px); line-height: 1.1; letter-spacing: -.02em; text-align: left; }
.auth-box .intro, .login-sub, .help { color: var(--ink-2); font-size: 15px; line-height: 1.55; text-align: left; margin: 6px 0 6px; }
.help { color: var(--ink-3); font-size: 13.5px; margin-top: 8px; }
.auth-box label, .login-card label { display: block; margin: 14px 0 0; color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.auth-box button[type=submit] {
  width: 100%; min-height: 50px; margin-top: 22px; padding: 12px 22px; border: 1px solid var(--amber); border-radius: var(--r-pill);
  background: var(--amber); color: var(--amber-ink); font: 700 16px/1.1 var(--font-body); cursor: pointer; transition: transform .2s, box-shadow .25s;
}
.auth-box button[type=submit]:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(251, 176, 64, .45); }
.auth-error, .auth-notice { margin: 14px 0 0; padding: 11px 14px; border: 1px solid var(--bad); border-radius: 12px; color: var(--bad); background: var(--bad-bg); font-size: 14px; font-weight: 600; }
.auth-notice { color: var(--warn); border-color: var(--warn); background: var(--warn-bg); }
.auth-success { color: var(--good); border-color: var(--good); background: var(--good-bg); }
.login-card .field-wrap { position: relative; }
.login-card .field-wrap .field { padding-right: 70px; }
.login-card .field { margin-top: 6px; }
.login-card .auth-error, .login-card .auth-notice { margin: 0; }
.login-card form { display: grid; gap: 4px; }
.login-card .login-go { margin-top: 18px; }

/* ---------- G. MOBILE NAVIGATION ---------- */
.menu-toggle, .sidebar-close, .menu-overlay { display: none; }

@media (max-width: 1050px) {
  .hub-content { padding: 22px 20px 40px; }
  .board-header { padding: 12px 20px; }
}
@media (max-width: 760px) {
  body.menu-open { overflow: hidden; }
  .app-shell { display: block; }
  .menu-toggle {
    position: fixed; top: 16px; left: 14px; z-index: 300; display: grid; place-content: center; gap: 4px; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--edge-2); border-radius: 12px; background: var(--raise); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer;
  }
  .menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); }
  .sidebar {
    position: fixed; top: 0; left: 0; z-index: 400; flex: none; width: min(84vw, 300px); height: 100vh; padding: 20px 14px;
    background: var(--bg-2); -webkit-backdrop-filter: none; backdrop-filter: none;
    transform: translateX(-105%); box-shadow: 8px 0 40px rgba(0, 0, 0, .45); transition: transform .22s ease;
  }
  body.menu-open .sidebar { transform: translateX(0); }
  .sidebar-close {
    position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
    border: 1px solid var(--edge-2); border-radius: 10px; color: var(--ink); background: var(--raise); font: 400 24px/1 Arial, sans-serif; cursor: pointer;
  }
  .menu-overlay { position: fixed; inset: 0; z-index: 350; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(2, 8, 18, .7); cursor: pointer; }
  body.menu-open .menu-overlay { display: block; }
  .board-header { min-height: 76px; padding: 12px 14px 12px 72px; }
  .board-header h1 { font-size: 20px; }
  .board-header .subtle { font-size: 13px; }
  .hub-content { padding: 16px 14px 36px; }
}
@media (max-width: 620px) {
  .details-grid, .date-row, .form-grid, .cancellation-summary, .form-summary, .payment-grid, .payment-summary { grid-template-columns: minmax(0, 1fr); }
  .summary-wide { grid-column: auto; }
  .section-heading { flex-direction: column; }
  .message-meta { flex-direction: column; }
  .document-card { align-items: flex-start; flex-wrap: wrap; }
  .document-button { width: 100%; }
  .cancellation-action { align-items: flex-start; flex-direction: column; }
  .cancellation-action a { width: 100%; }
  .cancellation-buttons { flex-direction: column; }
  .danger-button, .secondary-button { width: 100%; }
  .content-card { padding: 20px 18px; }
}
@media (max-width: 520px) { .tile-grid { grid-template-columns: minmax(0, 1fr); } .hub-tile { min-height: 0; } }

/* ---------- H. LOGIN SCENE: per-element variables (CSP blocks style="" so these live here) ---------- */
.pv:nth-child(1) { --i: 0; } .pv:nth-child(2) { --i: 1; } .pv:nth-child(3) { --i: 2; } .pv:nth-child(4) { --i: 3; }
.pv:nth-child(5) { --i: 4; } .pv:nth-child(6) { --i: 5; } .pv:nth-child(7) { --i: 6; } .pv:nth-child(8) { --i: 7; }
.beam:nth-child(1) { --b: 0; } .beam:nth-child(2) { --b: 1; } .beam:nth-child(3) { --b: 2; } .beam:nth-child(4) { --b: 3; } .beam:nth-child(5) { --b: 4; }
.scene-ground { fill: #07182F; } .scene-hill { fill: #0A2347; }
.scene-wall { fill: #0B2A52; stroke: rgba(160, 200, 255, .25); }
.scene-roof { fill: #123A6B; stroke: rgba(160, 200, 255, .3); }
.scene-door { fill: #06152B; }
.scene-pole { fill: #1B3F6E; }
.lscene .login-brand { position: relative; z-index: 2; }
.stage-top, .stage-copy { z-index: 2; }
.login-side { position: relative; }

/* ---------- I. SIGN-IN: animated roof scene + glass card (SolarisIQ) ---------- */
/* 18. Sign-in: animated roof scene + glass card */
.login2 { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(18px, 3vw, 40px); align-items: stretch; min-height: calc(100vh - 96px); padding: 8px 0 24px; max-width: 1240px; margin: 0 auto; }
.lscene { position: relative; isolation: isolate; overflow: hidden; border-radius: 30px; min-height: 560px; border: 1px solid var(--edge-2); color: #EAF2FF; background: #050F1F; box-shadow: 0 30px 90px -30px rgba(0, 0, 0, .6); }
.stage-sky { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, #050F1F 0%, #0A2347 48%, #1B3F6E 78%, #E98D1A 130%); animation: dawn 18s ease-in-out infinite; }
.stage-sky::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #050F1F, #0A2347); opacity: 0; animation: night 18s ease-in-out infinite; }
@keyframes dawn { 0%, 100% { filter: brightness(.7) saturate(.9); } 50% { filter: brightness(1.15) saturate(1.15); } }
@keyframes night { 0%, 100% { opacity: .55; } 50% { opacity: 0; } }
.stars { position: absolute; inset: 0; background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #cfe6ff, transparent), radial-gradient(1.4px 1.4px at 46% 22%, #fff, transparent), radial-gradient(1px 1px at 63% 10%, #cfe6ff, transparent), radial-gradient(1.2px 1.2px at 80% 20%, #fff, transparent), radial-gradient(1px 1px at 92% 7%, #cfe6ff, transparent), radial-gradient(1px 1px at 8% 38%, #cfe6ff, transparent), radial-gradient(1.2px 1.2px at 74% 36%, #fff, transparent); animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
.scene-svg { position: absolute; left: 50%; bottom: 0; width: min(112%, 780px); transform: translateX(-50%); height: auto; z-index: -1; }
.sun-orbit { offset-path: path('M 30 330 Q 300 -70 570 330'); offset-rotate: 0deg; animation: orbit 18s linear infinite; }
@keyframes orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.orbit-line { fill: none; stroke: #FBB040; stroke-opacity: .22; stroke-width: 1.2; stroke-dasharray: 3 7; }
.beam { stroke: #FFD27A; stroke-width: 1.5; stroke-linecap: round; opacity: 0; animation: beam 4.5s ease-in-out infinite; animation-delay: calc(var(--b) * .6s); }
@keyframes beam { 0%, 100% { opacity: 0; } 40% { opacity: .75; } }
.pv { fill: url(#lgPv); stroke: #0DD3F2; stroke-opacity: .55; stroke-width: .8; opacity: 0; animation: pvOn 18s ease-in-out infinite; animation-delay: calc(var(--i) * .22s); }
@keyframes pvOn { 0%, 6% { opacity: 0; } 12%, 88% { opacity: 1; fill: #3B86DA; } 94%, 100% { opacity: 0; } }
.win { fill: #FBB040; opacity: .85; animation: lamp 6s ease-in-out infinite; } .win.w2 { animation-delay: -3s; }
@keyframes lamp { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.wire path { fill: none; stroke: #0DD3F2; stroke-opacity: .6; stroke-width: 1.6; stroke-dasharray: 4 5; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.spark { fill: #FFE9B8; offset-path: path('M 300 190 L 300 176 L 128 176 L 128 330'); animation: orbit 3.2s linear infinite; }
.stage-top { padding: 26px 30px 0; }
.lscene .login-brand { margin: 0; } .lscene .wordmark { color: #fff; }
.stage-copy { position: absolute; left: 0; right: 0; top: 112px; padding: 0 30px; display: grid; gap: 18px; max-width: 520px; }
.stage-h { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; color: #fff; }
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stage-list li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: #C9D9F0; }
.stage-list .ic { color: #FBB040; flex: none; }
.live-card { position: absolute; left: 30px; bottom: 30px; z-index: 2; min-width: 190px; padding: 14px 16px; border-radius: 16px; background: rgba(5, 15, 31, .62); border: 1px solid rgba(160, 200, 255, .28); backdrop-filter: blur(10px); display: grid; gap: 6px; }
.lc-l { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #9CB1CE; display: flex; gap: 8px; align-items: center; }
.lc-v { display: flex; align-items: baseline; gap: 6px; } .lc-v b { font-size: 34px; font-weight: 600; color: #FFD27A; font-variant-numeric: tabular-nums; min-width: 3.2ch; } .lc-v span { color: #9CB1CE; font-size: 12px; }
.lc-bar { height: 5px; border-radius: 9px; background: rgba(160, 200, 255, .16); overflow: hidden; } .lc-bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #0DD3F2, #FBB040); transition: width .15s linear; }
.chip-float { position: absolute; z-index: 2; padding: 7px 12px; border-radius: 999px; font-size: 11.5px; letter-spacing: .04em; color: #EAF2FF; background: rgba(5, 15, 31, .6); border: 1px solid rgba(13, 211, 242, .45); backdrop-filter: blur(8px); animation: floaty 6s ease-in-out infinite; }
.chip-float.c1 { right: 8%; top: 46%; } .chip-float.c2 { right: 5%; bottom: 22%; animation-delay: -2s; border-color: rgba(251, 176, 64, .55); } .chip-float.c3 { right: 30%; bottom: 8%; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.login-side { display: grid; place-items: center; }
.login-card { width: min(440px, 100%); position: relative; display: grid; gap: 16px; padding: 34px 32px 28px; border-radius: 26px; background: linear-gradient(180deg, var(--card-top), var(--card-bot)); border: 1px solid var(--edge-2); box-shadow: 0 30px 80px -34px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08); }
.login-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--cyan) 85%, var(--amber) 95%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 7s linear infinite; pointer-events: none; opacity: .8; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.login-sub { color: var(--ink-2); margin: -6px 0 4px; }
.login-card .field:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 28%, transparent); }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--cyan-text); font: 600 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 8px; cursor: pointer; border-radius: 8px; }
.pw-eye:hover { background: var(--info-bg); }
.caps { font-size: 12px; color: var(--amber-text); margin-top: 6px; }
.login-go { width: 100%; position: relative; overflow: hidden; min-height: 50px; font-size: 16px; }
.login-go::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(120%); } }
.login-go .go-w { display: none; } .login-go.is-busy .go-t { display: none; } .login-go.is-busy .go-w { display: inline; } .login-go.is-busy .ic { display: none; }
.login-go.is-busy::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(6, 21, 43, .3); border-top-color: var(--amber-ink); animation: spin2 .7s linear infinite; margin-right: 10px; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.secure { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 11px; letter-spacing: .04em; color: var(--ink-3); padding-top: 4px; border-top: 1px solid var(--edge); margin-top: 4px; padding-top: 14px; }
@media (max-width: 900px) {
  .login2 { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .lscene { min-height: 440px; border-radius: 24px; }
  .stage-copy { top: 80px; } .stage-h { font-size: 28px; } .stage-list, .chip-float.c3 { display: none; }
  .live-card { left: 16px; bottom: 16px; min-width: 0; } .chip-float.c1 { top: 52%; right: 4%; } .chip-float.c2 { bottom: 16px; right: 4%; }
  .stage-top { padding: 20px 20px 0; } .stage-copy { padding: 0 20px; }
  .scene-svg { width: 135%; bottom: -10px; }
}
@media (max-width: 480px) { .lscene { min-height: 430px; } .login-card { padding: 26px 20px 22px; } .chip-float.c1 { display: none; } }


/* ==========================================================================
   J. IQ CUSTOMER LAYOUT (from the IQ Customer v1 design)
   Navy sidebar with icons, white (or deep-navy) top bar, card dashboard with
   a progress ring, and one calm motion language: things rise in, rings draw
   in, buttons lift. Both skins are covered: daylight = the light mockup,
   midnight = its dark mode. Scoped to body.view-app so sign-in is untouched.
   ========================================================================== */
:root {
  --j-bg: #071A31; --j-card: #0C2342; --j-card2: #0A1D37; --j-card3: #123058;
  --j-line: rgba(120, 170, 230, .22); --j-ink: #EAF2FF; --j-mut: #9CB1CE; --j-teal: #0DD3F2;
  --j-top: rgba(12, 35, 66, .94); --j-side: #07182E; --j-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  --j-ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-skin="daylight"] {
  --j-bg: #F3F6FB; --j-card: #FFFFFF; --j-card2: #F3F6FB; --j-card3: #E7EEF8;
  --j-line: #D5E0EE; --j-ink: #0B1B33; --j-mut: #52688A; --j-teal: #0B6E82;
  --j-top: rgba(255, 255, 255, .94); --j-shadow: 0 1px 2px rgba(7, 24, 46, .05);
}

body.view-app {
  background: var(--j-bg); background-image: none; color: var(--j-ink);
  transition: background-color .35s var(--j-ease), color .35s var(--j-ease);
}
.view-app .app-shell { background: transparent; }

/* ----- sidebar ----- */
.view-app .sidebar {
  flex-basis: 224px; width: 224px; padding: 14px 10px; gap: 0;
  background: var(--j-side); border-right: 0; -webkit-backdrop-filter: none; backdrop-filter: none; color: #C9D8EC;
}
.view-app .sidebar-brand { padding: 6px 10px 16px; gap: 10px; }
.view-app .sidebar-brand .logo-mark { width: 30px; height: 30px; }
.view-app .wordmark { color: #fff; font-size: 19px; }
.view-app .sidebar-user {
  display: block; margin: 0 0 10px; padding: 9px 12px 11px; border: 1px solid rgba(120, 170, 230, .16); border-radius: 12px;
  background: rgba(120, 170, 230, .09); color: #9CB1CE; font-weight: 500; font-size: 12.5px;
}
.view-app .sidebar-user .tag { display: block; margin-bottom: 4px; color: #7FE6F8; font-size: 10px; letter-spacing: .14em; }
.view-app .sidebar-user b { display: block; color: #fff; font: 600 15px/1.25 var(--font-display); letter-spacing: -.01em; }
.view-app .sidebar-job { display: block; margin-top: 1px; }
.view-app .sidebar-links { gap: 2px; }
.view-app .sidebar-link {
  gap: 11px; min-height: 40px; padding: 7px 12px; border: 0; border-radius: 10px; color: #C9D8EC;
  font: 700 14.5px/1.2 var(--font-body);
  transition: background .2s, color .2s, box-shadow .25s var(--j-ease);
}
.view-app .sidebar-link .ico { flex: 0 0 auto; transition: transform .3s var(--j-ease); }
.view-app .sidebar-link:hover { background: rgba(120, 170, 230, .13); color: #fff; border-color: transparent; }
.view-app .sidebar-link:hover .ico { transform: translateX(2px) scale(1.08); }
.view-app .sidebar-link.active { background: rgba(251, 176, 64, .16); color: #fff; box-shadow: inset 3px 0 0 var(--amber); }
.view-app .sidebar-link.active .ico { color: var(--amber); }
.view-app .sidebar-logout { margin-top: auto; padding-top: 14px; border-top: 0; }
.view-app .logout-link {
  justify-content: center; min-height: 38px; border: 1px dashed rgba(120, 170, 230, .35); border-radius: 10px;
  color: #9CB1CE; font-size: 12.5px;
}
.view-app .logout-link:hover { color: #FFB3C1; border-color: #FF8FA6; background: rgba(255, 107, 136, .1); }

/* ----- top bar ----- */
.view-app .board-header {
  min-height: 62px; padding: 10px 22px; background: var(--j-top); border-bottom: 1px solid var(--j-line);
  transition: background-color .35s var(--j-ease), border-color .35s;
}
.view-app .board-title { min-width: 0; }
.view-app .board-header h1 { font-size: 21px; line-height: 1.15; letter-spacing: -.02em; color: var(--j-ink); }
.view-app .board-header .subtle { margin-top: 2px; font-size: 13px; color: var(--j-mut); }
.board-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.view-app .theme-toggle, .bell-button {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--j-line); background: var(--j-card); color: var(--j-ink); cursor: pointer;
  transition: border-color .2s, color .2s, transform .3s var(--j-ease), background-color .35s;
}
.view-app .theme-toggle:hover, .bell-button:hover { border-color: var(--amber); color: var(--amber-text); }
.view-app .theme-toggle:hover { transform: rotate(18deg); }
.bell-button b {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: #D8445C; color: #fff; font: 800 11px/18px var(--font-body); text-align: center;
  animation: j-pop .6s var(--j-ease) .5s both;
}
.avatar {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(140deg, #FFD688, #FBB040); color: #06152B; font: 800 13px/1 var(--font-body);
}
.view-app .hub-content { max-width: 1240px; padding: 20px 24px 52px; }

/* ----- cards, chips, buttons ----- */
.view-app .card {
  padding: 16px; border: 1px solid var(--j-line); border-radius: 14px; background: var(--j-card); box-shadow: var(--j-shadow);
  transition: border-color .25s, transform .3s var(--j-ease), box-shadow .3s var(--j-ease), background-color .35s;
}
.view-app .card::before { display: none; }
.mini { display: block; font: 500 11px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--j-teal); }
.chip {
  display: inline-flex; align-items: center; min-height: 26px; padding: 2px 11px; border-radius: 999px;
  background: var(--j-card3); color: var(--j-ink); font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.chip.amber { background: rgba(251, 176, 64, .2); color: #8A5400; }
.chip.green { background: rgba(18, 147, 95, .15); color: #0C6B45; }
.chip.teal { background: rgba(13, 211, 242, .16); color: #0B5F6E; }
:root:not([data-skin="daylight"]) .chip.amber { color: #FFD28A; }
:root:not([data-skin="daylight"]) .chip.green { background: rgba(61, 220, 151, .16); color: #8FF0C4; }
:root:not([data-skin="daylight"]) .chip.teal { color: #7FE6F8; }
.pbadge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; vertical-align: middle;
  background: rgba(13, 211, 242, .15); color: #0B5F6E; font-size: 12.5px; font-weight: 800;
}
.pbadge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pbadge.done { background: rgba(18, 147, 95, .15); color: #0C6B45; }
.pbadge.wait { background: rgba(251, 176, 64, .2); color: #7A4D05; }
:root:not([data-skin="daylight"]) .pbadge { color: #7FE6F8; }
:root:not([data-skin="daylight"]) .pbadge.done { background: rgba(61, 220, 151, .16); color: #8FF0C4; }
:root:not([data-skin="daylight"]) .pbadge.wait { color: #FFD28A; }

.abtn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 16px; border-radius: 10px;
  border: 1px solid var(--j-line); background: var(--j-card); color: var(--j-ink); font: 800 14px/1.1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: border-color .2s, transform .2s var(--j-ease), box-shadow .25s, filter .2s;
}
.abtn:hover { border-color: var(--amber); transform: translateY(-1px); }
.abtn.pri { background: var(--amber); border-color: var(--amber); color: #06152B; }
.abtn.pri:hover { filter: brightness(1.06); box-shadow: 0 10px 28px rgba(251, 176, 64, .38); transform: translateY(-2px); }

/* ----- dashboard ----- */
.hello h2 { margin: 0; font: 600 28px/1.1 var(--font-display); letter-spacing: -.03em; color: var(--j-ink); }
.hello p { margin: 6px 0 0; color: var(--j-mut); font-size: 14.5px; }
.dash { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 12px; margin-top: 16px; }
.dash-main { display: grid; gap: 12px; align-content: start; min-width: 0; }
.ringcard { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 14px; }
.ring { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.ring svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-track { stroke: var(--j-card3); }
.ring-prog { stroke-linecap: round; transition: stroke-dashoffset 1.3s var(--j-ease); }
.ring b { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -62%); font: 600 36px/1 var(--font-display); letter-spacing: -.03em; color: var(--j-ink); }
.ring em { position: absolute; top: 50%; left: 50%; transform: translate(-50%, 18px); font-style: normal; font: 800 9.5px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--j-mut); }
.ring-text { display: block; margin-top: 14px; }
.ring-step { display: block; font: 600 18px/1.2 var(--font-display); color: var(--j-ink); }
.ring-stage { display: block; margin-top: 3px; color: var(--j-mut); font-size: 12.5px; font-weight: 700; }

.nextcard { padding: 18px 20px; border-left: 4px solid var(--amber); }
.nextcard strong { display: block; margin: 5px 0 6px; font: 600 20px/1.25 var(--font-display); letter-spacing: -.02em; color: var(--j-ink); }
.nextcard p { margin: 0; color: var(--j-mut); font-size: 14px; }
.qrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
a.kpi { display: block; color: inherit; text-decoration: none; }
a.kpi:hover, a.unl-card.open:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(7, 24, 46, .12); }
.kpi span { display: block; color: var(--j-mut); font-size: 13px; font-weight: 700; }
.kpi b { display: block; margin: 2px 0 1px; font: 600 19px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--j-ink); }
.kpi em { font-style: normal; font-size: 12.5px; font-weight: 800; color: #12935F; }
:root:not([data-skin="daylight"]) .kpi em { color: #3DDC97; }

.update { margin-top: 12px; padding: 14px 18px; }
.update p { margin: 6px 0 4px; color: var(--j-ink); font-size: 15px; line-height: 1.5; }
.update small { color: var(--j-mut); font-size: 12.5px; font-weight: 700; }

.unl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.unl-card { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.unl-card b { display: block; font: 600 17px/1.2 var(--font-display); color: var(--j-ink); }
.unl-card .sub { display: block; margin-top: 2px; color: var(--j-mut); font-size: 13px; }
.unl-card.lk { opacity: .66; background: var(--j-card2); box-shadow: none; }

/* ----- shared pages: same cards, tiles and type as the dashboard ----- */
.view-app .content-card {
  max-width: 1050px; padding: 20px 22px; border-radius: 14px; border-color: var(--j-line); background: var(--j-card); box-shadow: var(--j-shadow);
  transition: background-color .35s, border-color .25s;
}
.view-app .section-heading { border-bottom-color: var(--j-line); }
.view-app .section-heading h2, .view-app .empty-state h2 { color: var(--j-ink); }
.view-app .section-heading p, .view-app .empty-state p, .view-app .subtle { color: var(--j-mut); }
.view-app .eyebrow { color: var(--j-teal); }
.view-app .detail-item, .view-app .date-row > div, .view-app .linked-job, .view-app .cancellation-summary > div {
  border-color: transparent; border-radius: 10px; background: var(--j-card2);
}
.view-app .detail-item strong, .view-app .date-row strong { color: var(--j-ink); font: 600 17px/1.3 var(--font-display); letter-spacing: -.01em; }
.view-app .detail-item span, .view-app .date-row span, .view-app .description-block > span, .view-app .payment-stage small, .view-app .payment-summary span { color: var(--j-mut); }
.view-app .description-block { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--j-card2); }
.view-app .description-block p { color: var(--j-ink); font-size: 14.5px; line-height: 1.5; }
.view-app .info-banner { max-width: 1050px; border-radius: 12px; border-color: rgba(13, 211, 242, .28); border-left-color: rgba(13, 211, 242, .28); background: rgba(13, 211, 242, .08); color: var(--j-ink); }
.view-app .info-banner strong { color: var(--j-ink); }
.view-app .status-badge, .view-app .read-only-badge { border: 0; background: var(--j-card3); color: var(--j-ink); font: 800 12.5px/1.2 var(--font-body); letter-spacing: 0; }
.view-app .status-complete { background: rgba(18, 147, 95, .15); color: #0C6B45; }
.view-app .status-progress { background: rgba(13, 211, 242, .15); color: #0B5F6E; }
.view-app .status-planned { background: rgba(251, 176, 64, .2); color: #7A4D05; }
.view-app .status-attention { background: rgba(216, 68, 92, .14); color: #A92E46; }
:root:not([data-skin="daylight"]) .view-app .status-complete { color: #8FF0C4; }
:root:not([data-skin="daylight"]) .view-app .status-progress { color: #7FE6F8; }
:root:not([data-skin="daylight"]) .view-app .status-planned { color: #FFD28A; }
:root:not([data-skin="daylight"]) .view-app .status-attention { color: #FFB3C1; }

.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 4px; }
.spec > div { padding: 14px 16px; border-radius: 10px; background: var(--j-card2); }
.spec span { display: block; margin-bottom: 6px; color: var(--j-mut); font: 500 11px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.spec strong { color: var(--j-ink); font: 600 17px/1.3 var(--font-display); }

.view-app .payment-stage { border-color: var(--j-line); border-radius: 12px; background: var(--j-card2); transition: border-color .25s, box-shadow .25s; }
.view-app .payment-stage > span { background: var(--j-card3); color: var(--j-ink); font: 800 14px/1 var(--font-body); }
.view-app .payment-stage strong { color: var(--j-ink); font-size: 20px; letter-spacing: -.02em; }
.view-app .payment-stage.paid > span { background: var(--j-teal); color: #fff; }
:root:not([data-skin="daylight"]) .view-app .payment-stage.paid > span { color: #06152B; }
.view-app .payment-stage.next { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(251, 176, 64, .22); }
.view-app .payment-stage.next > span { background: var(--amber); color: #06152B; }
.view-app .payment-summary > div { border-color: rgba(13, 211, 242, .28); border-radius: 12px; background: rgba(13, 211, 242, .08); }
.view-app .payment-summary strong { color: var(--j-ink); }
.view-app .cancellation-action { border-radius: 12px; }
.view-app .document-button, .view-app .primary-button, .view-app .cancellation-action a { border-radius: 10px; font-weight: 800; }
.view-app .document-icon { width: 44px; height: 52px; flex-basis: 44px; border-radius: 8px; background: rgba(216, 68, 92, .14); color: #A92E46; box-shadow: none; }
:root:not([data-skin="daylight"]) .view-app .document-icon { color: #FFB3C1; }
.view-app .document-info h2 { color: var(--j-ink); }
.view-app .document-info p, .view-app .message-meta, .view-app .message-job { color: var(--j-mut); }
.view-app .message-card p { color: var(--j-ink); }
.view-app .message-type { border: 0; background: rgba(13, 211, 242, .16); color: #0B5F6E; font-weight: 800; }
:root:not([data-skin="daylight"]) .view-app .message-type { color: #7FE6F8; }

/* ----- project journey: segmented progress + expandable stages ----- */
.seg-bar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.seg-bar i { display: block; height: 8px; border-radius: 99px; background: var(--j-card3); transition: background .5s; }
.seg-bar i.done { background: var(--j-teal); }
.seg-bar i.now { background: var(--amber); }
.seg-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 6px 0 18px; text-align: center; font-size: 11px; font-weight: 800; color: var(--j-mut); }
.seg-labels span.on { color: var(--j-ink); }
.journey-dates { margin-bottom: 16px; }
.tl { position: relative; margin: 0; padding: 0; list-style: none; }
.tl::before { content: ""; position: absolute; left: 20px; top: 20px; bottom: 20px; width: 2px; background: var(--j-line); }
.tl li { position: relative; }
.tl details { border-radius: 12px; }
.tl summary { list-style: none; cursor: pointer; }
.tl summary::-webkit-details-marker { display: none; }
.tl-row {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px;
  border-radius: 12px; transition: background-color .2s;
}
.tl-row:hover { background: var(--j-card2); }
.tl .mk {
  position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--j-line); background: var(--j-card); font-size: 13px; font-weight: 800; color: var(--j-ink);
}
.tl .done .mk { background: var(--j-teal); border-color: var(--j-teal); color: #fff; }
.tl .cur .mk { background: var(--amber); border-color: var(--amber); color: #06152B; animation: j-ping 2s infinite; }
:root:not([data-skin="daylight"]) .tl .done .mk { color: #06152B; }
.tl-text b { display: block; font: 600 15.5px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--j-ink); }
.tl-text small { display: block; color: var(--j-mut); font-size: 13px; font-weight: 600; }
.tl .fut .tl-text b { color: var(--j-mut); }
.tl .more { margin: 2px 0 8px 52px; padding: 12px 14px; border-radius: 10px; background: var(--j-card2); color: var(--j-ink); font-size: 14px; line-height: 1.5; animation: rise .5s var(--j-ease) both; }
.tl .more b { display: block; margin: 10px 0 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--j-mut); }
.tl .more b:first-child { margin-top: 0; }
.journey-status { margin-top: 12px; }

/* ----- motion ----- */
@keyframes j-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes j-ping { 70% { box-shadow: 0 0 0 10px rgba(251, 176, 64, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 176, 64, 0); } }
.view-app .rise { animation-duration: .65s; }
.hub-content > .rise:nth-child(2), .dash > .rise:nth-child(1) { animation-delay: .06s; }
.dash-main > .rise:nth-child(1) { animation-delay: .12s; }
.kpis > .rise:nth-child(1) { animation-delay: .2s; }
.kpis > .rise:nth-child(2) { animation-delay: .27s; }
.kpis > .rise:nth-child(3) { animation-delay: .34s; }
.hub-content > .update.rise { animation-delay: .4s; }
.unl > .rise:nth-child(1) { animation-delay: .46s; }
.unl > .rise:nth-child(2) { animation-delay: .52s; }

/* ----- small screens ----- */
@media (max-width: 1050px) {
  .view-app .hub-content { padding: 18px 18px 44px; }
}
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .ringcard { flex-direction: row; justify-content: flex-start; gap: 22px; text-align: left; }
  .ringcard .ring-text { margin-top: 0; }
}
@media (max-width: 760px) {
  .view-app .sidebar { flex-basis: auto; width: min(84vw, 300px); background: var(--j-side); box-shadow: none; }
  body.menu-open.view-app .sidebar { box-shadow: 8px 0 40px rgba(0, 0, 0, .45); }
  .view-app .board-header { min-height: 64px; padding: 10px 14px 10px 70px; }
  .view-app .board-header h1 { font-size: 18px; }
  .view-app .board-header .subtle { display: none; }
  .board-actions { gap: 8px; }
  .avatar { display: none; }
  .view-app .hub-content { padding: 16px 14px 36px; }
  .hello h2 { font-size: 24px; }
  .kpis, .unl { grid-template-columns: 1fr; }
  .ringcard { flex-direction: column; text-align: center; gap: 0; }
  .ringcard .ring-text { margin-top: 14px; }
  .tl .more { margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .view-app *, .view-app *::before, .view-app *::after { animation: none !important; transition: none !important; }
}
