:root {
    color-scheme: light;
    --bg: #eef3f4;
    --bg-deep: #071116;
    --surface: #ffffff;
    --surface-soft: #f6f9fa;
    --surface-dark: #0c1a20;
    --text: #102127;
    --muted: #687b82;
    --line: #dfe8eb;
    --line-strong: #ccdadd;
    --primary: #071116;
    --primary-2: #10252c;
    --accent: #18cdbd;
    --accent-strong: #0ea89d;
    --accent-soft: #e4fbf8;
    --warning: #d9961a;
    --warning-soft: #fff6df;
    --danger: #c73f51;
    --danger-soft: #fff0f2;
    --blue: #2f69d9;
    --blue-soft: #edf3ff;
    --purple: #7254ce;
    --purple-soft: #f2efff;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 8px 22px rgba(7, 25, 31, .06);
    --shadow: 0 18px 50px rgba(7, 25, 31, .09);
    --shadow-dark: 0 28px 80px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { min-height: 100%; font-family: Arial, "Noto Sans Hebrew", "Segoe UI", sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; transform: none !important; }
svg { display: block; }
h1, h2, h3, p { margin-top: 0; }

/* Application shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 286px minmax(0, 1fr); }
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 28px 20px 22px;
    color: #fff;
    background:
        linear-gradient(rgba(24, 205, 189, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 205, 189, .035) 1px, transparent 1px),
        radial-gradient(circle at 15% 10%, rgba(24, 205, 189, .18), transparent 32%),
        linear-gradient(180deg, #071116 0%, #091920 100%);
    background-size: 34px 34px, 34px 34px, auto, auto;
    border-left: 1px solid rgba(255,255,255,.06);
    z-index: 20;
}
.sidebar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(145deg, transparent 0 58%, rgba(24,205,189,.04) 58% 59%, transparent 59% 100%);
}
.sidebar-glow { position: absolute; width: 170px; height: 170px; border-radius: 50%; background: rgba(24,205,189,.12); filter: blur(58px); top: -70px; left: -75px; pointer-events: none; }
.brand { position: relative; z-index: 2; display: block; padding: 0 6px 20px; }
.brand img { display: block; width: 100%; max-width: 225px; height: auto; }
.system-chip { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0 6px 28px; padding: 8px 11px; border: 1px solid rgba(52,240,220,.2); background: rgba(24,205,189,.07); border-radius: 999px; color: #b6d8d5; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.system-chip span, .topbar-badge span, .inventory-rule span, .hero-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(24,205,189,.12); }
.nav { position: relative; z-index: 2; display: grid; gap: 8px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; color: #aec0c6; font-size: 14px; font-weight: 800; transition: .18s ease; }
.nav a svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a:first-child svg path { fill: currentColor; stroke: none; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.06); transform: translateX(-2px); }
.nav a.active { color: #fff; background: linear-gradient(110deg, rgba(24,205,189,.20), rgba(24,205,189,.07)); border-color: rgba(52,240,220,.22); box-shadow: inset -3px 0 0 var(--accent); }
.nav a.active svg { color: var(--accent); }
.sidebar-status { position: relative; z-index: 2; margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 14px; border-radius: 15px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); }
.status-orb { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(24,205,189,.09), 0 0 18px rgba(24,205,189,.7); }
.sidebar-status div:last-child { display: grid; gap: 3px; }
.sidebar-status strong { font-size: 12px; }
.sidebar-status small { color: #7f9aa2; font-size: 10px; }
.sidebar-footer { position: relative; z-index: 2; display: grid; gap: 12px; margin-top: 13px; }
.user-card { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid rgba(255,255,255,.075); border-radius: 15px; background: rgba(255,255,255,.035); }
.user-avatar { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #0c8179); color: #06211e; font-weight: 900; box-shadow: 0 8px 20px rgba(24,205,189,.18); }
.user-card > div { min-width: 0; display: grid; gap: 3px; }
.user-card strong { font-size: 13px; }
.user-card small { color: #8fa8af; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }

.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { min-height: 104px; position: sticky; top: 0; z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 34px; background: rgba(247,250,251,.90); border-bottom: 1px solid rgba(207,220,224,.8); backdrop-filter: blur(18px); }
.topbar-title h1 { margin: 2px 0 0; font-size: clamp(24px, 2.2vw, 31px); letter-spacing: -.02em; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 7px; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.topbar-badge { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid #cceeea; background: var(--accent-soft); color: #08756c; border-radius: 999px; font-size: 12px; font-weight: 900; }
.topbar-mark { width: 45px; height: 45px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.content { width: 100%; max-width: 1540px; margin: 0 auto; padding: 28px 34px 48px; flex: 1; }
.app-footer { display: flex; justify-content: space-between; gap: 18px; padding: 18px 34px 24px; color: #84949a; font-size: 11px; border-top: 1px solid rgba(207,220,224,.7); }

/* Hero */
.dashboard-hero { position: relative; overflow: hidden; min-height: 245px; margin-bottom: 22px; padding: 34px 36px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); align-items: center; gap: 30px; border-radius: var(--radius-lg); color: #fff; background:
    linear-gradient(rgba(52,240,220,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,240,220,.055) 1px, transparent 1px),
    radial-gradient(circle at 18% 24%, rgba(24,205,189,.18), transparent 35%),
    linear-gradient(135deg, #071116, #0c2229 68%, #0c3135);
    background-size: 32px 32px, 32px 32px, auto, auto;
    box-shadow: var(--shadow-dark);
}
.dashboard-hero::after { content: ""; position: absolute; width: 340px; height: 340px; left: -130px; bottom: -230px; border: 1px solid rgba(52,240,220,.15); border-radius: 50%; box-shadow: 0 0 0 35px rgba(52,240,220,.025), 0 0 0 75px rgba(52,240,220,.02); }
.dashboard-hero-copy { position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; color: #9ed9d4; font-size: 12px; font-weight: 900; margin-bottom: 15px; }
.dashboard-hero h2 { max-width: 720px; margin-bottom: 13px; font-size: clamp(27px, 3vw, 42px); line-height: 1.14; letter-spacing: -.035em; }
.dashboard-hero p { max-width: 690px; margin-bottom: 22px; color: #b1c4c9; line-height: 1.75; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dashboard-hero-visual { position: relative; z-index: 2; min-height: 175px; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; background: rgba(255,255,255,.035); backdrop-filter: blur(10px); overflow: hidden; }
.dashboard-hero-visual > img { position: absolute; top: 19px; left: 19px; width: 62px; height: 62px; border-radius: 18px; box-shadow: 0 15px 35px rgba(0,0,0,.35); }
.mini-chart { position: absolute; inset: 58px 24px 22px 24px; display: flex; align-items: flex-end; gap: 8px; direction: ltr; }
.mini-chart span { flex: 1; min-width: 7px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #34f0dc, rgba(24,205,189,.18)); box-shadow: 0 -8px 25px rgba(24,205,189,.12); }
.hero-stat { position: absolute; top: 20px; right: 22px; display: grid; text-align: right; }
.hero-stat strong { font-size: 35px; line-height: 1; }
.hero-stat small { color: #91aeb4; margin-top: 5px; }

/* Cards and metrics */
.metrics-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric-card { position: relative; overflow: hidden; min-height: 132px; display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.metric-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9d9dc; }
.metric-card::after { content: ""; position: absolute; width: 90px; height: 90px; left: -35px; bottom: -45px; border-radius: 50%; background: rgba(24,205,189,.06); }
.metric-card > div { display: grid; min-width: 0; }
.metric-card > div > span { color: var(--muted); font-size: 12px; font-weight: 800; }
.metric-card strong { margin-top: 7px; font-size: 32px; line-height: 1; letter-spacing: -.03em; }
.metric-card small { margin-top: 7px; color: #93a1a6; font-size: 10px; }
.metric-icon { flex: 0 0 39px; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-soft); color: var(--primary-2); border: 1px solid var(--line); }
.metric-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.metric-card.accent { background: linear-gradient(145deg, #ecfdfb, #fff); border-color: #c9efea; }
.metric-card.accent .metric-icon { color: #08776d; background: #d9f8f4; border-color: #bfece6; }
.metric-card.warning { background: linear-gradient(145deg, #fff9ea, #fff); border-color: #f0dfb4; }
.metric-card.warning .metric-icon { color: #a96d04; background: #fff2cf; border-color: #f1dcaa; }
.metric-new .metric-icon { color: var(--blue); background: var(--blue-soft); border-color: #d8e4ff; }
.metric-ready .metric-icon { color: var(--purple); background: var(--purple-soft); border-color: #e2dbff; }

.section-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin-bottom: 0; font-size: 21px; letter-spacing: -.02em; }
.section-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.location-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.location-card { position: relative; overflow: hidden; padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #f8fbfb, #fff); }
.location-card::after { content: ""; position: absolute; width: 135px; height: 135px; left: -65px; top: -72px; border-radius: 50%; background: rgba(24,205,189,.07); }
.location-primary { border-color: #c8e8e5; background: linear-gradient(145deg, #f0fcfa, #fff); }
.location-card-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.location-pin { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--primary); color: var(--accent); }
.location-pin svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.location-card-head > div { display: grid; gap: 3px; }
.location-name { font-size: 17px; font-weight: 900; }
.location-card-head small { color: var(--muted); font-size: 10px; }
.stock-number { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 10px; margin: 24px 0 18px; }
.stock-number strong { font-size: 50px; line-height: .9; letter-spacing: -.05em; }
.stock-number span { color: var(--muted); font-size: 11px; padding-bottom: 4px; }
.location-card dl { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding-top: 15px; border-top: 1px solid var(--line); }
.location-card dl div { display: grid; gap: 5px; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.72); border: 1px solid #e7eff1; }
dt { color: var(--muted); font-size: 11px; }
dd { margin: 0; font-weight: 900; }
.inventory-rule { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; margin: 14px 0 0; padding: 11px 12px; border-radius: 11px; background: var(--accent-soft); color: #08736a; font-size: 11px; font-weight: 800; }
.inventory-rule span { width: 6px; height: 6px; box-shadow: none; }

/* Buttons and links */
.button { min-height: 42px; border: 1px solid transparent; border-radius: 12px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; font-size: 13px; line-height: 1; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, #0b1b21, #071116); color: #fff; box-shadow: 0 10px 24px rgba(7,17,22,.16); }
.button-primary:hover { box-shadow: 0 14px 30px rgba(7,17,22,.24); }
.button-accent { background: linear-gradient(135deg, #34f0dc, #18cdbd); color: #06241f; box-shadow: 0 12px 30px rgba(24,205,189,.25); }
.button-dark-ghost { color: #d3e1e4; border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.045); }
.button-secondary { background: var(--accent-soft); color: #08766d; border-color: #c9ebe7; }
.button-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.sidebar .button-ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); color: #b8c9ce; }
.button-small { min-height: 34px; padding: 7px 11px; background: var(--surface-soft); color: var(--text); border-color: var(--line); font-size: 11px; }
.button-whatsapp { background: #e8faf0; color: #12804a; border-color: #cdeedb; }
.button-collected { background: linear-gradient(135deg, #1dd5a0, #0fab7f); color: #fff; box-shadow: 0 12px 28px rgba(15,171,127,.22); }
.button-danger-outline { background: var(--danger-soft); color: var(--danger); border-color: #f2ccd2; }
.button-login { min-height: 51px; margin-top: 3px; }
.full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: #087a70; font-weight: 900; font-size: 12px; }
.text-link span { transition: transform .15s ease; }
.text-link:hover span { transform: translateX(-3px); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; min-width: 780px; border-collapse: collapse; background: #fff; }
th, td { padding: 15px 14px; border-bottom: 1px solid #e8eff1; text-align: right; vertical-align: middle; }
th { color: #73868d; background: #f7fafb; font-size: 10px; text-transform: uppercase; letter-spacing: .045em; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #fbfdfd; }
tbody tr:last-child td { border-bottom: 0; }
td { font-size: 13px; }
td small { display: block; max-width: 260px; margin-top: 4px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { margin-top: 12px; color: var(--text); font-size: 15px; }
.empty-state span { margin-top: 6px; font-size: 11px; }
.empty-icon { width: 48px; height: 48px; margin: 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--primary); color: var(--accent); font-weight: 900; }
.quantity-pill { display: inline-grid; place-items: center; min-width: 31px; height: 31px; border-radius: 10px; background: var(--surface-soft); border: 1px solid var(--line); font-weight: 900; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 10px; font-size: 10px; font-weight: 900; white-space: nowrap; border: 1px solid transparent; }
.badge-large { padding: 10px 15px; font-size: 12px; }
.badge-new { background: var(--blue-soft); color: var(--blue); border-color: #d8e4ff; }
.badge-contacted { background: var(--purple-soft); color: var(--purple); border-color: #e1d9ff; }
.badge-ready { background: var(--warning-soft); color: #a36a07; border-color: #f0dfb2; }
.badge-collected { background: var(--accent-soft); color: #08756c; border-color: #c8ece8; }
.badge-cancelled { background: var(--danger-soft); color: var(--danger); border-color: #f2ccd2; }
.badge-review { background: #fff2d7; color: #a46900; border-color: #f2dca8; }
.counter, .locked-label { display: inline-flex; align-items: center; padding: 8px 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 900; }
.locked-label { background: var(--accent-soft); border-color: #c9ebe7; color: #08756c; }

/* Forms */
.filters { display: grid; grid-template-columns: minmax(260px, 1fr) 220px auto auto; gap: 12px; align-items: end; }
label { display: grid; gap: 7px; color: var(--text); font-weight: 800; }
label > span { font-size: 12px; }
input, select { width: 100%; min-height: 44px; border: 1px solid #d5e0e3; border-radius: 11px; padding: 11px 13px; background: #fff; color: var(--text); outline: none; transition: .15s ease; }
input:focus, select:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 4px rgba(24,205,189,.11); }
.input-shell { position: relative; }
.input-shell svg { position: absolute; right: 13px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: #819299; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.input-shell input { padding-right: 42px; }
.stack-form { display: grid; gap: 16px; margin-top: 23px; }
.stack-form small { color: var(--muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel-form { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }
.inventory-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)) auto; gap: 14px; align-items: end; }
.stock-input-card { border: 1px solid var(--line); background: linear-gradient(145deg, #f7fbfb, #fff); border-radius: 16px; padding: 17px; }
.stock-input-card > span { font-size: 16px; font-weight: 900; }
.stock-input-card input { font-size: 27px; font-weight: 900; background: #fff; }
.stock-input-card small { color: var(--muted); font-size: 10px; }
.manager-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.2fr 1fr auto; gap: 12px; align-items: end; }
.manager-form small { color: var(--muted); font-weight: 400; }
.copy-field { display: flex; align-items: center; gap: 10px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.copy-field code { direction: ltr; text-align: left; flex: 1; overflow-wrap: anywhere; color: #31454c; }

/* Order view */
.order-header-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 22px; padding: 27px 29px; border-radius: var(--radius-lg); color: #fff; background:
    linear-gradient(rgba(52,240,220,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,240,220,.05) 1px, transparent 1px),
    linear-gradient(135deg, #071116, #102b32);
    background-size: 30px 30px, 30px 30px, auto;
    box-shadow: var(--shadow-dark);
}
.order-header-card::after { content: "MN"; position: absolute; left: 20px; bottom: -28px; color: rgba(52,240,220,.06); font-size: 105px; font-weight: 900; }
.order-header-card > * { position: relative; z-index: 2; }
.order-header-card .eyebrow { color: #8fc5c0; }
.order-header-card h2 { margin-bottom: 10px; font-size: 28px; }
.inline-meta { display: flex; flex-wrap: wrap; gap: 9px; color: #b9cbd0; font-size: 12px; }
.inline-meta span { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.15); }
.two-column { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(320px,.75fr); gap: 22px; }
.details-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 0 0 18px; }
.details-grid div { padding: 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; }
.details-grid dd { margin-top: 7px; }
.rule-box { margin: 18px 0; padding: 15px; background: var(--warning-soft); border: 1px solid #eedcab; border-radius: 14px; }
.rule-box strong { display: block; margin-bottom: 6px; }
.rule-box p { margin: 0; color: #6e531d; line-height: 1.65; font-size: 12px; }
.rule-box.prominent { background: var(--accent-soft); border-color: #c7ebe7; }
.rule-box.prominent p { color: #12665f; }
.actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.actions-grid form { margin: 0; }
.collected-summary, .cancelled-summary { grid-column: 1/-1; padding: 18px; display: grid; gap: 6px; border-radius: 14px; }
.collected-summary { color: #096d64; background: var(--accent-soft); border: 1px solid #c6ebe6; }
.cancelled-summary { color: var(--danger); background: var(--danger-soft); border: 1px solid #f0cbd1; }
.items-list { display: grid; gap: 10px; }
.items-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); background: var(--surface-soft); border-radius: 12px; }
.items-list small { display: block; margin-top: 5px; color: var(--muted); }
.document-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.timeline { display: grid; gap: 0; }
.timeline article { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 20px; }
.timeline article:not(:last-child)::before { content: ""; position: absolute; right: 7px; top: 15px; bottom: -2px; width: 2px; background: var(--line); }
.timeline-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 4px solid var(--accent-soft); z-index: 1; }
.timeline p { margin: 5px 0; color: var(--muted); font-size: 12px; }
.timeline small { color: var(--muted); font-size: 10px; }
.positive { color: #0c8a66; font-weight: 900; }
.negative { color: var(--danger); font-weight: 900; }

/* Alerts */
.alert { max-width: 100%; margin-bottom: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 800; font-size: 12px; box-shadow: var(--shadow-sm); }
.alert-success { background: var(--accent-soft); color: #096e65; border: 1px solid #c6ebe6; }
.alert-error { background: var(--danger-soft); color: #a82e3c; border: 1px solid #f1cbd1; }

/* Authentication */
.guest-shell { min-height: 100vh; display: grid; place-items: stretch; background: #071116; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(430px, .82fr); direction: ltr; }
.auth-brand-panel, .auth-form-panel { direction: rtl; }
.auth-brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(34px, 5vw, 68px); color: #fff; background:
    linear-gradient(rgba(52,240,220,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,240,220,.05) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(24,205,189,.19), transparent 34%),
    linear-gradient(145deg, #071116 0%, #0a1e25 60%, #0b2d31 100%);
    background-size: 38px 38px, 38px 38px, auto, auto;
}
.auth-brand-panel::before { content: ""; position: absolute; width: 510px; height: 510px; left: -320px; bottom: -310px; border: 1px solid rgba(52,240,220,.15); border-radius: 50%; box-shadow: 0 0 0 55px rgba(52,240,220,.025), 0 0 0 115px rgba(52,240,220,.018); }
.auth-brand-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-brand-top img { width: min(340px, 62%); height: auto; }
.auth-secure-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 999px; background: rgba(24,205,189,.075); border: 1px solid rgba(52,240,220,.2); color: #b5d8d4; font-size: 10px; font-weight: 900; }
.auth-secure-chip span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(24,205,189,.11); }
.auth-brand-copy { position: relative; z-index: 2; max-width: 760px; margin-top: auto; padding-top: 80px; }
.auth-brand-copy .eyebrow { color: #7fc8c2; }
.auth-brand-copy h1 { max-width: 680px; margin-bottom: 18px; font-size: clamp(38px, 5vw, 66px); line-height: 1.05; letter-spacing: -.055em; }
.auth-brand-copy > p:last-child { max-width: 640px; color: #9db6bc; font-size: 14px; line-height: 1.8; }
.auth-feature-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; margin-top: 30px; }
.auth-feature-grid article { padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(255,255,255,.035); backdrop-filter: blur(8px); display: grid; gap: 5px; }
.auth-feature-grid strong { color: var(--accent); font-size: 11px; }
.auth-feature-grid span { font-size: 13px; font-weight: 900; }
.auth-feature-grid small { color: #77949b; font-size: 9px; }
.auth-chart { position: relative; z-index: 2; height: 120px; margin: 28px -20px -20px; opacity: .7; direction: ltr; }
.auth-chart svg { width: 100%; height: 100%; }
.chart-area { fill: rgba(24,205,189,.09); }
.chart-line { fill: none; stroke: #34f0dc; stroke-width: 2.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 8px rgba(52,240,220,.42)); }
.auth-form-panel { display: grid; place-items: center; padding: 40px; background: #f4f8f8; }
.auth-card { width: min(465px, 100%); padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 28px 70px rgba(7,25,31,.13); }
.auth-mobile-logo { display: none; }
.auth-icon-wrap { width: 55px; height: 55px; margin-bottom: 22px; }
.auth-icon-wrap img { width: 100%; height: 100%; border-radius: 17px; box-shadow: 0 14px 30px rgba(7,17,22,.18); }
.auth-card h2 { margin-bottom: 10px; font-size: 29px; letter-spacing: -.025em; }
.muted { color: var(--muted); line-height: 1.65; font-size: 12px; }
.auth-security-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: #7d8e94; font-size: 10px; }
.auth-security-note svg { width: 17px; height: 17px; fill: none; stroke: var(--accent-strong); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Installer */
.install-wrap { width: min(780px, 100%); margin: auto; padding: 30px; }
.install-card { width: 100%; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.install-card h1 { font-size: 28px; margin-bottom: 10px; }
.requirements { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 18px 0; }
.requirement { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; font-weight: 800; font-size: 12px; }
.requirement.passed { background: var(--accent-soft); color: #096e65; }
.requirement.failed { background: var(--danger-soft); color: var(--danger); }

/* Responsive */
@media (max-width: 1180px) {
    .metrics-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .two-column { grid-template-columns: 1fr; }
    .details-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .auth-layout { grid-template-columns: 1fr 470px; }
    .auth-brand-copy h1 { font-size: 46px; }
}

@media (max-width: 930px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; padding: 18px; }
    .sidebar-glow, .sidebar-status { display: none; }
    .brand { width: 230px; padding-bottom: 10px; }
    .system-chip { position: absolute; left: 18px; top: 25px; margin: 0; }
    .nav { grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 8px; }
    .nav a { justify-content: center; min-height: 45px; padding: 10px 7px; font-size: 11px; }
    .nav a.active { box-shadow: inset 0 -3px 0 var(--accent); }
    .sidebar-footer { display: none; }
    .topbar { position: static; min-height: 90px; padding: 20px; }
    .content { padding: 20px; }
    .app-footer { padding-inline: 20px; }
    .dashboard-hero { grid-template-columns: 1fr; }
    .dashboard-hero-visual { min-height: 150px; }
    .filters, .inventory-form { grid-template-columns: 1fr; }
    .manager-form { grid-template-columns: 1fr 1fr; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-brand-panel { display: none; }
    .auth-form-panel { min-height: 100vh; }
    .auth-mobile-logo { display: block; margin-bottom: 24px; }
    .auth-mobile-logo img { width: 270px; max-width: 100%; }
}

@media (max-width: 650px) {
    .system-chip { display: none; }
    .brand { margin: 0 auto; }
    .nav a { flex-direction: column; gap: 5px; }
    .nav a svg { width: 18px; height: 18px; }
    .topbar { align-items: flex-start; }
    .topbar-mark { display: none; }
    .topbar-badge { display: none; }
    .content { padding: 16px; }
    .dashboard-hero { padding: 26px 22px; border-radius: 20px; }
    .dashboard-hero h2 { font-size: 28px; }
    .metrics-grid, .location-grid, .details-grid, .actions-grid, .form-grid, .requirements { grid-template-columns: 1fr; }
    .section-card { padding: 18px; border-radius: 16px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .order-header-card { align-items: flex-start; flex-direction: column; padding: 22px; }
    .inline-form { grid-template-columns: 1fr; }
    .copy-field { align-items: stretch; flex-direction: column; }
    .manager-form { grid-template-columns: 1fr; }
    .auth-form-panel { padding: 20px; }
    .auth-card { padding: 26px 22px; }
    .app-footer { flex-direction: column; align-items: center; text-align: center; }
}
.install-logo { display: block; width: min(320px, 82%); height: auto; margin: 0 0 24px auto; }
.install-locked-card { text-align: center; }
.install-locked-card .install-logo { margin-inline: auto; }
.install-success-icon { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 19px; background: var(--accent-soft); color: var(--accent-strong); border: 1px solid #c5ebe6; font-size: 30px; font-weight: 900; }

.details-grid .details-wide { grid-column: 1 / -1; }
.note-detail { background: #fff8e8 !important; border-color: #f0dfad !important; }
.note-detail dd { color: #74571f; line-height: 1.6; }

/* iCount connection panel */
.icount-card { scroll-margin-top: 24px; }
.connection-status { display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;font-size:12px;font-weight:900; }
.connection-status i { width:9px;height:9px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px rgba(0,0,0,.05); }
.connection-status.is-live { color:#087a68;background:#ddf7f2;border:1px solid #b5e9df; }
.connection-status.is-off { color:#8b3c47;background:#fff0f2;border:1px solid #f0cbd1; }
.icount-flow { display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:12px;align-items:center;margin:18px 0; }
.icount-flow > div { display:flex;align-items:center;gap:10px;padding:14px;background:var(--surface-soft);border:1px solid var(--line);border-radius:14px; }
.icount-flow b { display:grid;place-items:center;min-width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff; }
.icount-flow span { font-size:12px;font-weight:800; }
.flow-arrow { color:var(--accent);font-size:22px; }
.icount-settings-form { margin-top:20px;padding-top:18px;border-top:1px solid var(--line); }
.icount-settings-form em { color:var(--accent);font-style:normal;font-size:10px; }
.webhook-panel { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end;margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#f8fbfc,#eef8f7); }
.field-title { display:block;font-size:12px;font-weight:900;margin-bottom:8px; }
.webhook-actions { display:flex;gap:9px;align-items:center; }
.webhook-actions form { margin:0; }
.icount-meta { display:flex;flex-wrap:wrap;gap:18px;margin-top:16px;padding-top:14px;border-top:1px dashed var(--line);color:var(--muted);font-size:11px; }
.webhook-events-table { margin-top:16px; }
.button-danger { background:#a82f43;color:white;border-color:#a82f43; }
.button-danger:hover { background:#8f2638; }
@media (max-width: 820px) {
  .icount-flow { grid-template-columns:1fr; }
  .flow-arrow { transform:rotate(-90deg);justify-self:center; }
  .webhook-panel { grid-template-columns:1fr; }
  .webhook-actions { flex-wrap:wrap; }
}

/* One-screen installer */
.install-card-wide { width:min(920px,calc(100vw - 28px)); }
.setup-form { gap:18px; }
.setup-section { padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft); }
.setup-section-title { display:flex;align-items:center;gap:12px;margin-bottom:16px; }
.setup-section-title > b { display:grid;place-items:center;min-width:34px;height:34px;border-radius:50%;background:var(--accent);color:#fff;font-size:14px; }
.setup-section-title h2 { margin:0 0 3px;font-size:17px; }
.setup-section-title p { margin:0;color:var(--muted);font-size:11px; }
.setup-submit { min-height:54px;font-size:15px; }

/* =========================================================
   MN HOTKEY v0.4.2 — MISHEL NISIMOV PREMIUM BRANDING
   ========================================================= */
:root {
    --mn-cyan: #14d9ea;
    --mn-cyan-2: #49f2ff;
    --mn-gold: #f5c451;
    --mn-gold-2: #ffe08a;
    --mn-ink: #05090c;
    --mn-panel: #0b1217;
}

/* Real brand imagery */
.brand img {
    width: 100%;
    max-width: 245px;
    height: 74px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    border: 1px solid rgba(73,242,255,.13);
    box-shadow: 0 14px 38px rgba(0,0,0,.28);
}
.topbar-mark,
.auth-icon-wrap img,
.dashboard-hero-visual > img {
    object-fit: cover;
    background: #071116;
    border: 1px solid rgba(245,196,81,.36);
}
.auth-brand-top img {
    width: min(390px, 70%);
    height: 130px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    border: 1px solid rgba(73,242,255,.15);
    box-shadow: 0 18px 48px rgba(0,0,0,.32);
}
.auth-mobile-logo img {
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.2);
}
.dashboard-hero {
    border: 1px solid rgba(245,196,81,.15);
    background:
        linear-gradient(rgba(73,242,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(73,242,255,.04) 1px, transparent 1px),
        radial-gradient(circle at 18% 24%, rgba(20,217,234,.23), transparent 35%),
        radial-gradient(circle at 82% 30%, rgba(245,196,81,.11), transparent 30%),
        linear-gradient(135deg, #04080b, #0a171d 62%, #0c2b31);
    background-size: 32px 32px, 32px 32px, auto, auto, auto;
}
.button-accent {
    background: linear-gradient(135deg, var(--mn-cyan-2), var(--mn-cyan));
    border-color: rgba(255,224,138,.3);
    box-shadow: 0 12px 30px rgba(20,217,234,.25), inset 0 1px 0 rgba(255,255,255,.7);
}

/* New installer */
.guest-page,
.guest-shell { background: #05090c; }
.install-v2-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(390px, .82fr) minmax(620px, 1.18fr);
    direction: ltr;
    background: #05090c;
}
.install-v2-brand,
.install-v2-main { direction: rtl; }
.install-v2-brand {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(30px, 4vw, 58px);
    color: #fff;
    background:
        linear-gradient(rgba(73,242,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(73,242,255,.04) 1px, transparent 1px),
        radial-gradient(circle at 15% 10%, rgba(20,217,234,.28), transparent 34%),
        radial-gradient(circle at 88% 78%, rgba(245,196,81,.10), transparent 32%),
        linear-gradient(148deg, #030608 0%, #071116 50%, #0b242a 100%);
    background-size: 38px 38px, 38px 38px, auto, auto, auto;
    border-left: 1px solid rgba(255,255,255,.08);
}
.install-v2-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(143deg, transparent 0 59%, rgba(73,242,255,.05) 59% 60%, transparent 60% 100%);
}
.install-v2-brand-glow {
    position: absolute;
    width: 310px;
    height: 310px;
    top: -170px;
    left: -150px;
    border-radius: 50%;
    background: rgba(20,217,234,.17);
    filter: blur(70px);
}
.install-v2-logo-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.install-v2-wide-logo {
    width: min(330px, 62%);
    height: 112px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    border: 1px solid rgba(73,242,255,.15);
    box-shadow: 0 18px 52px rgba(0,0,0,.35);
}
.install-v2-secure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(73,242,255,.24);
    background: rgba(20,217,234,.08);
    color: #b9e8ec;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}
.install-v2-secure i,
.install-v2-brand-footer i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mn-cyan);
    box-shadow: 0 0 0 5px rgba(20,217,234,.10), 0 0 15px rgba(20,217,234,.75);
}
.install-v2-brand-copy {
    position: relative;
    z-index: 2;
    margin-top: clamp(52px, 7vh, 90px);
}
.install-v2-kicker {
    margin: 0 0 15px;
    color: var(--mn-cyan-2);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}
.install-v2-brand-copy h1 {
    max-width: 640px;
    margin: 0 0 18px;
    font-size: clamp(36px, 4vw, 62px);
    line-height: 1.04;
    letter-spacing: -.05em;
}
.install-v2-brand-copy h1 span {
    display: block;
    margin-top: 8px;
    color: var(--mn-cyan-2);
    text-shadow: 0 0 30px rgba(20,217,234,.25);
}
.install-v2-brand-copy > p:last-child {
    max-width: 620px;
    margin: 0;
    color: #a2b7bd;
    font-size: 14px;
    line-height: 1.8;
}
.install-v2-feature-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    margin-top: 30px;
}
.install-v2-feature-grid article {
    min-height: 105px;
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
    backdrop-filter: blur(8px);
}
.install-v2-feature-grid strong { color: var(--mn-gold); font-size: 11px; }
.install-v2-feature-grid span { font-size: 13px; font-weight: 900; }
.install-v2-feature-grid small { color: #6f8b93; font-size: 9px; line-height: 1.5; }
.install-v2-emblem {
    position: absolute;
    width: min(35vw, 460px);
    height: min(35vw, 460px);
    left: -80px;
    bottom: -95px;
    opacity: .28;
    pointer-events: none;
}
.install-v2-emblem img {
    position: absolute;
    inset: 12%;
    width: 76%;
    height: 76%;
    object-fit: cover;
    border-radius: 50%;
    filter: saturate(1.15) contrast(1.05);
}
.install-v2-rings,
.install-v2-rings::before,
.install-v2-rings::after {
    position: absolute;
    inset: 0;
    content: "";
    border: 1px solid rgba(73,242,255,.18);
    border-radius: 50%;
}
.install-v2-rings::before { inset: 11%; border-color: rgba(245,196,81,.14); }
.install-v2-rings::after { inset: 23%; border-color: rgba(73,242,255,.12); }
.install-v2-brand-footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: auto;
    padding-top: 28px;
    color: #79939a;
    font-size: 10px;
    font-weight: 800;
}
.install-v2-brand-footer span { display: inline-flex; align-items: center; gap: 8px; }
.install-v2-brand-footer i { width: 5px; height: 5px; box-shadow: 0 0 10px rgba(20,217,234,.65); }

.install-v2-main {
    min-width: 0;
    padding: clamp(22px, 4vw, 58px);
    background:
        radial-gradient(circle at 90% 0, rgba(20,217,234,.09), transparent 30%),
        linear-gradient(180deg, #f4f7f8 0%, #eaf0f2 100%);
}
.install-v2-card {
    width: min(920px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid #d8e3e6;
    background: rgba(255,255,255,.96);
    box-shadow: 0 30px 80px rgba(7,25,31,.13);
}
.install-v2-card-head {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 29px 32px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 0, rgba(20,217,234,.21), transparent 32%),
        radial-gradient(circle at 90% 100%, rgba(245,196,81,.11), transparent 28%),
        linear-gradient(135deg, #05090c, #0a1b22);
}
.install-v2-card-head::after {
    content: "";
    position: absolute;
    inset: auto -100px -130px auto;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(73,242,255,.12);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(73,242,255,.025), 0 0 0 75px rgba(245,196,81,.018);
}
.install-v2-card-head > div { position: relative; z-index: 2; }
.install-v2-card-head img {
    position: relative;
    z-index: 2;
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(245,196,81,.42);
    box-shadow: 0 18px 45px rgba(0,0,0,.36);
}
.install-v2-step-label {
    margin: 0 0 8px;
    color: var(--mn-cyan-2);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
}
.install-v2-card-head h2 {
    margin: 0 0 9px;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -.035em;
}
.install-v2-card-head p:last-child {
    max-width: 650px;
    margin: 0;
    color: #9fb3b9;
    font-size: 12px;
    line-height: 1.7;
}
.install-v2-requirements {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 8px;
    padding: 18px 22px;
    background: #f8fbfb;
    border-bottom: 1px solid #e3ebed;
}
.install-v2-requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 11px;
    border: 1px solid;
    font-weight: 800;
}
.install-v2-requirement span {
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}
.install-v2-requirement small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
}
.install-v2-requirement.is-ok { color: #08766d; border-color: #c9ece7; background: #edfcfa; }
.install-v2-requirement.is-ok span { color: #073c37; background: #9df4e9; }
.install-v2-requirement.is-failed { color: #a63646; border-color: #f0cbd1; background: #fff2f4; }
.install-v2-requirement.is-failed span { color: #fff; background: #c94b5d; }
.install-v2-form { display: grid; gap: 0; padding: 0 30px 30px; }
.install-v2-section {
    padding: 27px 0;
    border-bottom: 1px solid #e4ecee;
}
.install-v2-section-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}
.install-v2-section-title > b {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #08161c, #0c2b31);
    color: var(--mn-cyan-2);
    border: 1px solid rgba(245,196,81,.32);
    box-shadow: 0 9px 22px rgba(7,25,31,.15);
}
.install-v2-section-title h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.02em; }
.install-v2-section-title p { margin: 0; color: #7c8d93; font-size: 10px; }
.install-v2-fields { display: grid; gap: 12px; }
.install-v2-fields.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.install-v2-fields.four { grid-template-columns: .85fr .55fr 1fr 1fr; }
.install-v2-form label { display: grid; gap: 7px; color: #13252b; font-weight: 900; }
.install-v2-form label > span { font-size: 11px; }
.install-v2-form input {
    width: 100%;
    min-height: 47px;
    border: 1px solid #cedcdf;
    border-radius: 12px;
    padding: 11px 13px;
    background: #fbfdfd;
    color: #102127;
    outline: 0;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.install-v2-form input:focus {
    border-color: #18cfe0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20,217,234,.11), 0 10px 25px rgba(7,25,31,.05);
}
.install-v2-form label small { color: #83949a; font-size: 9px; font-weight: 400; }
.install-v2-full { margin-top: 12px; }
.stock-fields input { font-size: 25px; font-weight: 900; text-align: center; }
.install-v2-submit {
    min-height: 58px;
    margin-top: 25px;
    border: 1px solid rgba(245,196,81,.42);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #052024;
    background: linear-gradient(135deg, #56f4ff, #17d7e8 55%, #13bdcb);
    box-shadow: 0 16px 38px rgba(20,217,234,.25), inset 0 1px 0 rgba(255,255,255,.7);
    font-size: 14px;
    font-weight: 900;
    transition: transform .17s ease, box-shadow .17s ease;
}
.install-v2-submit:hover { transform: translateY(-2px); box-shadow: 0 20px 45px rgba(20,217,234,.33); }
.install-v2-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-v2-security-note { margin: 13px 0 0; text-align: center; color: #7b8d93; font-size: 9px; }

@media (max-width: 1250px) {
    .install-v2-shell { grid-template-columns: minmax(330px, .7fr) minmax(560px, 1.3fr); }
    .install-v2-feature-grid { grid-template-columns: 1fr; }
    .install-v2-feature-grid article { min-height: 0; }
    .install-v2-emblem { opacity: .18; }
}
@media (max-width: 980px) {
    .install-v2-shell { grid-template-columns: 1fr; }
    .install-v2-brand { position: relative; height: auto; min-height: 380px; padding: 26px; }
    .install-v2-brand-copy { margin-top: 42px; }
    .install-v2-brand-copy h1 { font-size: 38px; }
    .install-v2-feature-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .install-v2-brand-footer { display: none; }
    .install-v2-emblem { width: 320px; height: 320px; left: -80px; bottom: -130px; }
    .install-v2-main { padding: 22px; }
}
@media (max-width: 720px) {
    .install-v2-brand { min-height: 330px; }
    .install-v2-logo-row { align-items: flex-start; }
    .install-v2-wide-logo { width: 210px; height: 80px; }
    .install-v2-secure { font-size: 8px; }
    .install-v2-brand-copy h1 { font-size: 32px; }
    .install-v2-feature-grid { display: none; }
    .install-v2-main { padding: 12px; }
    .install-v2-card { border-radius: 20px; }
    .install-v2-card-head { padding: 23px 20px; }
    .install-v2-card-head img { width: 63px; height: 63px; flex-basis: 63px; border-radius: 18px; }
    .install-v2-card-head h2 { font-size: 25px; }
    .install-v2-requirements { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 14px; }
    .install-v2-form { padding: 0 18px 22px; }
    .install-v2-fields.two,
    .install-v2-fields.four { grid-template-columns: 1fr; }
}

/* =========================================================
   MN TRADING Tools Hub v0.5.0
   ========================================================= */
.portal-v050 {
    --portal-cyan: #22d8e8;
    --portal-cyan-bright: #69f3ff;
    --portal-gold: #efc85a;
    --portal-gold-soft: #ffe7a0;
    --portal-black: #04080a;
    --portal-panel: #091319;
    --portal-panel-2: #0c1d24;
}

/* Sidebar: clean portal hierarchy */
.portal-brand img { height: 68px; object-position: center; }
.nav-section-label {
    margin: 20px 12px 4px;
    padding-top: 17px;
    border-top: 1px solid rgba(255,255,255,.075);
    color: #5e7880;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Centered login */
.login-center-shell {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 32px 18px;
    background:
        linear-gradient(rgba(34,216,232,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,216,232,.035) 1px, transparent 1px),
        radial-gradient(circle at 18% 15%, rgba(34,216,232,.22), transparent 31%),
        radial-gradient(circle at 83% 78%, rgba(239,200,90,.10), transparent 28%),
        linear-gradient(145deg, #030607 0%, #071116 55%, #09232a 100%);
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
}
.login-center-shell::before,
.login-center-shell::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}
.login-center-shell::before {
    width: 560px;
    height: 560px;
    top: -360px;
    right: -210px;
    border: 1px solid rgba(105,243,255,.12);
    box-shadow: 0 0 0 55px rgba(105,243,255,.02), 0 0 0 115px rgba(239,200,90,.014);
}
.login-center-shell::after {
    width: 420px;
    height: 420px;
    bottom: -310px;
    left: -170px;
    background: rgba(34,216,232,.08);
    filter: blur(90px);
}
.login-background-mark {
    position: absolute;
    z-index: -1;
    width: min(76vw, 760px);
    height: min(76vw, 760px);
    display: grid;
    place-items: center;
    opacity: .055;
    filter: saturate(.3);
    transform: rotate(-7deg);
}
.login-background-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.login-center-card {
    width: min(470px, 100%);
    padding: 34px 36px 29px;
    color: #eef8f9;
    border: 1px solid rgba(105,243,255,.16);
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(11,24,30,.97), rgba(5,11,14,.98));
    box-shadow: 0 35px 95px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter: blur(22px);
}
.login-logo-wrap {
    width: min(300px, 82%);
    height: 92px;
    margin: 0 auto 17px;
    overflow: hidden;
    border: 1px solid rgba(105,243,255,.13);
    border-radius: 17px;
    box-shadow: 0 15px 42px rgba(0,0,0,.32);
}
.login-logo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.login-private-chip {
    width: fit-content;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    color: #a9c2c8;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    font-size: 9px;
    font-weight: 900;
}
.login-private-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--portal-cyan); box-shadow: 0 0 0 5px rgba(34,216,232,.10), 0 0 15px rgba(34,216,232,.65); }
.login-heading { text-align: center; }
.login-heading .eyebrow { color: var(--portal-cyan); }
.login-heading h1 { margin: 0 0 9px; color: #fff; font-size: clamp(28px, 4vw, 36px); line-height: 1.1; letter-spacing: -.04em; }
.login-heading > p:last-child { margin: 0 0 25px; color: #86a0a7; font-size: 12px; }
.login-center-form { gap: 15px; }
.login-center-form label { color: #c7d7db; }
.login-center-form .input-shell {
    border-color: rgba(255,255,255,.10);
    background: rgba(255,255,255,.045);
}
.login-center-form .input-shell:focus-within {
    border-color: rgba(105,243,255,.65);
    box-shadow: 0 0 0 4px rgba(34,216,232,.10), 0 13px 30px rgba(0,0,0,.18);
}
.login-center-form input {
    color: #10242b !important;
    -webkit-text-fill-color: #10242b;
    caret-color: #0a7f89;
    background: #f7fbfc;
}
.login-center-form input::placeholder {
    color: #6f8188;
    -webkit-text-fill-color: #6f8188;
    opacity: 1;
}
.login-center-form input:-webkit-autofill,
.login-center-form input:-webkit-autofill:hover,
.login-center-form input:-webkit-autofill:focus,
.login-center-form input:-webkit-autofill:active {
    color: #10242b !important;
    -webkit-text-fill-color: #10242b !important;
    caret-color: #0a7f89;
    -webkit-box-shadow: 0 0 0 1000px #f7fbfc inset !important;
    box-shadow: 0 0 0 1000px #f7fbfc inset !important;
}
.login-center-form .input-shell svg { stroke: var(--portal-cyan); }
.login-center-form .button-login {
    min-height: 52px;
    margin-top: 3px;
    color: #041a1d;
    border: 1px solid rgba(255,231,160,.36);
    background: linear-gradient(135deg, var(--portal-cyan-bright), var(--portal-cyan));
    box-shadow: 0 16px 38px rgba(34,216,232,.22), inset 0 1px 0 rgba(255,255,255,.7);
}
.login-security-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
    padding-top: 17px;
    color: #647c83;
    border-top: 1px solid rgba(255,255,255,.065);
    font-size: 9px;
}
.login-security-line svg { width: 16px; height: 16px; fill: none; stroke: var(--portal-cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Portal dashboard */
.portal-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 300px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: center;
    gap: 36px;
    padding: 42px 44px;
    margin-bottom: 18px;
    color: #fff;
    border: 1px solid rgba(239,200,90,.16);
    border-radius: 28px;
    background:
        linear-gradient(rgba(105,243,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(105,243,255,.04) 1px, transparent 1px),
        radial-gradient(circle at 18% 20%, rgba(34,216,232,.23), transparent 34%),
        radial-gradient(circle at 86% 74%, rgba(239,200,90,.10), transparent 29%),
        linear-gradient(135deg, #030709, #08161c 58%, #0b2a31);
    background-size: 36px 36px, 36px 36px, auto, auto, auto;
    box-shadow: 0 28px 75px rgba(3,10,13,.28);
}
.portal-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    right: -275px;
    top: -240px;
    border: 1px solid rgba(105,243,255,.15);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(105,243,255,.02), 0 0 0 96px rgba(239,200,90,.012);
}
.portal-hero-copy { position: relative; z-index: 2; }
.portal-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; color: #8db3ba; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.portal-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--portal-cyan); box-shadow: 0 0 0 6px rgba(34,216,232,.10), 0 0 18px rgba(34,216,232,.6); }
.portal-hero h2 { margin: 0 0 14px; font-size: clamp(37px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -.055em; }
.portal-hero p { max-width: 720px; margin: 0 0 25px; color: #9bb1b7; font-size: 14px; line-height: 1.8; }
.portal-primary-action { display: inline-flex; align-items: center; gap: 10px; }
.portal-primary-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.portal-hero-emblem { position: relative; min-height: 220px; display: grid; place-items: center; }
.portal-hero-emblem img { position: relative; z-index: 3; width: 155px; height: 155px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(239,200,90,.42); box-shadow: 0 25px 58px rgba(0,0,0,.46), 0 0 45px rgba(34,216,232,.14); }
.portal-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(105,243,255,.15); }
.portal-ring-one { width: 210px; height: 210px; }
.portal-ring-two { width: 275px; height: 275px; border-color: rgba(239,200,90,.095); }
.portal-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 22px; }
.portal-summary-grid article { display: grid; gap: 6px; min-height: 115px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.portal-summary-grid span { color: var(--muted); font-size: 11px; font-weight: 900; }
.portal-summary-grid strong { font-size: 30px; line-height: 1; }
.portal-summary-grid small { color: #8a9ba0; font-size: 9px; }
.portal-section { padding: 25px; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-sm); }
.portal-section-heading { margin-bottom: 18px; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.tool-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(235px, .9fr) minmax(0, 1.1fr); min-height: 285px; color: var(--text); border: 1px solid #d7e2e5; border-radius: 23px; background: #fff; box-shadow: 0 18px 45px rgba(7,25,31,.08); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tool-card:hover { transform: translateY(-5px); border-color: #a8dfe2; box-shadow: 0 27px 65px rgba(7,25,31,.14); }
.tool-card-image { position: relative; min-height: 285px; overflow: hidden; background: #071116; }
.tool-card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(7,17,22,.48)); pointer-events: none; }
.tool-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tool-card:hover .tool-card-image img { transform: scale(1.035); }
.tool-status { position: absolute; z-index: 2; top: 14px; right: 14px; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; color: #d9fffb; background: rgba(4,12,15,.78); border: 1px solid rgba(105,243,255,.20); backdrop-filter: blur(12px); font-size: 9px; font-weight: 900; }
.tool-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--portal-cyan); box-shadow: 0 0 0 4px rgba(34,216,232,.12); }
.tool-card-body { display: flex; flex-direction: column; padding: 25px; }
.tool-card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.tool-card-title-row span { color: var(--accent-strong); font-size: 9px; font-weight: 900; letter-spacing: .07em; }
.tool-card-title-row h3 { margin: 4px 0 0; font-size: 26px; letter-spacing: -.04em; }
.tool-card-title-row b { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; color: #062024; border-radius: 13px; background: var(--portal-cyan); font-size: 20px; }
.tool-card-body > p { margin: 16px 0 20px; color: #6e8187; font-size: 11px; line-height: 1.7; }
.tool-feature-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.tool-feature-list span { padding: 7px 9px; color: #53666c; border: 1px solid #dae5e7; border-radius: 999px; background: #f6f9fa; font-size: 8px; font-weight: 900; }
.tool-card-coming-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 285px; padding: 34px; text-align: center; border-style: dashed; background: linear-gradient(145deg, #f8fbfb, #eef4f5); box-shadow: none; }
.tool-card-coming-soon:hover { transform: none; box-shadow: none; }
.coming-plus { width: 57px; height: 57px; margin-bottom: 16px; display: grid; place-items: center; color: #638087; border: 1px dashed #a9c2c7; border-radius: 18px; font-size: 32px; font-weight: 300; }
.tool-card-coming-soon h3 { margin: 0 0 9px; font-size: 21px; }
.tool-card-coming-soon p { max-width: 320px; margin: 0 0 15px; color: #84959a; font-size: 10px; line-height: 1.7; }
.tool-card-coming-soon > span { color: #8ea1a6; font-size: 9px; font-weight: 900; }
.products-page-head { min-height: 170px; display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 20px; padding: 28px 32px; color: #fff; border: 1px solid rgba(239,200,90,.15); border-radius: 24px; background: radial-gradient(circle at 15% 0, rgba(34,216,232,.19), transparent 35%), linear-gradient(135deg, #05090c, #0a2229); box-shadow: var(--shadow-dark); }
.products-page-head h2 { margin: 0 0 8px; font-size: 34px; }
.products-page-head p:last-child { margin: 0; color: #8ca5ac; font-size: 12px; }
.products-page-head img { width: 100px; height: 100px; object-fit: cover; border-radius: 25px; border: 1px solid rgba(239,200,90,.36); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.products-full-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

/* MN HOTKEY product management hero */
.hotkey-management-hero { grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); }
.hotkey-product-visual { position: relative; min-height: 225px; overflow: hidden; border: 1px solid rgba(105,243,255,.14); border-radius: 22px; background: #05090c; box-shadow: 0 22px 55px rgba(0,0,0,.34); }
.hotkey-product-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(3,9,12,.88)); pointer-events: none; }
.hotkey-product-visual > img { width: 100%; height: 100%; min-height: 225px; object-fit: cover; }
.hotkey-product-overlay { position: absolute; z-index: 2; right: 20px; bottom: 17px; display: grid; gap: 3px; }
.hotkey-product-overlay span { color: var(--portal-cyan); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.hotkey-product-overlay strong { color: #fff; font-size: 21px; letter-spacing: .02em; }

@media (max-width: 1280px) {
    .tools-grid, .products-full-grid { grid-template-columns: 1fr; }
    .tool-card { grid-template-columns: minmax(270px, .85fr) minmax(0, 1.15fr); }
}
@media (max-width: 1050px) {
    .portal-hero { grid-template-columns: 1fr; }
    .portal-hero-emblem { display: none; }
    .portal-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .hotkey-management-hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .login-center-card { padding: 28px 21px 24px; border-radius: 22px; }
    .login-logo-wrap { height: 78px; }
    .portal-hero { min-height: 0; padding: 30px 24px; border-radius: 22px; }
    .portal-hero h2 { font-size: 38px; }
    .portal-summary-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .portal-summary-grid article { min-height: 100px; padding: 15px; }
    .portal-section { padding: 18px; }
    .tool-card { grid-template-columns: 1fr; }
    .tool-card-image { min-height: 220px; max-height: 250px; }
    .tool-card-body { padding: 21px; }
    .products-page-head { padding: 24px; }
    .products-page-head img { width: 72px; height: 72px; border-radius: 19px; }
}
@media (max-width: 460px) {
    .portal-summary-grid { grid-template-columns: 1fr; }
    .portal-hero h2 { font-size: 32px; }
    .portal-hero p { font-size: 12px; }
    .login-center-shell { padding: 16px 11px; }
    .login-center-card { padding: 24px 17px 21px; }
}

/* =========================================================
   MN TRADING PLATFORM 0.5.1 — hierarchy and product context
   ========================================================= */
.portal-v050, .portal-v051 {
    --portal-cyan: #22d8e8;
    --portal-cyan-bright: #69f3ff;
    --portal-gold: #efc85a;
    --portal-gold-soft: #ffe7a0;
    --portal-black: #04080a;
    --portal-panel: #091319;
    --portal-panel-2: #0c1d24;
}

.platform-main-nav { margin-bottom: 0; }
.product-context-nav {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 9px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.product-context-head {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px;
    color: #fff;
    border: 1px solid rgba(239,200,90,.18);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(34,216,232,.10), rgba(239,200,90,.055));
}
.product-context-head img { width: 42px; height: 42px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(239,200,90,.34); }
.product-context-head div { min-width: 0; display: grid; gap: 3px; }
.product-context-head small { color: #86a3aa; font-size: 9px; font-weight: 800; }
.product-context-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.product-context-head > span { color: var(--portal-cyan); font-size: 19px; }
.product-context-links { display: grid; gap: 6px; padding-right: 10px; }
.product-context-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 12px;
    color: #8ea7ad;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    transition: .16s ease;
}
.product-context-links a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-context-links a:hover { color: #fff; background: rgba(255,255,255,.045); }
.product-context-links a.active { color: #fff; border-color: rgba(34,216,232,.19); background: rgba(34,216,232,.09); }
.product-context-links a.active svg { color: var(--portal-cyan); }

.platform-home-hero { min-height: 330px; }
.platform-home-hero h2 { max-width: 790px; }
.platform-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.platform-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}
.platform-tool-card {
    position: relative;
    overflow: hidden;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    color: var(--text);
    border: 1px solid #d7e2e5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 17px 43px rgba(7,25,31,.075);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.platform-tool-card.is-active:hover { transform: translateY(-5px); border-color: #9fdde1; box-shadow: 0 28px 64px rgba(7,25,31,.14); }
.platform-tool-image { position: relative; height: 175px; overflow: hidden; background: #061014; }
.platform-tool-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(4,10,13,.63)); pointer-events: none; }
.platform-tool-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.platform-tool-card.is-active:hover .platform-tool-image img { transform: scale(1.035); }
.platform-tool-copy { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.platform-tool-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.platform-tool-meta span { color: #087b72; font-size: 9px; font-weight: 900; letter-spacing: .05em; }
.platform-tool-meta small { color: #8a9ba0; font-size: 8px; }
.platform-tool-copy h3 { margin: 7px 0 10px; font-size: 25px; letter-spacing: -.035em; }
.platform-tool-copy > p { margin: 0 0 18px; color: #6c7f85; font-size: 11px; line-height: 1.7; }
.platform-tool-open { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #0a766d; font-size: 11px; font-weight: 900; }
.platform-tool-open b { width: 34px; height: 34px; display: grid; place-items: center; color: #062024; border-radius: 11px; background: var(--portal-cyan); font-size: 18px; }
.platform-tool-card.is-planned { justify-content: center; padding: 22px; border-style: dashed; background: linear-gradient(145deg, #f8fbfb, #eef4f5); box-shadow: none; }
.planned-tool-icon { width: 54px; height: 54px; margin-bottom: 18px; display: grid; place-items: center; color: #628087; border: 1px dashed #a6bfc4; border-radius: 17px; font-size: 30px; font-weight: 300; }
.planned-tool-label { margin-top: auto; color: #829499; font-size: 9px; font-weight: 900; }
.platform-categories-section { margin-top: 22px; padding: 25px; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-sm); }
.category-card {
    display: grid;
    grid-template-columns: 68px minmax(0,1fr) auto;
    align-items: center;
    gap: 17px;
    padding: 17px;
    border: 1px solid #d8e3e6;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbfb, #fff);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.category-card:hover { transform: translateY(-3px); border-color: #a8dee1; box-shadow: var(--shadow-sm); }
.category-card-icon { width: 68px; height: 68px; padding: 5px; border-radius: 18px; background: #061014; box-shadow: 0 12px 30px rgba(4,13,17,.18); }
.category-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.category-card > div:nth-child(2) { display: grid; gap: 4px; }
.category-card small { color: #087b72; font-size: 9px; font-weight: 900; }
.category-card strong { font-size: 20px; }
.category-card p { margin: 0; color: #7b8e94; font-size: 10px; }
.category-card > b { width: 38px; height: 38px; display: grid; place-items: center; color: #062024; border-radius: 12px; background: var(--portal-cyan); font-size: 20px; }

.physical-products-head h2 { font-size: clamp(30px, 3vw, 42px); }
.products-category-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 17px;
    color: #50666d;
    border: 1px solid #dce6e8;
    border-radius: 15px;
    background: #f7fafb;
    font-size: 10px;
}
.products-category-note strong { color: #102127; font-size: 11px; }
.product-management-hint { margin-top: 17px; padding-top: 15px; color: #0a776e; border-top: 1px solid #e0e9eb; font-size: 10px; font-weight: 900; }

@media (max-width: 1180px) {
    .platform-tools-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 930px) {
    .product-context-nav { margin-top: 13px; padding-top: 13px; }
    .product-context-head { grid-template-columns: 38px minmax(0,1fr) auto; }
    .product-context-head img { width: 38px; height: 38px; }
    .product-context-links { grid-template-columns: repeat(3, minmax(0,1fr)); padding-right: 0; }
    .product-context-links a { justify-content: center; min-height: 44px; padding: 8px 7px; text-align: center; font-size: 10px; }
    .product-context-links a.active { box-shadow: inset 0 -3px 0 var(--portal-cyan); }
}
@media (max-width: 760px) {
    .platform-tools-grid { grid-template-columns: 1fr; }
    .platform-tool-card { min-height: 0; }
    .platform-tool-image { height: 205px; }
    .platform-categories-section { padding: 18px; }
    .products-category-note { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
    .product-context-head { padding: 9px; }
    .product-context-links { grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
    .product-context-links a { flex-direction: column; gap: 5px; font-size: 9px; }
    .category-card { grid-template-columns: 54px minmax(0,1fr) auto; gap: 12px; padding: 13px; }
    .category-card-icon { width: 54px; height: 54px; border-radius: 15px; }
    .category-card strong { font-size: 17px; }
}

/* =========================================================
   MN PLATFORM 0.5.2 — dynamic products and scalable tool nav
   ========================================================= */
.portal-v052 {
    --portal-cyan: #22d8e8;
    --portal-cyan-bright: #69f3ff;
    --portal-gold: #efc85a;
    --portal-black: #04080a;
    --portal-panel: #091319;
}
.portal-v052 .sidebar { overflow-x: hidden; overflow-y: auto; }
.portal-v052 .platform-main-nav { grid-auto-rows: minmax(50px, auto); }
.portal-v052 .platform-empty-tool { min-height: 260px; }
.platform-products-launcher { margin-top: 0; margin-bottom: 22px; }
.products-admin-head > div { flex: 1; }
.products-head-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.persistence-note { border-color: rgba(24,205,189,.35); background: linear-gradient(135deg, #effcfb, #f8fbfb); }
.persistence-note strong { color: #08776e; }
.dynamic-products-grid { display: grid; gap: 20px; }
.dynamic-product-card { display: block; min-height: 0; }
.dynamic-product-card.is-draft { opacity: .78; border-style: dashed; }
.product-card-main { display: grid; grid-template-columns: minmax(235px,.9fr) minmax(0,1.1fr); min-height: 285px; }
.product-owner-actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 14px 18px; border-top: 1px solid #e2eaec; background: #f8fbfb; }
.product-owner-actions form { margin: 0; }
.product-owner-actions .button { min-height: 38px; padding: 8px 13px; font-size: 10px; }
.empty-products-state { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-products-state h2 { margin: 0 0 8px; }
.empty-products-state p { color: var(--muted); }

.product-form-hero,
.product-detail-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 28px 31px;
    color: #fff;
    border: 1px solid rgba(34,216,232,.16);
    border-radius: 25px;
    background:
        linear-gradient(rgba(34,216,232,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,216,232,.045) 1px, transparent 1px),
        radial-gradient(circle at 10% 5%, rgba(34,216,232,.18), transparent 36%),
        linear-gradient(135deg, #050a0d, #0a2229);
    background-size: 30px 30px, 30px 30px, auto, auto;
    box-shadow: var(--shadow-dark);
}
.product-form-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.product-form-hero h2, .product-detail-copy h2 { margin: 0 0 10px; font-size: clamp(30px,4vw,45px); }
.product-form-hero p:last-child, .product-detail-copy > p { max-width: 720px; margin: 0; color: #9bb3b9; line-height: 1.75; }
.product-editor-form { display: grid; gap: 16px; }
.product-editor-main { padding: 25px; }
.product-editor-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 25px; }
.product-form-fields { display: grid; gap: 17px; }
.product-form-fields label { display: grid; gap: 8px; }
.product-form-fields label > span { color: #334b52; font-size: 11px; font-weight: 900; }
.product-form-fields input,
.product-form-fields textarea,
.product-form-fields select { width: 100%; border: 1px solid #d5e1e4; border-radius: 13px; background: #fbfdfd; color: #11262c; padding: 13px 14px; outline: none; transition: .16s ease; }
.product-form-fields textarea { resize: vertical; min-height: 145px; }
.product-form-fields input:focus,
.product-form-fields textarea:focus,
.product-form-fields select:focus { border-color: #75dcd7; box-shadow: 0 0 0 4px rgba(24,205,189,.11); }
.product-form-fields small { color: #82949a; font-size: 9px; }
.product-meta-grid { grid-template-columns: 1fr 1fr; }
.product-image-uploader { display: flex; flex-direction: column; gap: 13px; }
.product-image-preview { min-height: 320px; overflow: hidden; display: grid; place-items: center; color: #7c939a; border: 1px solid #d5e1e4; border-radius: 22px; background: radial-gradient(circle at 50% 20%, rgba(34,216,232,.13), transparent 38%), #071116; box-shadow: 0 20px 44px rgba(6,20,26,.15); }
.product-image-preview img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.upload-dropzone { position: relative; display: grid; gap: 4px; padding: 16px; text-align: center; color: #0b746c; border: 1px dashed #7cd9d4; border-radius: 15px; background: #effcfb; cursor: pointer; }
.upload-dropzone strong { font-size: 12px; }
.upload-dropzone span { color: #759198; font-size: 9px; }
.upload-dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.form-submit-bar { position: sticky; bottom: 14px; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; color: #9eb3b8; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: rgba(7,17,22,.96); box-shadow: 0 20px 45px rgba(4,15,19,.28); backdrop-filter: blur(16px); }
.form-submit-bar span { font-size: 10px; }

.product-detail-hero { display: grid; grid-template-columns: minmax(300px,.82fr) minmax(0,1.18fr); align-items: center; gap: 32px; }
.product-detail-image { overflow: hidden; min-height: 350px; border: 1px solid rgba(239,200,90,.28); border-radius: 22px; background: #020506; box-shadow: 0 24px 60px rgba(0,0,0,.36); }
.product-detail-image img { width: 100%; height: 100%; min-height: 350px; object-fit: cover; }
.product-detail-copy .tool-status { position: static; display: inline-flex; margin-bottom: 16px; }
.disabled-link { opacity: .55; pointer-events: none; }
.data-persistence-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.data-persistence-card p { margin: 5px 0 0; color: var(--muted); }

.update-center-card { max-width: 760px; margin: 20px auto; padding: 32px; text-align: center; border: 1px solid #d9e5e7; border-radius: 25px; background: #fff; box-shadow: var(--shadow); }
.update-center-icon { width: 70px; height: 70px; margin: 0 auto 18px; display: grid; place-items: center; color: #06211e; border-radius: 22px; background: linear-gradient(135deg, var(--portal-cyan), #11a69a); font-size: 35px; box-shadow: 0 15px 35px rgba(24,205,189,.23); }
.update-center-card h2 { margin: 0 0 10px; font-size: 32px; }
.update-center-card > p { color: var(--muted); line-height: 1.75; }
.update-status-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 23px 0; }
.update-status-grid article { display: grid; gap: 7px; padding: 16px; border: 1px solid #e0e9eb; border-radius: 14px; background: #f8fbfb; }
.update-status-grid span { color: #71868c; font-size: 9px; font-weight: 800; }
.update-status-grid strong { overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.pending-migrations, .update-ready-message { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; padding: 14px; color: #476067; border: 1px solid #dce7e9; border-radius: 14px; background: #f5f9fa; font-size: 10px; }
.pending-migrations span { padding: 5px 8px; border-radius: 8px; background: #e4fbf8; color: #08766d; font-weight: 900; }

@media (max-width: 930px) {
    .portal-v052 .platform-main-nav { grid-template-columns: repeat(auto-fit, minmax(86px,1fr)); }
    .portal-v052 .sidebar { overflow: visible; }
    .product-card-main { grid-template-columns: 1fr; }
    .product-editor-grid, .product-detail-hero { grid-template-columns: 1fr; }
    .product-image-preview, .product-image-preview img { min-height: 270px; }
}
@media (max-width: 650px) {
    .portal-v052 .platform-main-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .product-form-hero { align-items: flex-start; flex-direction: column; }
    .product-form-hero, .product-detail-hero { padding: 23px 20px; border-radius: 20px; }
    .product-meta-grid, .update-status-grid { grid-template-columns: 1fr; }
    .form-submit-bar, .data-persistence-card { align-items: stretch; flex-direction: column; }
    .form-submit-bar { position: static; }
    .products-admin-head { align-items: flex-start; }
    .products-admin-head img { display: none; }
    .product-owner-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .product-owner-actions form, .product-owner-actions .button { width: 100%; }
}

/* =========================================================
   MN PLATFORM 0.5.3 — per-product checkout and Webhook
   ========================================================= */
.product-checkout-editor { padding: 25px; }
.product-checkout-editor .form-grid { margin-top: 17px; }
.product-checkout-editor label { display: grid; gap: 8px; margin-top: 16px; }
.product-checkout-editor label > span { color: #334b52; font-size: 11px; font-weight: 900; }
.product-checkout-editor input { width: 100%; border: 1px solid #d5e1e4; border-radius: 13px; background: #fbfdfd; color: #11262c; padding: 13px 14px; outline: none; }
.product-checkout-editor input:focus { border-color: #75dcd7; box-shadow: 0 0 0 4px rgba(24,205,189,.11); }
.product-checkout-editor small { color: #82949a; font-size: 9px; line-height: 1.65; }
.checkout-isolation-rule { margin: 18px 0 4px; border-color: rgba(239,200,90,.45); background: linear-gradient(135deg,#fffbed,#fff); }
.product-webhook-panel { margin-top: 20px; }
.product-webhook-panel code { direction: ltr; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.checkout-control-center { margin-top: 18px; }
.product-checkout-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product-checkout-actions form { margin: 0; }
.product-quick-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.product-quick-stats article { display: grid; gap: 5px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.045); }
.product-quick-stats span { color: #91a8ae; font-size: 9px; font-weight: 800; }
.product-quick-stats strong { color: #fff; font-size: 18px; }
.product-checkout-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.product-checkout-summary p { margin: 5px 0 0; color: var(--muted); }
.connection-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 12px; border: 1px solid #d9e4e6; border-radius: 999px; background: #f7fafb; color: #667d83; font-size: 10px; font-weight: 900; }
.connection-status i { width: 8px; height: 8px; border-radius: 50%; background: #9aadb2; box-shadow: 0 0 0 4px rgba(154,173,178,.12); }
.connection-status.is-on { color: #08766d; border-color: rgba(24,205,189,.32); background: #effcf9; }
.connection-status.is-on i { background: #18cdbd; box-shadow: 0 0 0 4px rgba(24,205,189,.15); }
.connection-status.is-off { color: #8a6a13; border-color: rgba(239,200,90,.38); background: #fffbed; }
.connection-status.is-off i { background: #efc85a; box-shadow: 0 0 0 4px rgba(239,200,90,.16); }

@media (max-width: 650px) {
    .product-checkout-summary, .checkout-control-center .section-heading { align-items: flex-start; flex-direction: column; }
    .product-checkout-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    .product-checkout-actions form, .product-checkout-actions .button { width: 100%; }
    .product-quick-stats { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   MN PLATFORM 0.5.4 — Executive Control Center
   Premium enterprise UI, fast order actions and mobile polish
   ========================================================= */
:root {
    --v054-ink: #071014;
    --v054-ink-2: #0b1d23;
    --v054-cyan: #21d7df;
    --v054-cyan-bright: #78f8ff;
    --v054-cyan-soft: #e9fcfd;
    --v054-gold: #e7bf58;
    --v054-gold-soft: #fff8e6;
    --v054-surface: #ffffff;
    --v054-canvas: #f2f6f7;
    --v054-border: #dce7e9;
    --v054-text: #10242a;
    --v054-muted: #72858b;
    --v054-success: #0c9d78;
    --v054-danger: #c74758;
    --v054-radius-sm: 13px;
    --v054-radius: 20px;
    --v054-radius-lg: 30px;
    --v054-shadow-sm: 0 10px 28px rgba(7, 24, 30, .065);
    --v054-shadow: 0 24px 65px rgba(7, 24, 30, .105);
    --v054-shadow-dark: 0 34px 90px rgba(0, 0, 0, .34);
}

.portal-v054 {
    color: var(--v054-text);
    background:
        radial-gradient(circle at 85% 0, rgba(33, 215, 223, .08), transparent 26rem),
        linear-gradient(180deg, #f7fafb 0, var(--v054-canvas) 100%);
}
.portal-v054 * { scrollbar-width: thin; scrollbar-color: #9fb3b8 transparent; }
.portal-v054 ::selection { color: #041316; background: rgba(120, 248, 255, .75); }
.portal-v054 a, .portal-v054 button, .portal-v054 input, .portal-v054 select, .portal-v054 textarea { -webkit-tap-highlight-color: transparent; }
.portal-v054 a:focus-visible, .portal-v054 button:focus-visible, .portal-v054 input:focus-visible, .portal-v054 select:focus-visible, .portal-v054 textarea:focus-visible {
    outline: 3px solid rgba(33, 215, 223, .32);
    outline-offset: 2px;
}

/* Executive shell */
.portal-v054 .app-shell { grid-template-columns: 302px minmax(0, 1fr); }
.portal-v054 .sidebar {
    padding: 22px 18px 18px;
    background:
        linear-gradient(rgba(120,248,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120,248,255,.035) 1px, transparent 1px),
        radial-gradient(circle at 12% 8%, rgba(33,215,223,.19), transparent 30%),
        radial-gradient(circle at 88% 76%, rgba(231,191,88,.08), transparent 28%),
        linear-gradient(180deg, #030708 0%, #07151a 54%, #061116 100%);
    background-size: 38px 38px, 38px 38px, auto, auto, auto;
    border-left-color: rgba(120,248,255,.09);
    box-shadow: 18px 0 55px rgba(2, 12, 15, .17);
}
.portal-v054 .sidebar::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--v054-cyan), var(--v054-gold), transparent);
    opacity: .85;
}
.portal-v054 .portal-brand {
    min-height: 112px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    padding: 11px;
    overflow: hidden;
    border: 1px solid rgba(120,248,255,.13);
    border-radius: 22px;
    background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 18px 45px rgba(0,0,0,.22);
}
.portal-v054 .portal-brand img { width: 100%; max-width: 248px; height: 92px; object-fit: cover; border-radius: 15px; }
.portal-v054 .system-chip {
    align-self: stretch;
    justify-content: center;
    margin: 0 4px 18px;
    color: #9cb8be;
    border-color: rgba(120,248,255,.12);
    background: rgba(120,248,255,.045);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.portal-v054 .platform-main-nav { gap: 7px; }
.portal-v054 .platform-main-nav a {
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 15px;
    color: #9fb2b8;
    font-size: 13px;
}
.portal-v054 .platform-main-nav a:hover {
    color: #fff;
    border-color: rgba(120,248,255,.13);
    background: rgba(255,255,255,.055);
    transform: translateX(-3px);
}
.portal-v054 .platform-main-nav a.active {
    color: #fff;
    border-color: rgba(120,248,255,.25);
    background: linear-gradient(110deg, rgba(33,215,223,.22), rgba(33,215,223,.055));
    box-shadow: inset -3px 0 0 var(--v054-cyan), 0 12px 28px rgba(0,0,0,.16);
}
.portal-v054 .platform-main-nav a.active::after {
    content: "";
    position: absolute;
    left: 13px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--v054-gold);
    box-shadow: 0 0 12px rgba(231,191,88,.75);
}
.portal-v054 .product-context-nav {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid rgba(231,191,88,.13);
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(231,191,88,.055), rgba(255,255,255,.025));
}
.portal-v054 .product-context-head { border-radius: 13px; }
.portal-v054 .product-context-head img { border: 1px solid rgba(231,191,88,.35); }
.portal-v054 .product-context-links a { border-radius: 12px; }
.portal-v054 .sidebar-status, .portal-v054 .user-card {
    border-color: rgba(255,255,255,.075);
    background: rgba(255,255,255,.032);
}
.portal-v054 .user-avatar {
    color: #041619;
    background: linear-gradient(135deg, var(--v054-cyan-bright), #1fb5bc);
    box-shadow: 0 10px 25px rgba(33,215,223,.21);
}

.portal-v054 .main { background: transparent; }
.portal-v054 .topbar {
    min-height: 94px;
    padding: 18px clamp(20px, 3vw, 42px);
    border-bottom: 1px solid rgba(204,220,224,.75);
    background: rgba(248,251,252,.88);
    box-shadow: 0 10px 30px rgba(7,24,30,.035);
    backdrop-filter: blur(20px) saturate(125%);
}
.portal-v054 .topbar-title .eyebrow { margin-bottom: 5px; color: #698087; letter-spacing: .13em; }
.portal-v054 .topbar-title h1 { color: #0a1d23; font-size: clamp(25px, 2.2vw, 34px); font-weight: 900; letter-spacing: -.045em; }
.portal-v054 .topbar-badge {
    color: #0b746f;
    border-color: rgba(33,215,223,.28);
    background: linear-gradient(135deg, #effdfd, #e4faf8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.portal-v054 .topbar-mark {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 1px solid rgba(231,191,88,.32);
    border-radius: 15px;
    box-shadow: 0 11px 26px rgba(6,22,27,.16);
}
.portal-v054 .content { max-width: 1600px; padding: 30px clamp(20px, 3vw, 42px) 52px; }
.portal-v054 .app-footer { padding-inline: clamp(20px, 3vw, 42px); }

/* Global enterprise surfaces */
.portal-v054 .section-card,
.portal-v054 .portal-section,
.portal-v054 .platform-categories-section {
    border: 1px solid var(--v054-border);
    border-radius: var(--v054-radius);
    background: rgba(255,255,255,.96);
    box-shadow: var(--v054-shadow-sm);
}
.portal-v054 .section-card { padding: 25px; }
.portal-v054 .section-heading h2 { color: #0a2026; font-size: clamp(21px, 2vw, 27px); letter-spacing: -.035em; }
.portal-v054 .section-subtitle { color: var(--v054-muted); line-height: 1.65; }
.portal-v054 .eyebrow { color: #7b8e93; letter-spacing: .13em; }
.portal-v054 .counter {
    color: #0c726d;
    border: 1px solid rgba(33,215,223,.22);
    background: var(--v054-cyan-soft);
    border-radius: 999px;
}
.portal-v054 .button {
    min-height: 42px;
    border-radius: 12px;
    font-weight: 900;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.portal-v054 .button:hover:not(:disabled) { transform: translateY(-1px); }
.portal-v054 .button-accent,
.portal-v054 .button-login {
    color: #04171a;
    border-color: rgba(120,248,255,.5);
    background: linear-gradient(135deg, var(--v054-cyan-bright), var(--v054-cyan));
    box-shadow: 0 13px 30px rgba(33,215,223,.22), inset 0 1px 0 rgba(255,255,255,.75);
}
.portal-v054 .button-secondary { color: #0d625f; border-color: #cce8e8; background: linear-gradient(180deg, #f8ffff, #ecf8f8); }
.portal-v054 .button-ghost { color: #536a70; border-color: #dce7e9; background: #fff; }
.portal-v054 .button-dark-ghost { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.portal-v054 input, .portal-v054 select, .portal-v054 textarea {
    border-color: #d8e4e7;
    border-radius: 12px;
    background: #fbfdfd;
}
.portal-v054 input:focus, .portal-v054 select:focus, .portal-v054 textarea:focus {
    border-color: rgba(33,215,223,.72);
    box-shadow: 0 0 0 4px rgba(33,215,223,.11);
}

/* Company home */
.portal-v054 .executive-hero {
    min-height: 360px;
    grid-template-columns: minmax(0, 1.2fr) minmax(390px, .8fr);
    padding: clamp(34px, 4vw, 58px);
    border-color: rgba(231,191,88,.2);
    border-radius: var(--v054-radius-lg);
    background:
        linear-gradient(rgba(120,248,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120,248,255,.035) 1px, transparent 1px),
        radial-gradient(circle at 12% 12%, rgba(33,215,223,.22), transparent 32%),
        radial-gradient(circle at 85% 78%, rgba(231,191,88,.12), transparent 25%),
        linear-gradient(135deg, #020607, #07171c 56%, #0a252b);
    background-size: 40px 40px, 40px 40px, auto, auto, auto;
    box-shadow: var(--v054-shadow-dark);
}
.portal-v054 .executive-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(125deg, transparent 0 55%, rgba(120,248,255,.055) 55.15%, transparent 55.3% 100%);
}
.portal-v054 .executive-hero h2 { max-width: 720px; font-size: clamp(42px, 5vw, 72px); letter-spacing: -.065em; }
.portal-v054 .executive-hero p { max-width: 680px; color: #a5b9be; font-size: 14px; }
.portal-v054 .executive-trust-row { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 24px; color: #88a1a7; font-size: 10px; font-weight: 800; }
.portal-v054 .executive-trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.portal-v054 .executive-trust-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--v054-cyan); box-shadow: 0 0 10px rgba(33,215,223,.7); }
.portal-v054 .executive-brand-panel {
    position: relative;
    z-index: 2;
    align-self: stretch;
    min-height: 265px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(120,248,255,.13);
    border-radius: 25px;
    background: linear-gradient(150deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 24px 55px rgba(0,0,0,.22);
}
.portal-v054 .executive-logo-card {
    position: relative;
    z-index: 2;
    height: 135px;
    overflow: hidden;
    border: 1px solid rgba(231,191,88,.19);
    border-radius: 18px;
    background: #020506;
    box-shadow: 0 18px 38px rgba(0,0,0,.3);
}
.portal-v054 .executive-logo-card img { width: 100%; height: 100%; object-fit: cover; }
.portal-v054 .executive-status-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.portal-v054 .executive-status-grid article { display: grid; gap: 5px; min-height: 70px; padding: 12px; border: 1px solid rgba(255,255,255,.075); border-radius: 14px; background: rgba(0,0,0,.18); }
.portal-v054 .executive-status-grid span { color: #789097; font-size: 8px; font-weight: 900; }
.portal-v054 .executive-status-grid strong { color: #fff; font-size: 21px; }
.portal-v054 .executive-status-grid .is-online { color: var(--v054-cyan-bright); font-size: 12px; letter-spacing: .08em; }
.portal-v054 .executive-wolf-mark { position: absolute; left: -54px; bottom: -64px; width: 190px; height: 190px; object-fit: cover; border-radius: 50%; opacity: .13; filter: saturate(.8); }
.portal-v054 .portal-summary-grid { gap: 15px; }
.portal-v054 .portal-summary-grid article {
    position: relative;
    overflow: hidden;
    min-height: 124px;
    border-radius: 19px;
    box-shadow: var(--v054-shadow-sm);
}
.portal-v054 .portal-summary-grid article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--v054-cyan), var(--v054-gold)); }
.portal-v054 .portal-summary-grid strong { color: #0a2228; font-size: 33px; }
.portal-v054 .category-card,
.portal-v054 .platform-tool-card,
.portal-v054 .tool-card { border-color: #d8e5e7; box-shadow: 0 17px 45px rgba(7,24,30,.075); }
.portal-v054 .category-card:hover,
.portal-v054 .platform-tool-card:hover,
.portal-v054 .tool-card:hover { border-color: rgba(33,215,223,.42); box-shadow: 0 26px 65px rgba(7,24,30,.13); }

/* Product and operations dashboard */
.portal-v054 .dashboard-hero,
.portal-v054 .product-form-hero,
.portal-v054 .product-detail-hero,
.portal-v054 .products-page-head {
    border-radius: 28px;
    border-color: rgba(231,191,88,.18);
    box-shadow: var(--v054-shadow-dark);
}
.portal-v054 .metric-card { border-radius: 18px; border-color: #dce7e9; box-shadow: var(--v054-shadow-sm); }
.portal-v054 .metric-card::before { background: linear-gradient(180deg, var(--v054-cyan), var(--v054-gold)); }
.portal-v054 .location-card { border-color: #dae6e8; border-radius: 19px; box-shadow: var(--v054-shadow-sm); }
.portal-v054 .location-primary { border-color: rgba(33,215,223,.32); background: linear-gradient(145deg, #fff, #f0fcfc); }

/* Orders command center */
.portal-v054 .orders-command-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
    padding: 22px 24px;
    color: #fff;
    border-color: rgba(231,191,88,.17);
    background:
        radial-gradient(circle at 10% 0, rgba(33,215,223,.17), transparent 34%),
        linear-gradient(135deg, #061014, #0a252b);
    box-shadow: 0 20px 52px rgba(5,20,25,.22);
}
.portal-v054 .orders-command-copy { display: flex; align-items: center; gap: 16px; }
.portal-v054 .orders-command-copy .command-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #052125;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--v054-cyan-bright), var(--v054-cyan));
    box-shadow: 0 12px 28px rgba(33,215,223,.23);
}
.portal-v054 .orders-command-copy svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-v054 .orders-command-copy h2 { margin: 0 0 5px; color: #fff; font-size: 22px; }
.portal-v054 .orders-command-copy p:last-child { margin: 0; color: #91a9af; font-size: 11px; }
.portal-v054 .orders-command-copy .eyebrow { color: var(--v054-cyan); }
.portal-v054 .orders-live-chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 13px; color: #bee0df; border: 1px solid rgba(120,248,255,.17); border-radius: 999px; background: rgba(255,255,255,.045); font-size: 10px; font-weight: 900; }
.portal-v054 .orders-live-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--v054-cyan); box-shadow: 0 0 0 5px rgba(33,215,223,.1), 0 0 15px rgba(33,215,223,.65); }
.portal-v054 .filters-card { margin-bottom: 16px; padding: 19px 21px; }
.portal-v054 .orders-filters { grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(155px, .65fr)) auto; align-items: end; }
.portal-v054 .filter-actions { display: flex; align-items: center; gap: 8px; }
.portal-v054 .orders-table-card { padding: 0; overflow: hidden; content-visibility: auto; contain-intrinsic-size: 850px; }
.portal-v054 .orders-table-card > .section-heading { margin: 0; padding: 23px 25px 19px; border-bottom: 1px solid var(--v054-border); }
.portal-v054 .orders-table-wrap { overflow: auto; }
.portal-v054 .orders-table { min-width: 1160px; border-collapse: separate; border-spacing: 0; }
.portal-v054 .orders-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 13px 15px;
    color: #667d83;
    border-bottom: 1px solid #dce7e9;
    background: #f5f9fa;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
}
.portal-v054 .orders-table tbody td { padding: 14px 15px; border-bottom: 1px solid #e6edef; vertical-align: middle; }
.portal-v054 .orders-table tbody tr { transition: background-color .15s ease, box-shadow .15s ease; }
.portal-v054 .orders-table tbody tr:hover { background: #f8fcfc; box-shadow: inset -3px 0 0 rgba(33,215,223,.45); }
.portal-v054 .orders-table tbody tr.is-collected { background: linear-gradient(90deg, rgba(12,157,120,.035), transparent); }
.portal-v054 .orders-table tbody tr.is-missing-pickup { background: linear-gradient(90deg, rgba(125,143,149,.035), transparent); }
.portal-v054 .order-number { color: #0d7773; font-size: 12px; }
.portal-v054 .phone-value { font-weight: 800; color: #334c53; }
.portal-v054 .pickup-pill { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 7px 9px; border: 1px solid; border-radius: 999px; font-size: 9px; font-weight: 900; }
.portal-v054 .pickup-pill i { width: 6px; height: 6px; border-radius: 50%; }
.portal-v054 .pickup-pill.is-set { color: #08766d; border-color: #c8e9e5; background: #edfbf9; }
.portal-v054 .pickup-pill.is-set i { background: var(--v054-success); box-shadow: 0 0 0 4px rgba(12,157,120,.1); }
.portal-v054 .pickup-pill.is-missing { color: #7a888d; border-color: #dce3e5; background: #f3f5f6; }
.portal-v054 .pickup-pill.is-missing i { background: #a9b4b8; }
.portal-v054 .order-row-actions { display: flex; align-items: center; gap: 7px; min-width: max-content; }
.portal-v054 .order-row-actions form { margin: 0; }
.portal-v054 .order-row-actions.compact-actions { justify-content: flex-end; }
.portal-v054 .quick-collected-button,
.portal-v054 .order-open-button { min-height: 36px; padding: 8px 11px; border-radius: 10px; font-size: 9px; }
.portal-v054 .quick-collected-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 78px; color: #064c40; border: 1px solid #a9ded2; background: linear-gradient(180deg, #e8fbf7, #d6f5ed); box-shadow: 0 7px 16px rgba(12,157,120,.09); }
.portal-v054 .quick-collected-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.portal-v054 .quick-collected-button:hover:not(:disabled) { color: #fff; border-color: #0c9d78; background: linear-gradient(135deg, #14ad85, #087a62); box-shadow: 0 9px 20px rgba(12,157,120,.22); }
.portal-v054 .quick-collected-button.is-complete { color: #fff; border-color: #0c9d78; background: linear-gradient(135deg, #14ad85, #087a62); opacity: .72; }
.portal-v054 .quick-collected-button.is-disabled,
.portal-v054 .quick-collected-button:disabled:not(.is-complete) { color: #929da1; border-color: #d8dfe1; background: #eef1f2; box-shadow: none; opacity: 1; }
.portal-v054 .order-open-button { display: inline-flex; align-items: center; gap: 5px; color: #14373e; border: 1px solid #d6e1e4; background: #fff; }
.portal-v054 .order-open-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.portal-v054 .order-open-button:hover { color: #062126; border-color: rgba(33,215,223,.42); background: #f0fcfc; }
.portal-v054 .badge { border-radius: 999px; }

/* Login — focused, premium and centered */
.portal-v054 .login-center-shell {
    min-height: 100svh;
    padding: 28px;
    background:
        linear-gradient(rgba(120,248,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120,248,255,.035) 1px, transparent 1px),
        radial-gradient(circle at 18% 16%, rgba(33,215,223,.22), transparent 30%),
        radial-gradient(circle at 82% 80%, rgba(231,191,88,.10), transparent 27%),
        linear-gradient(145deg, #020506, #07171c 55%, #09242a);
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
}
.portal-v054 .login-center-card {
    width: min(500px, 100%);
    padding: 34px 38px 30px;
    border-color: rgba(120,248,255,.16);
    border-radius: 30px;
    background: linear-gradient(155deg, rgba(12,27,33,.97), rgba(4,10,13,.985));
    box-shadow: 0 42px 110px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
}
.portal-v054 .login-logo-wrap { width: min(340px, 88%); height: 105px; border-color: rgba(231,191,88,.18); border-radius: 19px; }
.portal-v054 .login-heading h1 { font-size: clamp(30px, 4vw, 40px); }
.portal-v054 .login-center-form .input-shell { min-height: 51px; border-radius: 13px; }
.portal-v054 .login-center-form .button-login { min-height: 54px; }

/* Performance and motion */
.portal-v054 img { max-width: 100%; }
.portal-v054 .tool-card-image img,
.portal-v054 .product-card-image img,
.portal-v054 .product-detail-image img { content-visibility: auto; }
.portal-v054 .recent-orders-card,
.portal-v054 .inventory-overview-card,
.portal-v054 .platform-tools-grid { content-visibility: auto; contain-intrinsic-size: 600px; }

@media (prefers-reduced-motion: reduce) {
    .portal-v054 *, .portal-v054 *::before, .portal-v054 *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1180px) {
    .portal-v054 .app-shell { grid-template-columns: 270px minmax(0, 1fr); }
    .portal-v054 .executive-hero { grid-template-columns: minmax(0, 1fr) 360px; }
    .portal-v054 .orders-filters { grid-template-columns: minmax(220px, 1.35fr) repeat(2, minmax(145px,.7fr)); }
    .portal-v054 .filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 930px) {
    .portal-v054 .app-shell { display: block; }
    .portal-v054 .sidebar {
        position: relative;
        height: auto;
        min-height: 0;
        padding: 15px 16px 13px;
        border-left: 0;
        border-bottom: 1px solid rgba(120,248,255,.1);
        box-shadow: 0 16px 42px rgba(2,12,15,.17);
    }
    .portal-v054 .portal-brand { min-height: 90px; max-width: 390px; margin: 0 auto 11px; }
    .portal-v054 .portal-brand img { height: 73px; max-width: 330px; }
    .portal-v054 .system-chip, .portal-v054 .sidebar-status, .portal-v054 .sidebar-footer { display: none; }
    .portal-v054 .platform-main-nav { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding: 2px 1px 5px; }
    .portal-v054 .platform-main-nav a { flex: 0 0 auto; min-width: 108px; justify-content: center; scroll-snap-align: start; }
    .portal-v054 .platform-main-nav a.active::after { display: none; }
    .portal-v054 .product-context-nav { max-width: 720px; margin: 9px auto 0; }
    .portal-v054 .product-context-links { display: flex; overflow-x: auto; }
    .portal-v054 .product-context-links a { flex: 0 0 auto; }
    .portal-v054 .topbar { position: relative; min-height: 78px; padding: 15px 20px; backdrop-filter: none; }
    .portal-v054 .content { padding: 20px 16px 40px; }
    .portal-v054 .executive-hero { min-height: 0; grid-template-columns: 1fr; padding: 31px 27px; }
    .portal-v054 .executive-brand-panel { min-height: 230px; }
    .portal-v054 .portal-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .portal-v054 .orders-filters { grid-template-columns: 1fr 1fr; }
    .portal-v054 .orders-filters .search-field { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .portal-v054 .topbar-actions .topbar-badge { display: none; }
    .portal-v054 .topbar-mark { width: 42px; height: 42px; }
    .portal-v054 .section-card { padding: 19px; border-radius: 17px; }
    .portal-v054 .executive-hero { padding: 27px 21px; border-radius: 23px; }
    .portal-v054 .executive-hero h2 { font-size: clamp(37px, 11vw, 52px); }
    .portal-v054 .executive-brand-panel { padding: 14px; border-radius: 20px; }
    .portal-v054 .executive-logo-card { height: 115px; }
    .portal-v054 .executive-status-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .portal-v054 .executive-status-grid article { padding: 9px; }
    .portal-v054 .executive-status-grid span { font-size: 7px; }
    .portal-v054 .executive-status-grid strong { font-size: 17px; }
    .portal-v054 .portal-summary-grid { gap: 9px; }
    .portal-v054 .portal-summary-grid article { min-height: 105px; padding: 16px; }
    .portal-v054 .portal-summary-grid strong { font-size: 27px; }
    .portal-v054 .orders-command-bar { align-items: flex-start; flex-direction: column; padding: 19px; }
    .portal-v054 .orders-command-copy { align-items: flex-start; }
    .portal-v054 .orders-command-copy .command-icon { flex-basis: 45px; width: 45px; height: 45px; }
    .portal-v054 .orders-live-chip { align-self: flex-start; }
    .portal-v054 .orders-filters { grid-template-columns: 1fr; }
    .portal-v054 .orders-filters .search-field, .portal-v054 .filter-actions { grid-column: auto; }
    .portal-v054 .filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .portal-v054 .orders-table-card { overflow: visible; background: transparent; border: 0; box-shadow: none; }
    .portal-v054 .orders-table-card > .section-heading { padding: 18px 4px; border: 0; }
    .portal-v054 .orders-table-wrap { overflow: visible; }
    .portal-v054 .orders-table { min-width: 0; display: block; }
    .portal-v054 .orders-table thead { display: none; }
    .portal-v054 .orders-table tbody { display: grid; gap: 12px; }
    .portal-v054 .orders-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        overflow: hidden;
        border: 1px solid var(--v054-border);
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--v054-shadow-sm);
    }
    .portal-v054 .orders-table tbody tr:hover { box-shadow: var(--v054-shadow-sm); }
    .portal-v054 .orders-table tbody td {
        display: grid;
        gap: 5px;
        min-width: 0;
        padding: 12px 14px;
        border-bottom: 1px solid #e8eef0;
    }
    .portal-v054 .orders-table tbody td::before { content: attr(data-label); color: #84959a; font-size: 8px; font-weight: 900; }
    .portal-v054 .orders-table tbody td:nth-child(3),
    .portal-v054 .orders-table tbody td:last-child { grid-column: 1 / -1; }
    .portal-v054 .orders-table tbody td:last-child { border-bottom: 0; background: #f8fbfb; }
    .portal-v054 .order-row-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .portal-v054 .order-row-actions form, .portal-v054 .order-row-actions .button { width: 100%; }
    .portal-v054 .quick-collected-button, .portal-v054 .order-open-button { min-height: 42px; }
    .portal-v054 .order-open-button { justify-content: center; }
    .portal-v054 .login-center-shell { padding: 17px; }
    .portal-v054 .login-center-card { padding: 27px 22px 24px; border-radius: 23px; }
    .portal-v054 .login-logo-wrap { height: 87px; }
}

@media (max-width: 430px) {
    .portal-v054 .portal-brand { min-height: 78px; }
    .portal-v054 .portal-brand img { height: 64px; }
    .portal-v054 .platform-main-nav a { min-width: 94px; padding-inline: 10px; font-size: 11px; }
    .portal-v054 .topbar-title h1 { font-size: 23px; }
    .portal-v054 .topbar-title .eyebrow { font-size: 8px; }
    .portal-v054 .executive-status-grid { grid-template-columns: 1fr 1fr; }
    .portal-v054 .executive-status-grid article:last-child { grid-column: 1 / -1; }
    .portal-v054 .portal-summary-grid { grid-template-columns: 1fr 1fr; }
    .portal-v054 .orders-table tbody tr { grid-template-columns: 1fr; }
    .portal-v054 .orders-table tbody td, .portal-v054 .orders-table tbody td:nth-child(3) { grid-column: 1 / -1; }
}

/* MN Platform 0.6.0 — universal tool packages */
.pending-tools-banner,.tool-import-guide,.security-note,.tool-settings-hero,.embedded-tool-head{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid rgba(35,224,211,.22);background:linear-gradient(135deg,rgba(4,25,30,.96),rgba(5,10,14,.98));border-radius:22px;padding:20px 24px;box-shadow:0 18px 48px rgba(0,0,0,.18);margin-bottom:22px}.pending-tools-banner div,.tool-import-guide{display:flex;flex-direction:column}.pending-tools-banner strong,.tool-import-guide strong{color:#fff;font-size:1.08rem}.pending-tools-banner span,.tool-import-guide span,.tool-import-guide small,.security-note{color:#aebdc2}.tools-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.tool-package-row,.installed-tool-row,.tool-webhook-card{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid rgba(255,255,255,.08)}.tool-package-row>div,.installed-tool-row>div,.tool-webhook-card>div{flex:1}.tool-package-row strong,.installed-tool-row strong,.tool-webhook-card strong{display:block;color:var(--ink-strong,#10262d)}.settings-card .tool-package-row strong,.settings-card .installed-tool-row strong,.settings-card .tool-webhook-card strong{color:inherit}.tool-package-row small,.installed-tool-row small,.tool-webhook-card small{display:block;opacity:.7}.tool-package-row p{margin:4px 0 0;opacity:.72}.tool-package-row.is-invalid{border-color:rgba(255,70,70,.28)}.installed-tool-row img{width:54px;height:54px;object-fit:cover;border-radius:15px;background:#071419}.tool-settings-hero img,.embedded-tool-head img{width:84px;height:84px;object-fit:cover;border-radius:22px;background:#071419;border:1px solid rgba(35,224,211,.28)}.tool-settings-hero>div,.embedded-tool-head>div{flex:1}.tool-settings-hero h2,.embedded-tool-head h2{margin:4px 0}.tool-webhook-card{flex-wrap:wrap}.tool-webhook-card input{flex-basis:100%;direction:ltr;text-align:left;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.inline-actions{display:flex;gap:8px;flex:0 0 auto!important}.embedded-tool-shell{display:grid;gap:20px}.embedded-tool-content{background:#fff;border:1px solid rgba(6,43,51,.1);border-radius:22px;padding:24px;box-shadow:0 18px 50px rgba(7,31,38,.08)}.security-note{margin-top:22px;display:block;line-height:1.7}.security-note strong{color:#d89924}.tool-import-guide code{direction:ltr;display:inline-block}.button-danger{background:#7f2630!important;color:#fff!important}.field input[type=checkbox]{width:22px;height:22px}.pending-tools-banner .button{flex:0 0 auto}
@media(max-width:900px){.tools-admin-grid{grid-template-columns:1fr}.pending-tools-banner,.tool-settings-hero,.embedded-tool-head{align-items:flex-start;flex-direction:column}.pending-tools-banner .button{width:100%}.installed-tool-row{flex-wrap:wrap}.installed-tool-row .button{flex:1}.tool-webhook-card .inline-actions{width:100%}.tool-webhook-card .inline-actions form{flex:1}.tool-webhook-card .inline-actions button{width:100%}}
.session-recovery-card{border-color:rgba(216,153,36,.28)!important}.session-recovery-copy{margin:0 0 14px;color:#536970;line-height:1.7}.session-preserve-list{display:grid;gap:7px;margin:0 0 18px;padding:0;list-style:none;color:#36535a}.session-preserve-list li::before{content:"✓";display:inline-grid;place-items:center;width:20px;height:20px;margin-inline-end:8px;border-radius:50%;background:rgba(24,205,189,.12);color:#0d8f83;font-weight:800}.session-reset-status{margin:15px 0 0;padding:11px 13px;border-radius:12px;font-weight:700}.session-reset-status.is-success{background:#e9fbf7;color:#08766c;border:1px solid #a8e9df}.session-reset-status.is-error{background:#fff0f1;color:#8b2630;border:1px solid #f0b6bc}.session-reset-dialog{width:min(520px,calc(100vw - 32px));border:1px solid rgba(35,224,211,.25);border-radius:20px;padding:0;background:#fff;color:#10262d;box-shadow:0 28px 90px rgba(0,0,0,.35)}.session-reset-dialog::backdrop{background:rgba(2,13,17,.72);backdrop-filter:blur(4px)}.session-reset-dialog form{padding:22px}.session-reset-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.session-reset-dialog h3{margin:3px 0 0}.session-reset-dialog p{line-height:1.65}.dialog-close{border:0;background:transparent;font-size:28px;cursor:pointer;color:#536970}.session-reset-confirm{display:flex;align-items:flex-start;gap:10px;margin:15px 0;padding:12px;border:1px solid #d7e4e7;border-radius:12px}.session-reset-confirm input{width:20px;height:20px;flex:0 0 auto}.session-reset-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}

/* Platform 0.8.0: authenticated full-workspace tools keep the Portal shell
   while removing the generic card/intermediate presentation. */
.tool-workspace-page .tool-workspace-content {
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 104px);
    padding: 0;
}
.tool-workspace-page .tool-workspace-shell,
.tool-workspace-page .tool-workspace-runtime {
    width: 100%;
    min-height: calc(100vh - 104px);
}
.tool-workspace-page .tool-workspace-runtime {
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #071116;
    box-shadow: none;
}
.tool-workspace-page .app-footer { display: none; }
@media (max-width: 1100px) {
    .tool-workspace-page .tool-workspace-content,
    .tool-workspace-page .tool-workspace-shell,
    .tool-workspace-page .tool-workspace-runtime {
        min-height: calc(100vh - 88px);
    }
}

/* Platform 0.8.2: MN Social Inbox receives a dedicated same-tab full-screen
   document. Authentication and tool APIs remain on the Portal, while all
   visible Portal chrome is intentionally absent from this route. */
html:has(body.tool-standalone-page) {
    min-height: 100%;
    background: #06191f;
}
body.tool-standalone-page {
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #f7fbfc;
    background: #06191f;
}
.tool-standalone-main {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #06191f;
}
.tool-standalone-page .mn-social-workspace {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.tool-standalone-page .mn-social-loading,
.tool-standalone-page .mn-social-layout {
    min-height: 100vh;
}

/* MN Platform 0.6.3 — clean tool management and direct launch */
.platform-main-nav .tool-nav-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: cover;
    border: 1px solid rgba(48, 235, 220, .3);
    border-radius: 8px;
    background: #061216;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .24);
}
.platform-main-nav a.active .tool-nav-icon {
    border-color: rgba(48, 235, 220, .72);
    box-shadow: 0 0 0 3px rgba(48, 235, 220, .09);
}
.settings-card {
    min-width: 0;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(10, 58, 68, .1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(7, 31, 38, .08);
}
.settings-card > h3 {
    margin: 0 0 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e7eef0;
    color: #0b252c;
    font-size: 1.08rem;
}
.settings-card .tool-package-row,
.settings-card .installed-tool-row,
.settings-card .tool-webhook-card {
    border-bottom-color: #e7eef0;
}
.settings-card > :last-child,
.settings-card > form > :last-child {
    margin-bottom: 0;
}
.settings-card .field {
    margin-bottom: 18px;
}
.settings-card .field > span {
    display: block;
    margin-bottom: 7px;
    color: #17353d;
    font-weight: 850;
}
.settings-card .field > small {
    display: block;
    margin-top: 7px;
    color: #70878d;
    line-height: 1.55;
}
.settings-card input:not([type="checkbox"]),
.settings-card textarea {
    width: 100%;
}
.installed-tool-row:last-child,
.tool-package-row:last-child,
.tool-webhook-card:last-child {
    border-bottom: 0;
}

@media(max-width:900px){
    .settings-card { padding: 19px; border-radius: 18px; }
    .platform-main-nav .tool-nav-icon { width: 23px; height: 23px; flex-basis: 23px; border-radius: 7px; }
}

/* MN Platform 0.8.0 — clean, responsive administration workspace */
.admin-workspace {
    --admin-border: #dce7e9;
    --admin-muted: #6f8389;
    display: grid;
    gap: 22px;
    min-width: 0;
    direction: rtl;
}
.admin-workspace > * { min-width: 0; }
.admin-workspace > .section-card { margin-bottom: 0; }
.admin-workspace a:focus-visible,
.admin-workspace button:focus-visible,
.admin-workspace input:focus-visible,
.admin-workspace textarea:focus-visible {
    outline: 3px solid rgba(24, 205, 189, .32);
    outline-offset: 3px;
}
.admin-page-intro {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 30px 32px;
    color: #fff;
    border: 1px solid rgba(49, 226, 213, .18);
    border-radius: 26px;
    background:
        radial-gradient(circle at 12% 0, rgba(24, 205, 189, .18), transparent 35%),
        linear-gradient(135deg, #071216, #0a252c);
    box-shadow: 0 24px 58px rgba(5, 23, 28, .18);
}
.admin-page-intro::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    left: -135px;
    bottom: -165px;
    border: 1px solid rgba(52, 240, 220, .14);
    border-radius: 50%;
    box-shadow: 0 0 0 32px rgba(52, 240, 220, .025);
    pointer-events: none;
}
.admin-page-intro > div { position: relative; z-index: 1; min-width: 0; }
.admin-page-kicker {
    margin: 0 0 9px;
    color: #73ded4;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}
.admin-page-intro h2 { margin: 0 0 10px; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.035em; }
.admin-page-intro p:last-child { max-width: 760px; margin: 0; color: #a9bec3; font-size: 12px; line-height: 1.75; }
.admin-summary-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.admin-summary-pills span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 43px;
    padding: 9px 13px;
    color: #c0d2d6;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.admin-summary-pills strong { color: #55eee0; font-size: 17px; }

.admin-page-tabs {
    display: flex;
    gap: 8px;
    min-width: 0;
    padding: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 9px 24px rgba(7,31,38,.05);
}
.admin-page-tabs a {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    color: #526970;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.admin-page-tabs a:hover { color: #08766d; border-color: #c9ebe7; background: #edfbf9; }
.settings-page [id] { scroll-margin-top: 128px; }
.settings-page .section-card { padding: 28px; }
.settings-page .section-heading { margin-bottom: 22px; }
.settings-page .section-heading h2 { font-size: 22px; }
.settings-page .settings-diagnostic-card {
    border-color: #c9e9e5;
    background: linear-gradient(135deg, #f0fbf9, #fff 62%);
}
.settings-page .settings-diagnostic-card .section-subtitle { max-width: 780px; }
.settings-page .inventory-form { margin-top: 18px; }
.settings-page .inventory-form > .button { min-height: 52px; }
.settings-page .manager-form { margin-top: 24px; padding-top: 24px; }
.settings-page .table-wrap { box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.settings-page .rule-box { line-height: 1.7; }

.tools-manage-page .tool-import-guide {
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 21px 24px;
}
.tools-manage-page .tool-import-guide span { line-height: 1.65; }
.tools-manage-page .tool-import-guide small { line-height: 1.65; }
.tools-manage-page .tools-admin-grid,
.tool-config-page .tools-admin-grid { align-items: start; }
.admin-workspace .settings-card {
    padding: 25px;
    border-color: var(--admin-border);
    box-shadow: 0 16px 42px rgba(7,31,38,.07);
}
.settings-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5edef;
}
.settings-card-head .eyebrow { margin-bottom: 6px; color: #71868c; font-size: 9px; }
.settings-card-head h3 { margin: 0; color: #0b252c; font-size: 18px; letter-spacing: -.02em; }
.admin-count-badge {
    flex: 0 0 auto;
    min-width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    color: #08766d;
    border: 1px solid #c7ebe6;
    border-radius: 12px;
    background: #e9faf7;
    font-size: 13px;
    font-weight: 900;
}
.settings-empty {
    display: grid;
    gap: 6px;
    min-height: 116px;
    place-content: center;
    padding: 24px;
    text-align: center;
    border: 1px dashed #cbdcdf;
    border-radius: 16px;
    background: #f8fbfb;
}
.settings-empty strong { color: #29444b; font-size: 13px; }
.settings-empty span { color: var(--admin-muted); font-size: 10px; line-height: 1.6; }
.tool-admin-list { display: grid; gap: 11px; }
.admin-workspace .tool-package-row,
.admin-workspace .installed-tool-row,
.admin-workspace .tool-webhook-card {
    margin: 0;
    padding: 15px;
    border: 1px solid #e1eaec;
    border-radius: 16px;
    background: linear-gradient(145deg, #fbfdfd, #fff);
}
.admin-workspace .tool-package-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 16px;
}
.admin-workspace .tool-package-row.is-valid { border-color: #cae9e5; background: linear-gradient(145deg, #f3fcfa, #fff); }
.admin-workspace .tool-package-row.is-invalid { border-color: #efcdd2; background: linear-gradient(145deg, #fff6f7, #fff); }
.tool-row-copy { min-width: 0; }
.tool-row-copy > strong { overflow-wrap: anywhere; }
.tool-row-copy > small { margin-top: 5px; color: #71868c; font-size: 9px; }
.tool-row-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.tool-row-title strong { min-width: 0; overflow-wrap: anywhere; }
.tool-package-row p { margin: 8px 0 0; color: #6f8389; font-size: 10px; line-height: 1.65; overflow-wrap: anywhere; }
.tool-state-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    border: 1px solid #d8e4e6;
    border-radius: 999px;
    background: #f6f9fa;
    color: #61777d;
    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
}
.tool-state-badge.is-valid { color: #08766d; border-color: #bee7e1; background: #e9faf7; }
.tool-state-badge.is-invalid { color: #a03747; border-color: #efc8ce; background: #fff0f2; }
.tool-state-badge.is-paused { color: #896b16; border-color: #ecdcae; background: #fff9e9; }
.admin-workspace .installed-tool-row {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
}
.admin-workspace .installed-tool-row img {
    width: 56px;
    height: 56px;
    border: 1px solid #cae2e2;
    border-radius: 16px;
    box-shadow: 0 9px 20px rgba(7,31,38,.12);
}
.tool-row-actions { display: flex; gap: 8px; }
.tool-row-actions .button { min-width: 82px; }

.tool-config-page .tool-settings-hero {
    align-items: center;
    margin: 0;
    padding: 26px 28px;
}
.tool-config-page .tool-settings-hero h2 { color: #fff; font-size: 27px; }
.tool-config-page .tool-settings-hero p:not(.eyebrow) { margin: 7px 0 0; color: #aebfc4; font-size: 11px; line-height: 1.65; }
.tool-settings-assurances { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.tool-settings-assurances span {
    padding: 6px 9px;
    color: #9edfd9;
    border: 1px solid rgba(52,240,220,.17);
    border-radius: 999px;
    background: rgba(24,205,189,.055);
    font-size: 8px;
    font-weight: 900;
}
.tool-settings-form { display: grid; gap: 15px; }
.admin-workspace .settings-card .field {
    gap: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid #e2eaec;
    border-radius: 14px;
    background: #fafcfc;
}
.admin-workspace .settings-card .field > span { margin-bottom: 8px; font-size: 11px; }
.admin-workspace .settings-card .field > small { font-size: 9px; }
.admin-workspace .settings-card textarea {
    min-height: 112px;
    resize: vertical;
    border: 1px solid #d5e0e3;
    border-radius: 11px;
    padding: 11px 13px;
    background: #fff;
    color: var(--text);
    outline: none;
}
.admin-workspace .settings-card textarea:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 4px rgba(24,205,189,.11); }
.admin-workspace .settings-card .toggle-field {
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
}
.admin-workspace .settings-card .toggle-field > span { margin: 0; }
.admin-workspace .settings-card .toggle-field > small { grid-column: 1 / -1; }
.tool-config-page .tool-webhook-card {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: start;
    gap: 13px;
}
.webhook-address {
    grid-column: 1 / -1;
    min-width: 0;
    gap: 7px;
}
.webhook-address > span { color: #61777d; font-size: 9px; }
.tool-config-page .tool-webhook-card input[readonly] {
    min-width: 0;
    background: #f6f9fa;
    border-color: #dbe5e7;
    color: #385159;
    text-overflow: ellipsis;
}
.tool-config-page .inline-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
}
.tool-config-page .inline-actions form { margin: 0; }

.system-audit-page .section-card { padding: 27px; }
.audit-overview-card {
    position: relative;
    overflow: hidden;
    border-color: #d7e5e7;
}
.audit-overview-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: #c73f51;
}
.audit-overview-card.audit-status-pass::before { background: linear-gradient(90deg, #18cdbd, #4be8d9); }
.audit-overview-card.audit-status-warning::before { background: linear-gradient(90deg, #d9961a, #f1c95d); }
.audit-overall-state,
.audit-check-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: 1px solid #d8e4e6;
    border-radius: 999px;
    background: #f7fafb;
    color: #61777d;
    font-size: 10px;
    font-weight: 900;
}
.audit-overall-state { min-height: 38px; padding: 8px 13px; }
.audit-check-state { min-height: 30px; padding: 6px 10px; }
.audit-overall-state i,
.audit-check-state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(97,119,125,.1); }
.audit-status-pass .audit-overall-state,
.audit-check-pass { color: #08766d; border-color: #bee7e1; background: #eafaf7; }
.audit-status-warning .audit-overall-state,
.audit-check-warning { color: #8b6810; border-color: #ecdaaa; background: #fff9e8; }
.audit-status-fail .audit-overall-state,
.audit-check-fail { color: #a13949; border-color: #efc9cf; background: #fff1f3; }
.audit-summary-grid { margin-bottom: 0; }
.audit-summary-grid article { position: relative; overflow: hidden; min-height: 112px; box-shadow: none; }
.audit-summary-grid article::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: #b9c9cd; }
.audit-summary-grid .audit-summary-pass::after { background: #18cdbd; }
.audit-summary-grid .audit-summary-warning::after { background: #d9961a; }
.audit-summary-grid .audit-summary-fail::after { background: #c73f51; }
.audit-summary-grid .audit-generated::after { background: #60777d; }
.audit-summary-grid .audit-generated strong { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.audit-results-card .section-heading { margin-bottom: 18px; }
.audit-results-table { border-radius: 16px; }
.audit-results-table table { min-width: 700px; }
.audit-results-table th { padding-block: 13px; }
.audit-results-table td { line-height: 1.6; }
.audit-results-table td:nth-child(1) { width: 28%; }
.audit-results-table td:nth-child(2) { width: 18%; }
.audit-results-table td:nth-child(3) { color: #51676d; }
.audit-row-fail { background: #fffafb; }
.audit-row-warning { background: #fffdf7; }
.audit-privacy-note { margin-top: 18px; }

@media (max-width: 1050px) {
    .admin-page-intro { align-items: flex-start; flex-direction: column; }
    .admin-summary-pills { justify-content: flex-start; }
    .tools-manage-page .tools-admin-grid,
    .tool-config-page .tools-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .admin-workspace { gap: 16px; }
    .admin-page-intro { gap: 20px; padding: 24px 21px; border-radius: 21px; }
    .admin-page-intro h2 { font-size: 27px; }
    .admin-summary-pills { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .admin-summary-pills span { justify-content: center; }
    .admin-page-tabs { margin-inline: -2px; border-radius: 14px; }
    .settings-page [id] { scroll-margin-top: 18px; }
    .settings-page .section-card,
    .system-audit-page .section-card { padding: 19px; }
    .settings-page .section-heading .button,
    .system-audit-page .section-heading .button { width: 100%; }
    .admin-workspace .settings-card { padding: 18px; border-radius: 18px; }
    .settings-card-head { align-items: flex-start; margin-bottom: 15px; padding-bottom: 14px; }
    .admin-workspace .tool-package-row { grid-template-columns: 1fr; }
    .admin-workspace .tool-package-row form,
    .admin-workspace .tool-package-row .button { width: 100%; }
    .admin-workspace .installed-tool-row { grid-template-columns: auto minmax(0,1fr); }
    .tool-row-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .tool-row-actions .button { min-width: 0; width: 100%; }
    .tool-row-title { align-items: flex-start; flex-direction: column; gap: 7px; }
    .tool-config-page .tool-settings-hero { padding: 21px; }
    .tool-config-page .tool-settings-hero .button { width: 100%; }
    .tool-config-page .tool-webhook-card { grid-template-columns: 1fr; }
    .webhook-address,
    .tool-config-page .inline-actions { grid-column: 1; }
    .tool-config-page .inline-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .tool-config-page .inline-actions form,
    .tool-config-page .inline-actions button { width: 100%; }
    .audit-results-table { overflow: visible; border: 0; }
    .audit-results-table table,
    .audit-results-table tbody { display: block; min-width: 0; background: transparent; }
    .audit-results-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .audit-results-table tr {
        display: grid;
        gap: 0;
        margin-bottom: 11px;
        overflow: hidden;
        border: 1px solid #dfe8ea;
        border-radius: 14px;
        background: #fff;
    }
    .audit-results-table tr:last-child { margin-bottom: 0; }
    .audit-results-table td,
    .audit-results-table td:nth-child(1),
    .audit-results-table td:nth-child(2) {
        display: grid;
        grid-template-columns: 92px minmax(0,1fr);
        align-items: start;
        gap: 10px;
        width: auto;
        padding: 12px 13px;
        border-bottom: 1px solid #e8eff1;
    }
    .audit-results-table td:last-child { border-bottom: 0; }
    .audit-results-table td::before {
        content: attr(data-label);
        color: #7a8e94;
        font-size: 8px;
        font-weight: 900;
    }
}

@media (max-width: 430px) {
    .admin-summary-pills { grid-template-columns: 1fr; }
    .admin-workspace .installed-tool-row { grid-template-columns: 1fr; text-align: center; }
    .admin-workspace .installed-tool-row img { margin-inline: auto; }
    .tool-row-actions,
    .tool-config-page .inline-actions { grid-template-columns: 1fr; }
    .audit-results-table td,
    .audit-results-table td:nth-child(1),
    .audit-results-table td:nth-child(2) { grid-template-columns: 1fr; gap: 6px; }
}
