:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #687287;
  --line: #e3e7ef;
  --surface: #fff;
  --canvas: #f4f6fa;
  --brand: #3157d5;
  --brand-dark: #203fa5;
  --good: #168461;
  --warn: #b55b16;
  font-family: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body.auth-pending > :not(.toast) { visibility: hidden; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #dfe7ff 0, transparent 36%), var(--canvas); }
.login-card { width: min(440px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 30px 70px rgba(23,32,51,.12); }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 28px; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-mark.small { width: 38px; height: 38px; margin: 0; }
.eyebrow { margin-bottom: 6px; color: var(--brand); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.subtle { color: var(--muted); line-height: 1.6; }
label { display: block; margin-top: 18px; color: #444f64; font-size: 14px; font-weight: 600; }
input, select, textarea { width: 100%; margin-top: 7px; padding: 12px 14px; border: 1px solid #ccd2df; border-radius: 10px; color: var(--ink); background: white; outline: none; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(49,87,213,.12); }
button { border: 0; border-radius: 10px; padding: 11px 16px; color: white; background: var(--brand); font-weight: 700; }
button:hover { background: var(--brand-dark); }
.google-button { width: 100%; margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #26324a; background: white; border: 1px solid #cbd2df; }
.google-button:hover { color: var(--ink); background: #f6f8fc; }
.google-g { color: #4285f4; font-size: 20px; font-weight: 700; }
.federated-buttons { display: grid; gap: 10px; margin-top: 12px; }
.identity-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; color: #26324a; background: white; border: 1px solid #cbd2df; }
.identity-button:hover { color: var(--ink); background: #f6f8fc; }
.identity-button span { min-width: 52px; padding: 3px 7px; border-radius: 999px; color: white; background: var(--brand); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.error { min-height: 20px; margin-top: 14px; color: #b22f3a; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; }
aside { position: sticky; top: 0; height: 100vh; padding: 24px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); }
.brand-row { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; font-family: Manrope; }
nav { flex: 1; }
nav button, .quiet { width: 100%; color: var(--muted); background: transparent; text-align: left; }
nav button.nav-active { color: var(--brand); background: #eef2ff; }
.signed-in-user { overflow: hidden; padding: 10px 8px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; }
.content { min-width: 0; padding: 42px clamp(24px, 5vw, 70px); }
header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
header h1 { margin-bottom: 0; font-size: clamp(30px, 4vw, 44px); }
.metric { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: 14px; }
.device-search { min-width: min(310px, 34vw); margin: 0; color: var(--muted); font-size: 12px; }
.device-search input { margin-top: 5px; padding: 9px 12px; border-radius: 999px; font-size: 14px; }
.store-filter { min-width: 190px; margin: 0; color: var(--muted); font-size: 12px; }
.store-filter select { margin-top: 5px; padding: 9px 12px; border-radius: 999px; font-size: 14px; }
.bulk-device-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 10px 26px rgba(23,32,51,.08); }
.bulk-device-bar > div:first-child { min-width: 150px; }
.bulk-device-bar strong, .bulk-device-bar span { display: block; }
.bulk-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.bulk-controls select { width: auto; min-width: 180px; margin: 0; padding: 9px 11px; }
.bulk-controls button { margin: 0; white-space: nowrap; }
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.blueprint-grid, .launcher-policy, .play-app-layout, .apps-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.device-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(23,32,51,.04); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.device-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(23,32,51,.09); }
.device-card.selected { border-color: rgba(49,87,213,.58); box-shadow: 0 0 0 3px rgba(49,87,213,.12), 0 12px 30px rgba(23,32,51,.09); }
.device-card-select { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.device-card-select input { width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--brand); }
.device-card-select .view-device-button { padding: 7px 10px; font-size: 12px; }
.blueprint-card { display: grid; gap: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.blueprint-card h2 { margin-bottom: 5px; font-size: 20px; }
.blueprint-card button { justify-self: start; }
.card-head, .status-row, .section-title, .header-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.device-card h2 { margin-bottom: 5px; font-size: 19px; }
.badge { padding: 5px 9px; border-radius: 999px; background: #e8f7f1; color: var(--good); font-size: 12px; font-weight: 700; }
.badge.offline { background: #f3f0ee; color: #7e685a; }
.badge.locked { background: #ffe2e2; color: #b42318; }
.badge.unlocked { background: #e8f7f1; color: var(--good); }
.battery { margin-top: 22px; height: 7px; overflow: hidden; border-radius: 99px; background: #edf0f5; }
.battery span { display: block; height: 100%; border-radius: inherit; background: var(--good); }
.card-meta { display: flex; justify-content: space-between; margin-top: 9px; color: var(--muted); font-size: 13px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags { margin-top: 14px; }
.tag { padding: 4px 8px; border-radius: 999px; color: #31518f; background: #edf2ff; font-size: 12px; font-weight: 700; }
.store-tag { color: #12664f; background: #e8f7f1; }
.missing-store-tag { color: #a3343e; background: #fff0f1; }
.empty-state { padding: 70px 20px; border: 1px dashed #cbd2df; border-radius: 18px; text-align: center; color: var(--muted); }

.device-detail-page { max-width: 1320px; }
.device-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.device-detail-header .status-row { justify-content: flex-end; }
.device-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); align-items: center; gap: 28px; margin-bottom: 22px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 72% 24%, rgba(49,87,213,.16), transparent 34%), white; box-shadow: 0 18px 48px rgba(23,32,51,.06); }
.device-hero h1 { margin-bottom: 14px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.04em; }
.device-identity { display: flex; flex-wrap: wrap; gap: 10px; }
.device-identity span { min-width: 150px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(248,249,251,.86); }
.device-identity small, .device-identity strong { display: block; }
.device-identity small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.device-identity strong { overflow: hidden; margin-top: 4px; text-overflow: ellipsis; white-space: nowrap; }
.device-art { position: relative; justify-self: end; width: min(270px, 100%); aspect-ratio: 9 / 16; border: 10px solid #1f2937; border-radius: 38px; background: linear-gradient(160deg, #172033, #2f405e); box-shadow: 0 28px 60px rgba(23,32,51,.18); }
.device-art.has-device-image { width: min(360px, 100%); aspect-ratio: auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.device-art.has-device-image::before, .device-art.has-device-image::after { content: none; }
.device-art::before { content: ""; position: absolute; left: 50%; top: 10px; width: 34%; height: 7px; border-radius: 99px; background: rgba(255,255,255,.26); transform: translateX(-50%); }
.device-art::after { content: ""; position: absolute; left: 50%; bottom: 12px; width: 42px; height: 42px; border: 3px solid rgba(255,255,255,.45); border-radius: 50%; transform: translateX(-50%); }
.device-product-image { display: none; width: 100%; max-height: 390px; object-fit: contain; filter: drop-shadow(0 26px 32px rgba(23,32,51,.18)); }
.device-art.has-device-image .device-product-image { display: block; }
.device-art.has-device-image .device-art-screen { display: none; }
.device-art-screen { position: absolute; inset: 34px 14px 70px; overflow: hidden; border-radius: 22px; background: linear-gradient(150deg, #59b4ff, #f9a7bc 58%, #6b2abf); }
.device-art-screen::before { content: "FB"; position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: white; background: var(--brand); font-family: Manrope, sans-serif; font-weight: 800; box-shadow: 0 10px 22px rgba(23,32,51,.18); }
.device-art-label { position: absolute; left: 50%; bottom: -34px; width: max-content; max-width: 100%; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: 12px; font-weight: 800; box-shadow: 0 10px 24px rgba(23,32,51,.08); transform: translateX(-50%); }
.device-art-samsung { border-radius: 26px; background: linear-gradient(160deg, #101827, #2b3448); }
.device-art-samsung::before { top: 14px; width: 38%; height: 8px; background: rgba(255,255,255,.22); }
.device-art-samsung::after { width: 54px; height: 8px; border: 0; border-radius: 999px; background: rgba(255,255,255,.34); }
.device-art-samsung .device-art-screen { inset: 38px 16px 70px; border-radius: 18px; background: linear-gradient(145deg, #5ea7f3, #ecd7ff 52%, #8b4fd6); }
.device-art-samsung .device-art-screen::after { content: ""; position: absolute; right: -10px; top: 82px; width: 7px; height: 54px; border-radius: 999px; background: #f47b20; box-shadow: -198px 68px 0 -1px #4d5870; }
.device-art-xcover6 { width: min(285px, 100%); border-width: 12px; border-radius: 25px; box-shadow: inset 0 0 0 4px #2f394d, 0 28px 60px rgba(23,32,51,.18); }
.device-art-xcover6 .device-art-screen { inset: 42px 18px 76px; }
.device-art-xcover-pro { width: min(265px, 100%); border-width: 14px; border-radius: 22px; box-shadow: inset 0 0 0 5px #364156, 0 28px 60px rgba(23,32,51,.18); }
.device-art-xcover-pro .device-art-screen { inset: 48px 16px 84px; border-radius: 14px; }
.device-art-zebra { aspect-ratio: 10 / 17; border-width: 16px; border-radius: 26px; background: #111827; }
.device-art-zebra::before { top: 16px; width: 54%; height: 18px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 5px, transparent 5px 10px); }
.device-art-zebra::after { bottom: 16px; width: 62%; height: 58px; border: 0; border-radius: 14px; background: repeating-linear-gradient(90deg, #2c3548 0 8px, #111827 8px 15px); }
.device-art-zebra .device-art-screen { inset: 56px 13px 92px; border-radius: 12px; }
.device-art-zebra-tc72 { width: min(295px, 100%); border-top-width: 28px; border-bottom-width: 24px; border-radius: 31px; }
.device-art-zebra-tc72 .device-art-screen { inset: 58px 14px 102px; }
.device-art-zebra-tc70x { width: min(285px, 100%); border-top-width: 24px; border-bottom-width: 30px; border-radius: 27px; background: linear-gradient(160deg, #0b1220, #1f2937); }
.device-art-zebra-tc70 { width: min(275px, 100%); border-top-width: 24px; border-bottom-width: 34px; border-radius: 24px; }
.device-art-pixel { border-radius: 42px; background: linear-gradient(160deg, #0f172a, #334155); }
.device-art-pixel::before { top: 13px; width: 32%; height: 24px; background: #0b1020; }
.device-art-pixel::after { width: 0; height: 0; border: 0; }
.device-art-pixel .device-art-screen { inset: 28px 10px 28px; border-radius: 31px; background: linear-gradient(155deg, #d7f0ff, #8ec5ff 36%, #f9c0d4 72%, #f7a26d); }
.device-art-pixel .device-art-screen::after { content: ""; position: absolute; left: 50%; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: #0b1020; transform: translateX(-50%); }
.device-art-pixel-8a { width: min(255px, 100%); border-width: 9px; border-radius: 44px; }
.device-art-pixel-9a { width: min(260px, 100%); border-width: 8px; border-radius: 48px; background: linear-gradient(160deg, #111827, #475569); }
.device-art-pixel-9a .device-art-screen { border-radius: 35px; }
.device-art-generic .device-art-screen { background: linear-gradient(150deg, #dfe7ff, #f8fafc); }

dialog { width: min(980px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 28px; border: 0; border-radius: 20px; box-shadow: 0 30px 90px rgba(12,22,44,.25); }
dialog::backdrop { background: rgba(18,27,45,.52); backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; }
.icon-button { width: 38px; height: 38px; padding: 0; color: var(--muted); background: #f0f2f6; font-size: 25px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 22px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.device-management { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.management-block { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8f9fb; }
.section-title.compact { margin-top: 0; }
.tag-editor { display: flex; gap: 8px; }
.tag-editor input, .tag-editor button { margin-top: 0; }
.config-assignment select, .config-assignment button { margin-top: 0; }
.fact { min-width: 0; padding: 14px; background: white; }
.fact span { display: block; color: var(--muted); font-size: 12px; }
.fact strong { display: block; overflow: hidden; margin-top: 5px; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.location-fact { grid-column: 1 / -1; }
.location-fact strong { overflow: visible; white-space: normal; }
.map-frame { overflow: hidden; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: #eef2f8; }
.map-frame iframe { display: block; width: 100%; height: 260px; border: 0; }
.map-link { display: inline-block; margin-top: 10px; color: var(--brand); font-weight: 700; text-decoration: none; }
.map-link:hover { text-decoration: underline; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.device-actions { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.device-actions .section-title { grid-column: 1 / -1; }
.device-actions label { flex: 1; margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.device-actions select { margin-top: 7px; }
.device-actions button { margin-top: 0; white-space: nowrap; }
.warning { background: var(--warn); }
.secondary { color: var(--ink); border: 1px solid #cbd2df; background: white; }
.secondary:hover { background: #f1f4f9; }
.danger { background: #a3343e; }
.package-policy { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f8f9fb; }
.package-policy h3, .package-policy p { margin-bottom: 4px; }
.package-policy code { overflow-wrap: anywhere; }
.admin-pin-actions { min-width: 190px; display: grid; justify-items: end; gap: 5px; }
.admin-pin-actions strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 24px; letter-spacing: .08em; }
.admin-pin-actions button { margin-top: 6px; }
.install-form { margin: 24px 0; padding: 18px; border-radius: 14px; background: #f5f7fb; }
.install-form label { margin: 0; }
.inline-form { display: flex; gap: 9px; }
.inline-form input { margin-top: 8px; }
.inline-form button { margin-top: 8px; white-space: nowrap; }
.section-title { margin-top: 24px; }
.section-title h3 { margin-bottom: 8px; }
.table-wrap { max-height: 310px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { position: sticky; top: 0; background: #f8f9fb; color: var(--muted); }
td button { padding: 6px 9px; font-size: 12px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.app-status { display: inline-block; padding: 4px 7px; border-radius: 999px; color: var(--good); background: #e8f7f1; font-size: 11px; font-weight: 700; }
.app-status.disabled { color: #a3343e; background: #fff0f1; }
.commands-list { display: grid; gap: 8px; }
.command { display: flex; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.audit-panel { max-width: none; }
.audit-table-wrap { max-height: 620px; }
.audit-table-wrap td small { display: block; margin-top: 3px; color: var(--muted); }
.audit-url { display: block; max-width: 460px; overflow-wrap: anywhere; color: var(--muted); }
.screenshots-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.screenshot-card { display: grid; gap: 7px; padding: 10px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 12px; background: #f8f9fb; }
.screenshot-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 9px; background: #111827; }
.screenshot-card span { font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screenshot-card small { color: var(--muted); }
.admin-panel { max-width: 780px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.admin-panel + .admin-panel { margin-top: 18px; }
.admin-panel h2 { margin-bottom: 6px; }
.admin-form { margin: 24px 0; }
.admin-form input { margin-top: 0; }
.wifi-profile-form { display: grid; gap: 12px; margin: 20px 0 22px; }
.wifi-profile-form .dialog-actions { margin-top: 0; }
.launcher-panel { max-width: none; }
.launcher-panel textarea { min-height: 180px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.launcher-settings { grid-column: 1 / -1; }
.launcher-poc-layout { height: calc(100vh - 180px); min-height: 620px; display: grid; grid-template-columns: minmax(230px, 300px) minmax(360px, 1fr) minmax(260px, 320px); align-items: stretch; gap: 18px; overflow: hidden; }
.launcher-poc-layout .admin-panel { max-width: none; }
.launcher-poc-library, .launcher-poc-inspector { min-height: 0; overflow: auto; }
.launcher-poc-library-list { display: grid; gap: 10px; margin-top: 14px; padding-bottom: 18px; }
.launcher-poc-library-app { width: 100%; display: grid; gap: 3px; padding: 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: #f8f9fb; text-align: left; cursor: grab; }
.launcher-poc-library-app:active { cursor: grabbing; }
.launcher-poc-library-app:hover { background: #eef2ff; }
.launcher-poc-library-app span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.launcher-poc-phone-panel { min-height: 0; display: grid; justify-items: center; overflow: auto; }
.launcher-poc-phone { width: min(430px, 100%); min-height: 690px; padding: 24px 18px; border: 10px solid #172033; border-radius: 42px; background: linear-gradient(160deg, #f7f9ff, #e9eef8); box-shadow: 0 28px 70px rgba(23,32,51,.14); }
.launcher-poc-phone-top { display: grid; gap: 3px; margin-bottom: 22px; padding: 0 6px; }
.launcher-poc-phone-top strong { font-family: Manrope, sans-serif; font-size: 24px; }
.launcher-poc-phone-top span { color: var(--muted); font-size: 12px; }
.launcher-poc-page-toolbar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; margin-bottom: 12px; }
.launcher-poc-page-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.launcher-poc-page-tabs button { min-width: 82px; padding: 7px 9px; color: var(--muted); border: 1px solid var(--line); background: white; font-size: 12px; }
.launcher-poc-page-tabs button.active { color: white; border-color: var(--brand); background: var(--brand); }
.launcher-poc-page-tabs span { display: block; margin-top: 2px; font-size: 10px; font-weight: 600; opacity: .75; }
.launcher-poc-page-actions { display: flex; gap: 6px; }
.launcher-poc-page-actions button { padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.launcher-poc-grid { min-height: 500px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(5, 100px); align-content: start; gap: 10px; padding: 8px; border: 1px solid #dbe1ec; border-radius: 18px; background: linear-gradient(#dbe1ec 1px, transparent 1px), linear-gradient(90deg, #dbe1ec 1px, transparent 1px), rgba(255,255,255,.36); background-size: calc(25% - 7.5px) 100px, calc(25% - 7.5px) 100px, auto; }
.launcher-poc-grid.drag-target { outline: 2px dashed var(--brand); outline-offset: 6px; background: rgba(49,87,213,.06); }
.launcher-poc-slot { min-width: 0; min-height: 100px; display: grid; place-items: center; color: #a4aec0; border: 1px dashed #c8d0df; border-radius: 14px; background: rgba(255,255,255,.48); font-size: 11px; }
.launcher-poc-slot:hover { color: var(--brand); border-color: var(--brand); background: rgba(49,87,213,.06); }
.launcher-poc-tile { position: relative; min-width: 0; min-height: 100px; display: grid; justify-items: center; align-content: start; gap: 7px; padding: 8px 4px; color: var(--ink); border: 1px solid transparent; border-radius: 14px; background: transparent; text-align: center; }
.launcher-poc-tile:hover { background: rgba(49,87,213,.08); }
.launcher-poc-remove { position: absolute; top: 2px; right: 2px; z-index: 2; width: 22px; height: 22px; display: grid; place-items: center; color: #8f2632; border: 1px solid #efc8cd; border-radius: 50%; background: #fff4f5; font-size: 16px; font-weight: 800; line-height: 1; opacity: 0; transition: opacity .15s ease; }
.launcher-poc-tile:hover .launcher-poc-remove, .launcher-poc-remove:focus { opacity: 1; }
.launcher-poc-tile strong, .launcher-poc-tile small { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.launcher-poc-tile strong { font-size: 12px; }
.launcher-poc-tile small { color: var(--muted); font-size: 10px; }
.launcher-poc-app-icon, .launcher-poc-folder-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: white; background: linear-gradient(135deg, #3157d5, #168461); font-size: 16px; font-weight: 800; box-shadow: 0 8px 18px rgba(23,32,51,.16); }
.launcher-poc-folder-icon { position: relative; color: #3157d5; background: linear-gradient(135deg, #eef3ff, #dce6ff); }
.launcher-poc-folder-icon::before { content: ""; position: absolute; left: 11px; top: 13px; width: 32px; height: 24px; border-radius: 5px; background: currentColor; }
.launcher-poc-folder-icon::after { content: ""; position: absolute; left: 13px; top: 9px; width: 20px; height: 9px; border-radius: 5px 5px 0 0; background: currentColor; }
.launcher-poc-folder.selected { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 16px; }
.launcher-poc-folder-apps { max-height: 430px; overflow: auto; display: grid; gap: 10px; margin-top: 14px; padding-right: 4px; }
.launcher-poc-drag-ghost { position: fixed; z-index: 1000; width: 230px; pointer-events: none; box-shadow: 0 16px 40px rgba(23,32,51,.22); transform: rotate(1deg); }
.play-iframe-panel { max-width: none; margin-bottom: 18px; }
.play-catalog-panel, .play-group-panel { max-width: none; }
.maple-store-layout { display: grid; grid-template-columns: minmax(420px, 1.45fr) minmax(320px, .9fr); gap: 18px; align-items: start; }
.maple-records-panel, .maple-editor-panel, .maple-groups-panel { max-width: none; }
.maple-records-panel { grid-row: span 2; }
.managed-play-frame-wrap { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.managed-play-list, .managed-play-groups-list, .managed-play-group-apps, .managed-play-group-picker { display: grid; gap: 10px; margin-top: 14px; }
.managed-play-app { display: grid; grid-template-columns: 1fr minmax(150px, 190px) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8f9fb; }
.managed-play-app strong, .managed-play-app span { display: block; }
.managed-play-app span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.managed-play-app a { display: inline-block; margin-top: 6px; color: var(--brand); font-size: 12px; font-weight: 800; text-decoration: none; }
.managed-play-app a:hover { text-decoration: underline; }
.maple-app-list { gap: 12px; }
.maple-app-row { grid-template-columns: minmax(0, 1fr) minmax(150px, 180px) auto; background: white; }
.maple-app-row .app-actions { justify-content: flex-end; }
.maple-app-row .app-actions button { min-width: 72px; }
.managed-play-group button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; color: var(--ink); border: 1px solid var(--line); background: #f8f9fb; }
.compact-switch { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.compact-switch small { display: block; margin-top: 3px; color: var(--muted); }
.compact-actions { margin-top: 14px; }
.admins-list { display: grid; gap: 10px; }
.admin-entry { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; }
.admin-entry strong { overflow: hidden; text-overflow: ellipsis; }
.admin-entry button { padding: 7px 10px; color: #a3343e; background: #fff0f1; font-size: 12px; }
.admin-entry .protected { color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 10; right: 24px; bottom: 24px; max-width: 420px; padding: 13px 16px; border-radius: 10px; color: white; background: #172033; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.enrollment-dialog { width: min(760px, calc(100% - 30px)); }
.enrollment-options { margin: 22px 0; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #f8f9fb; }
.switch-row { display: flex; align-items: flex-start; gap: 12px; margin: 0; cursor: pointer; }
.switch-row input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand); }
.switch-row span, .switch-row small { display: block; }
.switch-row small { margin-top: 4px; color: var(--muted); font-weight: 400; line-height: 1.45; }
.enrollment-loading { padding: 48px 20px; color: var(--muted); text-align: center; }
.enrollment-content { display: grid; grid-template-columns: minmax(260px, 390px) 1fr; align-items: center; gap: 28px; }
.enrollment-qr { display: block; width: 100%; border: 1px solid var(--line); border-radius: 16px; background: white; }
.enrollment-code { min-width: 0; }
.enrollment-code span { display: block; color: var(--muted); font-size: 13px; }
.enrollment-code strong { display: block; margin: 8px 0 16px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.enrollment-note { margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.blueprint-dialog, .lost-mode-dialog { width: min(760px, calc(100% - 30px)); }
#blueprintDialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
}
#blueprintDialog .dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  align-items: center;
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
#blueprintForm {
  height: calc(100vh - 89px);
  overflow: auto;
  padding: 26px 32px 32px;
}
#blueprintForm > label,
#blueprintForm > .form-section,
#blueprintForm > .dialog-actions {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}
#blueprintForm > .dialog-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 16px 0 4px;
  background: linear-gradient(180deg, rgba(248,250,252,0), #ffffff 30%);
}
.form-section { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #f8f9fb; }
.form-section h3, .form-section p { margin-bottom: 5px; }
.form-section .section-title { margin-bottom: 14px; }
.wifi-profiles { display: grid; gap: 12px; margin-top: 14px; }
.wifi-profile { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.wifi-profile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wifi-profile-head button { padding: 6px 9px; color: #a3343e; background: #fff0f1; font-size: 12px; }
.profile-checklist { display: grid; gap: 10px; margin-top: 14px; }
.subsection-heading { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.subsection-heading h4 { margin: 0 0 4px; font-size: 14px; }
.template-attributes { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.template-attributes span { margin-right: 3px; color: var(--muted); font-size: 12px; font-weight: 700; }
.template-attributes button { padding: 6px 9px; color: #31518f; border: 1px solid #cbd5ec; background: #edf2ff; font-size: 12px; }
.template-attributes button:hover { background: #dfe8ff; }
.template-note { margin-top: 9px; font-size: 12px; }
.apple-vpp-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 14px; }
.apple-vpp-toolbar button { flex: 0 0 auto; }
.apple-vpp-app-picker { max-height: 360px; overflow: auto; display: grid; gap: 8px; margin-top: 12px; padding-right: 4px; }
.apple-vpp-app { display: grid; grid-template-columns: auto 44px 1fr; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.apple-vpp-app input { width: 18px; height: 18px; accent-color: var(--brand); }
.apple-vpp-app img, .apple-vpp-placeholder { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #edf2ff; }
.apple-vpp-placeholder { display: grid; place-items: center; color: var(--brand); font-size: 13px; font-weight: 800; }
.apple-vpp-app strong, .apple-vpp-app span, .apple-vpp-app small { display: block; }
.apple-vpp-app span { margin-top: 2px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.apple-vpp-app small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.profile-assignment-panel { margin: 18px 0; }
.profile-picker { display: grid; gap: 8px; margin-top: 12px; }
.profile-choice { display: flex; align-items: flex-start; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.profile-choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.profile-choice strong, .profile-choice small { display: block; }
.profile-choice small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.single-app-picker { display: grid; gap: 8px; max-height: 360px; overflow: auto; margin-top: 12px; padding-right: 4px; }
.single-app-choice { display: flex; align-items: flex-start; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.single-app-choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.single-app-choice strong, .single-app-choice small { display: block; }
.single-app-choice small { margin-top: 3px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.drop-zone { margin-top: 18px; padding: 36px 20px; border: 2px dashed #b8c3d8; border-radius: 14px; color: var(--muted); background: white; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop-zone strong, .drop-zone span { display: block; }
.drop-zone strong { color: var(--ink); }
.drop-zone span { margin-top: 6px; font-size: 13px; }
.drop-zone.dragging { border-color: var(--brand); background: #eef2ff; }
.drop-zone.disabled { opacity: .55; pointer-events: none; }
.app-catalog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 16px; }
.app-catalog-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.app-catalog-card div { min-width: 0; }
.app-catalog-card strong, .app-catalog-card span, .app-catalog-card small { display: block; overflow-wrap: anywhere; }
.app-catalog-card span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.app-catalog-card small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.app-catalog-card button { flex: 0 0 auto; padding: 7px 10px; font-size: 12px; }
.app-device-picker { display: grid; gap: 8px; max-height: 360px; overflow: auto; margin-top: 12px; padding-right: 4px; }
.device-pick-row { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.device-pick-row input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--brand); }
.device-pick-row strong, .device-pick-row small { display: block; }
.device-pick-row small { margin-top: 3px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.blueprint-apps, .blueprint-assets { display: grid; gap: 8px; margin-top: 14px; }
.blueprint-app { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.blueprint-app > div { min-width: 0; flex: 1; }
.blueprint-app strong, .blueprint-app span { display: block; }
.blueprint-app span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.blueprint-app input { width: 100%; margin-top: 8px; padding: 8px 10px; font-size: 12px; }
.blueprint-app button { padding: 6px 9px; color: #a3343e; background: #fff0f1; font-size: 12px; }
.upload-progress { margin-top: 12px; color: var(--brand); font-size: 13px; font-weight: 700; }
.dialog-actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.dialog-spacer { flex: 1; }
.wallpaper-editor { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; align-items: center; gap: 20px; margin-top: 18px; }
.wallpaper-preview-wrap { overflow: hidden; aspect-ratio: 9 / 16; border: 1px solid var(--line); border-radius: 14px; background: #e9edf5; }
.wallpaper-preview { width: 100%; height: 100%; object-fit: cover; }
.wallpaper-editor button { margin: 0 8px 8px 0; }
.wallpaper-name { margin: 6px 0 0; font-size: 13px; }

@media (max-width: 720px) {
  .app-shell { display: block; }
  aside { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; gap: 12px; }
  aside nav { display: none; }
  .brand-row { flex: 1; padding: 0; }
  .quiet { width: auto; }
  .content { padding: 28px 18px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .device-hero { grid-template-columns: 1fr; padding: 22px; }
  .device-art { justify-self: center; width: min(220px, 72vw); }
  .device-detail-header { align-items: stretch; flex-direction: column; }
  dialog { padding: 20px; }
  .header-actions, .package-policy { align-items: stretch; flex-direction: column; }
  .device-actions { align-items: stretch; flex-direction: column; }
  .admin-pin-actions { justify-items: stretch; }
  .enrollment-content { grid-template-columns: 1fr; }
  .device-management { grid-template-columns: 1fr; }
  .tag-editor { align-items: stretch; flex-direction: column; }
  .wallpaper-editor { grid-template-columns: 1fr; }
  .managed-play-app { grid-template-columns: 1fr; }
  .launcher-poc-layout { height: auto; min-height: 0; grid-template-columns: 1fr; overflow: visible; }
  .launcher-poc-phone { min-height: 620px; }
}

/* 2026 dashboard refresh */
:root {
  --ink: #111827;
  --muted: #657184;
  --line: #dce3ee;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --canvas: #f3f6fb;
  --brand: #1d5fe8;
  --brand-dark: #164ab7;
  --brand-soft: #eaf1ff;
  --nav: #07182c;
  --nav-2: #0d2745;
  --good: #11845f;
  --warn: #c27316;
  --danger: #b42318;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 22px rgba(15, 23, 42, .05);
  --shadow-md: 0 16px 42px rgba(15, 23, 42, .11);
}

body {
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0) 260px),
    var(--canvas);
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
}

h1, h2, h3 {
  letter-spacing: 0;
}

.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

aside {
  padding: 22px 14px;
  color: #d9e5f5;
  border-right: 0;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, .18), transparent 210px),
    linear-gradient(180deg, var(--nav), var(--nav-2));
  box-shadow: inset -1px 0 0 rgba(255,255,255,.08);
}

.brand-row {
  padding: 4px 10px 24px;
  color: #ffffff;
  letter-spacing: 0;
}

.brand-row strong {
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

nav {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.09);
}

nav button,
.quiet {
  min-height: 42px;
  padding: 10px 12px;
  color: #b9c8dc;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

nav button:hover,
.quiet:hover {
  color: #ffffff;
  background: rgba(255,255,255,.08);
}

nav button.nav-active {
  color: #ffffff;
  background: linear-gradient(135deg, #1d5fe8, #178e70);
  box-shadow: 0 10px 26px rgba(29, 95, 232, .26);
}

.signed-in-user {
  margin-top: 18px;
  padding: 12px;
  color: #c8d6e8;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.content {
  padding: 34px clamp(24px, 4.5vw, 64px);
}

header {
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
}

header h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.06;
}

.eyebrow {
  color: #2a6ced;
  font-size: 11px;
  letter-spacing: .08em;
}

.subtle {
  color: var(--muted);
}

.header-actions {
  flex-wrap: wrap;
}

.metric {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: #334155;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-sm);
}

button {
  min-height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #0f7d68);
  box-shadow: 0 10px 22px rgba(29, 95, 232, .16);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

button:hover {
  background: linear-gradient(135deg, var(--brand-dark), #0d6b5a);
  box-shadow: 0 14px 28px rgba(29, 95, 232, .2);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.secondary,
.google-button,
.identity-button,
.quiet {
  box-shadow: none;
}

.secondary {
  color: #1f2937;
  border-color: #cfd8e6;
  background: #ffffff;
}

.secondary:hover {
  color: var(--brand);
  border-color: #b7c8e8;
  background: #f7faff;
}

.danger,
.warning {
  box-shadow: none;
}

.device-grid {
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 16px;
}

.blueprint-grid,
.launcher-policy,
.play-app-layout {
  gap: 16px;
}

.device-card,
.blueprint-card,
.admin-panel,
.management-block,
.package-policy,
.install-form,
.form-section,
.enrollment-options,
.facts,
.table-wrap,
.command,
.screenshot-card,
.admin-entry,
.profile-choice,
.single-app-choice,
.wifi-profile,
.blueprint-app,
.apple-vpp-app,
.managed-play-app {
  border-color: rgba(148, 163, 184, .28);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
}

.device-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.device-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--good);
}

.device-card:has(.badge.offline)::before {
  background: #94a3b8;
}

.device-card:has(.badge.locked)::before {
  background: var(--warn);
}

.device-card:hover {
  border-color: rgba(29, 95, 232, .24);
  box-shadow: var(--shadow-md);
}

.device-card.selected,
.device-card.selected:hover {
  border-color: rgba(49, 87, 213, .58);
  box-shadow: 0 0 0 3px rgba(49, 87, 213, .12), var(--shadow-md);
}

.card-head {
  align-items: flex-start;
}

.card-head h2,
.device-card h2,
.blueprint-card h2,
.admin-panel h2 {
  color: #0f172a;
  letter-spacing: 0;
}

.device-card h2 {
  font-size: 16px;
  line-height: 1.25;
}

.badge,
.tag,
.app-status {
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: 0;
}

.badge {
  border: 1px solid #bbe7d8;
  background: #ecfdf6;
}

.badge.offline {
  color: #64748b;
  border-color: #d7dee8;
  background: #f1f5f9;
}

.badge.locked {
  color: #a65310;
  border-color: #f6d9a5;
  background: #fff7e8;
}

.badge.unlocked {
  color: var(--good);
  border-color: #bbe7d8;
  background: #ecfdf6;
}

.battery {
  height: 8px;
  margin-top: 20px;
  background: #e8edf5;
}

.battery span {
  background: linear-gradient(90deg, #12a06f, #1d5fe8);
}

.tag {
  color: #214f93;
  border: 1px solid #d5e4ff;
  background: #eef5ff;
}

.empty-state {
  border-radius: 8px;
  border-color: #b8c5d7;
  background:
    linear-gradient(135deg, rgba(29, 95, 232, .06), rgba(17, 132, 95, .05)),
    rgba(255,255,255,.84);
  box-shadow: var(--shadow-sm);
}

input,
select,
textarea {
  border-radius: 8px;
  border-color: #cfd8e6;
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2a6ced;
  box-shadow: 0 0 0 4px rgba(42, 108, 237, .12);
}

.login-shell {
  background:
    radial-gradient(circle at 18% 12%, rgba(29, 95, 232, .18), transparent 30%),
    radial-gradient(circle at 82% 80%, rgba(17, 132, 95, .13), transparent 32%),
    #f4f7fb;
}

.login-card {
  border-radius: 12px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .16);
}

.identity-button span {
  border-radius: 6px;
  background: linear-gradient(135deg, #1d5fe8, #178e70);
}

.device-detail-header {
  margin-bottom: 16px;
}

.device-hero {
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(29, 95, 232, .08), rgba(17, 132, 95, .05)),
    #ffffff;
  box-shadow: var(--shadow-sm);
}

.device-hero h1 {
  letter-spacing: 0;
}

.device-identity span {
  border-radius: 8px;
  background: #f8fafc;
}

.fact {
  background: #ffffff;
}

th {
  color: #475569;
  background: #f8fafc;
}

tr:hover td {
  background: #fbfdff;
}

dialog {
  border-radius: 12px;
}

.enrollment-mode-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f8;
}

.enrollment-mode-tabs button {
  flex: 1;
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}

.enrollment-mode-tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #0f7d68);
}

.stagenow-content {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.stage-now-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.stage-now-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #334155;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.5;
}

.stagenow-content pre {
  max-height: 360px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #172033;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.toast {
  border-radius: 8px;
  background: #0f172a;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .content {
    padding: 28px 20px;
  }

  .maple-store-layout {
    grid-template-columns: 1fr;
  }

  .maple-records-panel {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  aside {
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(148, 163, 184, .24);
  }

  .brand-row {
    color: var(--ink);
  }

  .brand-row strong {
    letter-spacing: 0;
    text-transform: none;
  }

  .brand-mark.small {
    border-color: var(--line);
    background: #f8fafc;
  }

  header {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .maple-app-row {
    grid-template-columns: 1fr;
  }

  .maple-app-row .app-actions {
    justify-content: stretch;
  }

  .maple-app-row .app-actions button {
    flex: 1;
  }
}
