:root {
  color-scheme: light;
  --ink: #27383a;
  --muted: #63727f;
  --line: #d7dee4;
  --paper: #fbfdfe;
  --background: #ecf0f4;
  --brand: #667886;
  --brand-dark: #364a5b;
  --brand-pale: #eaedf0;
  --green: #37546b;
  --green-dark: #284156;
  --green-pale: #edf0f3;
  --gold: #a88b56;
  --shadow: 0 12px 34px rgba(42, 52, 46, .065);
  --shadow-hover: 0 18px 42px rgba(42, 52, 46, .12);
  font-family: "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 50% -18%, #fbfdfe 0, transparent 65%), var(--background); color: var(--ink); }
body.startup-active { overflow: hidden; }
button, input, select { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.startup-gate { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: radial-gradient(ellipse at 78% 12%, rgba(183, 157, 105, .2), transparent 34%), linear-gradient(145deg, #f0f4f8 0%, #ebeef1 100%); }
.startup-card { position: relative; width: min(100%, 520px); padding: 40px 42px 28px; overflow: hidden; border: 1px solid #d0dce6; border-radius: 26px; background: rgba(255, 254, 250, .96); box-shadow: 0 24px 70px rgba(46, 60, 53, .14); }
.startup-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, #556979, #c0a66c, #556979); content: ""; }
.startup-brand { display: flex; align-items: center; gap: 12px; }
.startup-emblem { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border: 1px solid #d8e1e9; border-radius: 15px; background: #fff; }
.startup-emblem img { width: auto; height: 48px; object-fit: contain; }
.startup-brand-copy strong, .startup-brand-copy small { display: block; }
.startup-brand-copy strong { color: #354959; font-size: 15px; font-weight: 800; letter-spacing: -.3px; }
.startup-brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.startup-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; padding: 7px 11px; border: 1px solid #d3dde6; border-radius: 30px; color: #6d624e; background: #edf3f8; font-size: 9px; font-weight: 700; letter-spacing: .45px; text-transform: uppercase; }
.startup-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px #d4e2ee; }
.startup-eyebrow { margin: 23px 0 9px; color: #7d765f; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
.startup-card h1 { margin: 0; color: #2c3b47; font-size: clamp(32px, 7vw, 42px); line-height: 1.08; letter-spacing: -1.6px; }
.startup-copy { max-width: 380px; margin: 13px 0 24px; color: #63717d; font-size: 13px; line-height: 1.65; }
.startup-button { width: 100%; min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid #314657; border-radius: 12px; color: #fbfdfe; background: linear-gradient(130deg, #3e5466, #2d4151); box-shadow: 0 9px 20px rgba(45, 81, 73, .2); font-size: 12px; font-weight: 700; text-align: left; transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.startup-button:hover:not(:disabled) { box-shadow: 0 12px 26px rgba(45, 81, 73, .26); filter: brightness(1.05); transform: translateY(-1px); }
.startup-button:active:not(:disabled) { transform: translateY(0); }
.startup-button:disabled { cursor: wait; opacity: .76; }
.startup-button[aria-busy="true"] .startup-button-icon { animation: refresh-spin 1.1s linear infinite; }
.startup-button-icon { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 9px; color: #b8d7f1; font-size: 17px; }
.startup-button-arrow { margin-left: auto; color: #b4d2ea; font-size: 18px; }
.startup-status { min-height: 18px; margin: 11px 0 0; color: #8a6743; font-size: 10px; line-height: 1.5; }
.startup-note { display: flex; align-items: center; gap: 8px; margin-top: 7px; padding-top: 17px; border-top: 1px solid #dfe7ee; color: #6e7e8b; font-size: 10px; }
.startup-note span { color: var(--gold); }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) { .startup-gate { padding: 16px; } .startup-card { padding: 30px 24px 22px; border-radius: 22px; } .startup-badge { margin-top: 28px; } }
.app-shell { width: min(1840px, calc(100% - clamp(28px, 5vw, 120px))); margin: 0 auto; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-emblem { width: 44px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #fff; }
.brand-logo { display: block; width: auto; height: 56px; object-fit: contain; }
.brand-divider { width: 1px; height: 38px; background: #dce5eb; }
.brand-app strong, .brand-app small { display: block; }
.brand-app strong { color: #354959; font: 800 16px "Segoe UI", sans-serif; letter-spacing: -.4px; }
.brand-app small { margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .15px; }
.topbar-right { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 12px; }
.sync-indicator { display: inline-flex; align-items: center; gap: 7px; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #6489a7; box-shadow: 0 0 0 3px #e6ecf1; }
.sync-indicator.offline { color: #aa514b; }
.sync-indicator.offline .sync-dot { background: #c65e54; box-shadow: 0 0 0 3px #f8e9e7; }
.refresh-button { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid #c9d7e3; border-radius: 9px; color: var(--brand-dark); background: #edf3f8; font-size: 10px; font-weight: 700; transition: background .15s, border-color .15s; }
.refresh-button:hover:not(:disabled) { border-color: #cbb98e; background: #dde8f1; }
.refresh-button:disabled { cursor: wait; opacity: .7; }
.refresh-button[aria-busy="true"] { animation: refresh-pulse 1.2s ease-in-out infinite alternate; }
@keyframes refresh-pulse { to { opacity: .55; } }
.today { text-transform: capitalize; }
.app-tabs { display: flex; gap: 6px; margin-top: 14px; border-bottom: 1px solid var(--line); }
.app-tab { display: inline-flex; min-height: 39px; align-items: center; gap: 7px; padding: 0 13px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.app-tab:hover { color: var(--brand-dark); }
.app-tab.active { border-bottom-color: var(--gold); color: var(--brand-dark); }
.tab-count { min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 20px; color: #fff; background: #bc5b51; font-size: 9px; line-height: 1; }
.tab-count[hidden], [hidden] { display: none !important; }
main { padding-bottom: 32px; }
.notifications-view { min-height: 480px; padding: 30px 0 16px; }
.notifications-heading { margin: 4px 0 8px; }
.notifications-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.5px; }
.notifications-description { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.notification-list { display: grid; gap: 10px; }
.notification-card { min-height: 78px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 15px; border: 1px solid var(--line); border-left: 3px solid #dda35c; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.notification-card.empty { border-left-color: #c65e54; }
.notification-card .product-icon { width: 40px; height: 40px; }
.notification-details { min-width: 0; }
.notification-details strong { display: block; overflow-wrap: anywhere; font-size: 12px; }
.notification-details span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.notification-status { padding: 6px 9px; border-radius: 20px; color: #94632c; background: #e8f2fb; font-size: 9px; font-weight: 700; text-align: center; white-space: nowrap; }
.notification-status.empty { color: #ad514b; background: #fbecea; }
.notification-status.minimum { color: #426d90; background: #edf4fa; }
.notification-empty { display: grid; min-height: 205px; justify-items: center; align-content: center; padding: 24px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: var(--paper); text-align: center; }
.notification-empty > span { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 12px; color: var(--green); background: var(--green-pale); font-size: 19px; font-weight: 700; }
.notification-empty strong { color: var(--ink); font-size: 13px; }
.notification-empty p { margin: 6px 0 0; font-size: 11px; }
.intro { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 220px; margin: 24px 0 29px; padding: 34px 38px; overflow: hidden; border: 1px solid #d2dee8; border-radius: 22px; background: linear-gradient(115deg, #fbfdfe 0%, #fbfdfe 58%, #e9edf1 100%); box-shadow: var(--shadow); }
.intro::after { position: absolute; right: 118px; bottom: -155px; width: 290px; height: 290px; border: 1px solid #dfeaf0; border-radius: 50%; content: ""; pointer-events: none; }
.eyebrow { margin: 0 0 9px; color: #5f6d78; font-size: clamp(9px, .68vw, 11px); font-weight: 700; letter-spacing: 1.35px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Segoe UI", sans-serif; }
h1 { margin-bottom: 12px; color: #2c3b47; font-size: clamp(32px, 4vw, 41px); line-height: 1.1; letter-spacing: -1.8px; }
.intro-copy { max-width: 470px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.mobile-break { display: none; }
.intro-illustration { position: relative; z-index: 1; display: grid; place-items: center; width: 112px; height: 112px; margin-right: 42px; border: 1px solid #dceaf1; border-radius: 34px; background: linear-gradient(145deg, #fff 5%, #e9f3f8 100%); box-shadow: 0 13px 30px #244b6412; transform: rotate(-5deg); }
.intro-illustration div { font-size: 49px; filter: drop-shadow(0 5px 5px #1c34451a); transform: rotate(5deg); }
.intro-illustration span { position: absolute; top: -10px; right: -13px; color: #ae965e; font-size: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 4px 0 16px; }
.section-heading h2, .panel-heading h2 { margin: 0; font-size: clamp(18px, 1.15vw, 23px); letter-spacing: -.55px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.stock-total { color: var(--muted); font-size: 11px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: clamp(12px, 1.1vw, 20px); }
.product-card { min-width: 0; min-height: 146px; padding: clamp(16px, 1.45vw, 25px); border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.product-card:hover { transform: translateY(-2px); border-color: #d5e2e8; box-shadow: var(--shadow-hover); }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; }
.product-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; font-size: 21px; }
.product-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.product-icon[data-icon="paper-hands"] { color: #436b8b; }
.product-icon[data-icon="toilet-paper"] { color: #428bca; }
.product-icon[data-icon="napkins"] { color: #aa7a43; }
.product-icon[data-icon="sangenic-cartridge"] { color: #6d82a2; }
.product-icon[data-icon="trash-bags"] { color: #a36d50; }
.product-icon[data-icon="kitchen-paper-blue"] { color: #428bca; }
.product-icon[data-icon="kitchen-paper-white"] { color: #687782; }
.product-icon[data-icon="dish-soap-manual"] { color: #436b8b; }
.product-icon[data-icon="dish-soap-machine"] { color: #428bca; }
.product-icon[data-icon="rinse-aid"] { color: #bd7d4d; }
.product-icon.mint { background: #eaf0f4; }
.product-icon.blue { background: #edf2f8; }
.product-icon.peach { background: #e4f1fb; }
.stock-status { padding: 6px 9px; border-radius: 20px; color: #436077; background: #edf1f5; font-size: 9px; font-weight: 700; }
.stock-status.low { color: #a76b2c; background: #e8f2fb; }
.stock-status.empty { color: #ad514b; background: #fbecea; }
.product-name { margin: 11px 0 1px; color: #2b3c47; font-size: clamp(12px, .82vw, 15px); font-weight: 650; }
.product-amount { display: flex; align-items: baseline; gap: 5px; }
.product-amount strong { font: 800 clamp(25px, 1.65vw, 34px) "Segoe UI", sans-serif; letter-spacing: -.8px; }
.product-amount span { color: var(--muted); font-size: 11px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; color: #8997a3; font-size: 9px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(14px, 1.3vw, 24px); margin-top: clamp(20px, 1.8vw, 32px); }
.panel { min-width: 0; padding: clamp(20px, 1.65vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; }
.panel-heading .eyebrow { margin-bottom: 4px; font-size: 8px; }
.panel-heading h2 { font-size: 16px; }
.panel-icon { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font-size: 17px; font-weight: 700; }
.lavender { color: var(--brand-dark); background: var(--brand-pale); }
.peach { color: #b87944; background: #e6f2fb; }
.green { color: var(--brand-dark); background: var(--brand-pale); }
.field-label { display: block; margin: 0 0 6px; color: #4e5a64; font-size: clamp(10px, .72vw, 13px); font-weight: 600; }
input, select { width: 100%; min-height: clamp(44px, 3.4vw, 52px); padding: 0 12px; border: 1px solid #dbdfe3; border-radius: 10px; outline: none; color: var(--ink); background: #fbfdfe; font-size: clamp(12px, .82vw, 15px); transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #9faab3; }
input:focus, select:focus { border-color: #7ab4df; box-shadow: 0 0 0 3px #e7f2fb; }
form > .field-label { margin-top: 12px; }
.form-row { display: grid; grid-template-columns: 1fr .8fr; gap: 11px; margin-top: 12px; }
.quantity-control { display: flex; min-height: 42px; align-items: center; border: 1px solid #e3e6e9; border-radius: 8px; }
.quantity-control:focus-within { border-color: #7ab4df; box-shadow: 0 0 0 3px #e7f2fb; }
.quantity-step { width: 35px; height: 38px; border: 0; color: #5c6a75; background: transparent; font-size: 19px; }
.quantity-control input { min-width: 24px; min-height: 38px; padding: 0; border: 0; border-radius: 0; text-align: center; box-shadow: none; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.primary-button { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding: 0 15px; border: 0; border-radius: 10px; color: #fbfdfe; background: linear-gradient(135deg, #556979, #364a5b); box-shadow: 0 6px 15px rgba(54, 91, 83, .2); font-size: 11px; font-weight: 700; transition: background .15s, transform .15s, box-shadow .15s; }
.primary-button:hover { background: #2e4151; }
.primary-button:active { transform: scale(.99); }
.primary-button span:last-child { font-size: 16px; }
.form-message { min-height: 15px; margin: 7px 0 -7px; color: #9d5148; font-size: 10px; }
.activity-list { max-height: 286px; overflow: auto; }
.activity-empty { display: grid; min-height: 159px; place-content: center; justify-items: center; color: #93a0aa; text-align: center; }
.activity-empty span { margin-bottom: 9px; font-size: 26px; }
.activity-empty p { max-width: 205px; margin: 0; font-size: 11px; line-height: 1.6; }
.activity-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid #eef0f1; }
.activity-item:first-child { padding-top: 1px; }
.activity-item:last-child { border-bottom: 0; }
.activity-symbol { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #4b6e8b; background: #edf1f5; font-size: 14px; font-weight: 700; }
.activity-symbol.restock { color: #7084a0; background: #eef2f8; }
.activity-description { min-width: 0; }
.activity-description strong { display: block; overflow: hidden; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.activity-description span, .activity-date { display: block; margin-top: 4px; color: #808f9b; font-size: 9px; }
.activity-quantity { color: var(--green); font-size: 10px; font-weight: 700; white-space: nowrap; }
.activity-quantity.restock { color: #66809f; }
.management-panel { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.management-panel summary { display: flex; align-items: center; gap: 11px; padding: 14px 18px; list-style: none; cursor: pointer; }
.management-panel summary::-webkit-details-marker { display: none; }
.management-panel summary strong, .management-panel summary small { display: block; }
.management-panel summary strong { font-size: 11px; }
.management-panel summary small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.summary-chevron { margin-left: auto; color: var(--muted); font-size: 17px; transition: transform .2s; }
.management-panel[open] .summary-chevron { transform: rotate(180deg); }
.management-content { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding: 2px 18px 20px; border-top: 1px solid #eef0f1; }
.management-form { padding-top: 16px; }
.management-form h3 { margin: 0 0 13px; font-size: 12px; }
.management-form .field-label { margin-top: 9px; }
.management-form input, .management-form select { min-height: 38px; font-size: 11px; }
.management-form .form-row { gap: 8px; margin-top: 8px; }
.secondary-button { min-height: 36px; margin-top: 11px; padding: 0 12px; border: 1px solid #d5e5f2; border-radius: 7px; color: var(--brand-dark); background: #f2f8fc; font-size: 10px; font-weight: 700; }
.secondary-button:hover { background: var(--brand-pale); }
.staff-add-row { display: flex; align-items: center; gap: 7px; }
.staff-add-row input { min-width: 0; }
.staff-add-row .secondary-button { flex: 0 0 auto; margin-top: 0; }
.staff-list { max-height: 150px; margin-top: 8px; overflow-y: auto; }
.staff-empty { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.staff-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; border-bottom: 1px solid #eef0f1; font-size: 10px; }
.remove-staff { width: 26px; height: 26px; flex: 0 0 auto; border: 0; border-radius: 7px; color: #a34d48; background: #fbecea; font-size: 18px; line-height: 1; }
.remove-staff:hover { background: #f5ddda; }
.excel-management { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 15px; border-top: 1px solid #eef0f1; }
.excel-description { flex: 1 1 460px; }
.excel-description h3 { margin: 0 0 7px; font-size: 12px; }
.excel-description p { max-width: 700px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.excel-description .excel-warning { margin-top: 4px; color: #9a6b43; }
.excel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.excel-actions .secondary-button { display: inline-flex; min-height: 36px; align-items: center; margin: 0; text-decoration: none; }
.import-button { cursor: pointer; }
.import-button:hover { background: var(--brand-pale); }
.file-input { display: none; }
.excel-message { flex-basis: 100%; margin-top: -6px; }
.footer-note { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 24px 0 5px; color: #8c9aa5; font-size: 10px; }
.footer-star { color: #87bce1; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 4; max-width: calc(100vw - 32px); padding: 12px 17px; border-radius: 9px; color: #fff; background: #26333d; box-shadow: 0 8px 25px #26333d33; font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (min-width: 1440px) {
  .topbar { height: clamp(86px, 8vh, 104px); }
  .brand-emblem { width: 52px; height: 66px; }
  .brand-logo { height: 64px; }
  .brand-app strong { font-size: clamp(17px, 1.1vw, 21px); }
  .brand-app small, .topbar-right { font-size: clamp(11px, .78vw, 15px); }
  .intro { min-height: clamp(240px, 23vh, 320px); padding: clamp(38px, 3vw, 58px); }
  .intro h1 { font-size: clamp(42px, 3vw, 58px); }
  .intro-copy { font-size: clamp(14px, .95vw, 18px); }
  .intro-illustration { width: clamp(120px, 9vw, 164px); height: clamp(120px, 9vw, 164px); margin-right: clamp(32px, 4vw, 76px); }
  .intro-illustration div { font-size: clamp(52px, 4vw, 76px); }
  .product-card { min-height: clamp(164px, 16vh, 210px); }
  .product-icon { width: clamp(42px, 3vw, 54px); height: clamp(42px, 3vw, 54px); }
  .product-icon svg { width: clamp(27px, 1.8vw, 34px); height: clamp(27px, 1.8vw, 34px); }
  .stock-total { font-size: clamp(12px, .78vw, 15px); }
  .panel-heading h2 { font-size: clamp(17px, 1.1vw, 21px); }
}

@media (max-width: 760px), (pointer: coarse) {
  .management-panel, .footer-note { display: none; }
}

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

@media (max-width: 720px) {
  .app-shell { width: min(100% - 28px, 560px); }
  .topbar { height: 66px; }
  .topbar-right { gap: 9px; }
  .sync-indicator { gap: 0; font-size: 0; }
  .refresh-button { min-height: 32px; padding: 0 9px; font-size: 9px; }
  .app-tabs { margin-top: 8px; }
  .app-tab { min-height: 38px; padding: 0 11px; }
  .today { display: none; }
  .intro { min-height: 168px; margin: 17px 0 23px; padding: 24px 20px; border-radius: 18px; }
  .intro::after { right: 60px; bottom: -190px; width: 260px; height: 260px; }
  .intro-illustration { width: 65px; height: 65px; flex: 0 0 auto; margin-right: 1px; border-radius: 21px; }
  .intro-illustration div { font-size: 34px; }
  .intro-illustration span { right: -10px; font-size: 19px; }
  .mobile-break { display: initial; }
  .intro-copy { max-width: 290px; font-size: 11px; line-height: 1.55; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { min-height: 139px; padding: 14px; border-radius: 14px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 15px; }
  .panel { padding: 18px; border-radius: 15px; }
  .activity-list { max-height: 250px; }
  .notifications-view { padding-top: 20px; }
  .notification-card { grid-template-columns: 36px minmax(0, 1fr); gap: 9px; padding: 12px; }
  .notification-card .product-icon { width: 36px; height: 36px; }
  .notification-status { grid-column: 2; justify-self: start; }
  .management-content { grid-template-columns: 1fr; gap: 6px; padding-bottom: 17px; }
  .management-form + .management-form { border-top: 1px solid #eef0f1; }
}

@media (max-width: 370px) {
  .app-shell { width: calc(100% - 22px); }
  .product-card { padding: 12px; }
  .form-row { grid-template-columns: 1fr .75fr; gap: 7px; }
  .intro { padding: 20px 15px; }
  .intro-illustration { width: 55px; height: 55px; }
  .intro-illustration div { font-size: 28px; }
}

/* Interface CSC — responsive, shared by browser, Windows and Android. */
:root { --ink:#17242e; --muted:#525e68; --line:#dce1e5; --paper:#fff; --background:#f2f4f6; --brand:#265174; --brand-dark:#17354e; --brand-pale:#e5ecf2; --gold:#b68b4c; --shadow:0 4px 16px #172b3b10; font-family:Inter,"Segoe UI",system-ui,sans-serif; }
body { background:var(--background); font-size:15px; }
.app-shell { width:min(1480px,calc(100% - 64px)); }
.topbar { height:76px; }
.brand-app strong {font-size:22px; color:var(--brand-dark)}
.brand-app small {font-size:12px;}
.topbar-right {gap:16px;font-size:13px;}
.refresh-button {min-height:42px;font-size:13px;background:white;border-color:var(--line);}
.app-tabs {margin-top:12px;gap:8px;position:sticky;top:0;z-index:3;background:var(--background);padding:8px 0;}
.app-tab {min-height:44px;padding:0 18px;font-size:14px;border:0;border-radius:10px;}
.app-tab.active {background:var(--brand-dark);color:white;}
.intro {min-height:0;margin:16px 0 18px;padding:30px 34px;background:linear-gradient(115deg,#17354e,#284e6e);color:white;border:0;border-radius:20px;gap:24px;}
.intro::after {border-color:#ffffff24;right:30px;}
.intro h1 {font-size:clamp(27px,3vw,43px);color:white;letter-spacing:-1.3px;margin-bottom:10px;line-height:1.15;}
.intro .eyebrow,.intro-copy {color:#d9e4ed;}
.intro-copy {font-size:15px;margin:0;}
.hero-actions {display:flex;flex-direction:column;gap:8px;flex-shrink:0;z-index:1;}
.hero-button,.hero-link {border:0;border-radius:10px;min-height:44px;padding:0 16px;font-size:14px;font-weight:700;}
.hero-button {background:white;color:var(--brand-dark);}.hero-link {background:#ffffff16;color:white;}
.overview {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:26px;}
.overview>div {background:white;border:1px solid var(--line);border-radius:14px;padding:16px 18px;box-shadow:var(--shadow);}
.overview small {display:block;font-size:12px;color:var(--muted);line-height:1.4;}.overview strong {display:block;font-size:29px;line-height:1.2;margin-top:8px;font-variant-numeric:tabular-nums;}.overview>div:nth-child(3) strong {color:#946123;}.overview>div:nth-child(4) strong {color:#b0443c;}
.eyebrow {font-size:11px;letter-spacing:1px;}.section-heading h2,.panel-heading h2 {font-size:22px;}.stock-total {font-size:13px;}
.stock-tools {display:flex;gap:10px;margin:0 0 14px;}.search-field {display:flex;align-items:center;gap:8px;background:white;border:1px solid var(--line);border-radius:10px;padding-left:12px;flex:1;}.search-field span {font-size:24px;color:var(--muted);}.search-field input {border:0;background:transparent;min-width:0;}.stock-tools select {width:min(230px,45%);}
.product-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:12px;}.product-card {min-height:0;padding:16px;border-radius:14px;}.product-card.low {border-top:3px solid #d19b49;}.product-card.empty {border-top:3px solid #c65e54;}.product-name {font-size:14px;line-height:1.35;min-height:2.7em;}.product-amount strong {font-size:34px;font-variant-numeric:tabular-nums;}.product-amount span,.product-meta {font-size:12px;}.stock-status {font-size:11px;}.product-meta {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;}.card-action {background:var(--brand-pale);color:var(--brand-dark);border:0;border-radius:8px;padding:7px 9px;min-height:36px;font-size:12px;font-weight:700;}.empty-results {grid-column:1/-1;padding:28px;background:white;border:1px dashed var(--line);border-radius:12px;text-align:center;color:var(--muted);}
.workspace-grid {gap:16px;}.panel {padding:24px;border-radius:16px;min-width:0;}.panel-heading .eyebrow {font-size:11px;}.field-label {font-size:13px;}.form-row {grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);}.availability {font-size:12px;color:var(--muted);margin:7px 0 0;}.quantity-step {width:44px;height:44px;flex-shrink:0;}.quantity-control {min-height:48px;}.quantity-control input {min-width:0;}.primary-button {min-height:48px;font-size:14px;background:var(--brand-dark);}.form-message {font-size:13px;line-height:1.45;}.activity-tools {margin-bottom:12px;}.activity-tools select {max-width:260px;}.activity-list {max-height:390px;}.activity-item {padding:12px 0;}.activity-description strong {font-size:14px;white-space:normal;overflow-wrap:anywhere;}.activity-description span,.activity-date {font-size:12px;line-height:1.4;}.activity-quantity {font-size:15px;}.management-panel summary {padding:18px 22px;}.management-panel summary strong,.management-form h3,.excel-description h3 {font-size:15px;}.management-panel summary small,.excel-description p,.staff-item,.staff-empty {font-size:13px;}.management-content {gap:16px;padding:18px;grid-template-columns:repeat(2,minmax(0,1fr));}.management-form {border:1px solid var(--line);padding:18px;border-radius:12px;min-width:0;}.management-form input,.management-form select,input,select {min-height:46px;font-size:14px;background:white;}.secondary-button {min-height:44px;font-size:13px;border-color:var(--line);background:var(--brand-pale);}.remove-staff {width:40px;height:40px;}.notification-card {padding:18px;}.notification-details strong {font-size:16px;}.notification-details span,.notification-status,.notifications-description {font-size:13px;}.notification-empty strong {font-size:16px;}.notification-empty p {font-size:14px;}.toast {font-size:14px;line-height:1.5;padding:14px 18px;z-index:8;}.startup-card {border-radius:24px;}.startup-copy {font-size:15px;}.startup-button {font-size:14px;min-height:56px;}.startup-status,.startup-note {font-size:12px;}.startup-brand-copy small {font-size:12px;}.startup-badge,.startup-eyebrow {font-size:11px;}
button:disabled {opacity:.48;cursor:not-allowed;transform:none!important;box-shadow:none!important;} button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible {outline:3px solid #42739b;outline-offset:3px;} .search-field:focus-within {outline:2px solid #42739b;}.search-field input:focus-visible {outline:none;box-shadow:none;}
@media(max-width:760px){.app-shell{width:calc(100% - 28px)}.topbar{height:auto;min-height:68px;gap:8px;}.brand{gap:6px}.brand-divider{display:none}.brand-app strong{font-size:18px}.brand-app small{font-size:10px}.brand-emblem{width:38px;height:48px}.brand-logo{height:46px}.topbar-right{gap:8px}.refresh-button{font-size:11px;padding:0 8px;min-height:44px}.sync-indicator{font-size:0}.app-tabs{margin-top:4px}.app-tab{flex:1;justify-content:center}.intro{padding:23px 18px;flex-direction:column;align-items:stretch;gap:16px;margin-top:10px}.intro h1{font-size:29px}.intro-copy{font-size:14px}.hero-actions{flex-direction:row;flex-wrap:wrap}.hero-button,.hero-link{flex:1 1 auto;font-size:13px;padding:0 10px}.overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:20px}.overview>div{padding:12px}.overview small{font-size:12px}.overview strong{font-size:25px}.section-heading h2{font-size:20px}.stock-total{font-size:11px;text-align:right}.stock-tools{flex-direction:column;gap:8px}.stock-tools select{width:100%}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-card{padding:12px}.product-top{flex-wrap:wrap;gap:6px}.stock-status{font-size:10px}.product-name{font-size:13px;min-height:2.7em}.product-amount strong{font-size:29px}.product-meta{font-size:11px}.card-action{width:100%;min-height:44px}.panel{padding:17px}.panel-heading h2{font-size:19px}.form-row{grid-template-columns:1fr}.field-label{font-size:14px}input,select,.management-form input,.management-form select{font-size:16px;min-height:48px}.activity-list{max-height:360px}.notification-card{padding:14px}.notification-details strong{font-size:14px}.toast{left:14px;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));max-width:none}.management-content{grid-template-columns:1fr}}
@media(max-width:340px){.product-grid{grid-template-columns:1fr}.brand-app small{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(max-width:760px){.intro{padding:18px;gap:12px}.intro h1{font-size:26px;margin-bottom:7px}.hero-actions{flex-direction:row;flex-wrap:nowrap}.hero-button,.hero-link{font-size:12px;flex:1 1 0;min-width:0;line-height:1.2;padding:8px}.overview>div{padding:10px 12px}.overview strong{margin-top:4px}.overview small{min-height:2.8em}.stock-tools{margin-bottom:10px}}
.product-meta {color:var(--muted)}

/* CSC institutional design */
:root{--ink:#172c40;--muted:#586b7e;--line:#dce5ed;--paper:#fff;--background:#f3f6fa;--brand:#168fc5;--brand-dark:#075985;--brand-pale:#eaf5fc;--green:#075985;--green-dark:#064b71;--green-pale:#eaf5fc;--gold:#168fc5;--shadow:0 2px 8px #183b5610;--shadow-hover:0 4px 16px #183b561c;}
body{background:var(--background)}.app-shell{max-width:1320px}.topbar{height:76px}.brand-app strong{color:var(--brand-dark);font-size:21px}.brand-app small{font-size:12px}.app-tabs{background:var(--background);border-bottom:1px solid var(--line);gap:8px}.app-tab{display:flex;gap:8px;align-items:center;font-weight:600}.app-tab.active{background:var(--brand-pale);color:var(--brand-dark)}.nav-icon{width:21px;height:21px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.intro{background:transparent;color:var(--ink);padding:12px 0;margin:20px 0 14px;box-shadow:none;border-radius:0;gap:16px}.intro::after{display:none}.intro h1{color:var(--ink);font-size:30px;letter-spacing:-.8px;margin-bottom:6px}.intro .eyebrow,.intro-copy{color:var(--muted)}.intro .eyebrow,.section-heading .eyebrow,.panel-heading .eyebrow{display:none}.hero-actions{flex-direction:row}.hero-button{background:var(--brand-dark);color:white}.hero-link{display:none}.overview{gap:12px;margin-bottom:22px}.overview>div{border-radius:10px;box-shadow:none;padding:14px 18px}.overview small{font-size:13px}.overview strong{font-size:27px}.product-card,.panel,.management-panel,.notification-card{border-radius:12px;box-shadow:none;background:white}.product-card{border-top:1px solid var(--line)}.product-card.low{border-top:1px solid var(--line);border-left:3px solid #d19b49}.product-card.empty{border-top:1px solid var(--line);border-left:3px solid #c65e54}.product-icon,.panel-icon{background:var(--brand-pale)!important;color:var(--brand-dark)!important}.stock-status:not(.low):not(.empty){background:var(--brand-pale);color:var(--brand-dark)}.product-name{min-height:0;margin:10px 0 6px}.product-amount strong{color:var(--ink)}.product-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr))}.startup-gate{background:var(--background)}.startup-card{background:white;border-color:var(--line);box-shadow:var(--shadow)}.startup-card::before{background:var(--brand)}.startup-button{background:var(--brand-dark);border-color:var(--brand-dark);box-shadow:none}.startup-badge{display:none}.startup-card h1{color:var(--ink)}.startup-eyebrow{margin-top:30px}.startup-button-icon,.startup-button-arrow{color:white}.sync-dot{background:var(--brand);box-shadow:0 0 0 3px var(--brand-pale)}.refresh-button{color:var(--brand-dark)}.toast{background:var(--brand-dark)}.workspace-grid{align-items:start}.management-panel[open]{margin-top:0}.management-panel summary{display:none}.management-content{padding:16px}.view-heading{margin:24px 0 16px;font-size:26px;letter-spacing:-.5px}.app-tab[data-area="withdraw"]{color:var(--brand-dark)}.app-tab[data-area="withdraw"].active{background:var(--brand-pale)}
@media(min-width:761px){.workspace-grid{display:grid;grid-template-columns:1fr}.workspace-grid .panel{max-width:760px;width:100%}.activity-panel{max-width:none!important}.management-panel{max-width:100%}.app-tab[data-area="management"]{margin-left:auto}}
@media(max-width:760px){.app-shell{width:calc(100% - 28px)}.topbar{min-height:64px;height:auto}.brand-app strong{font-size:19px}.brand-app small{font-size:10px}.topbar-right .refresh-button [data-refresh-label]{display:none}.topbar-right .refresh-button{width:42px;justify-content:center;font-size:20px}.app-tabs{position:fixed;inset:auto 0 0;margin:0;padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:#fff;box-shadow:0 -2px 18px #183b5614;border-top:1px solid var(--line);border-bottom:0;z-index:7;gap:2px}.app-tab{flex:1;min-width:0;min-height:54px;padding:4px 2px;flex-direction:column;gap:3px;font-size:10px;border-radius:8px;position:relative}.app-tab .tab-count{position:absolute;top:2px;right:12px}.app-tab[data-area="management"]{display:none}.intro{padding:4px 0;gap:10px;margin:16px 0}.intro h1{font-size:25px}.intro-copy{font-size:13px}.hero-actions{display:none}.overview{gap:6px;margin-bottom:20px}.overview>div{padding:10px 12px}.overview small{min-height:0;font-size:11px}.overview strong{font-size:24px}.stock-tools{flex-direction:column}.product-grid{grid-template-columns:1fr;gap:8px}.product-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:4px 10px;padding:12px;align-items:center}.product-top{display:contents}.product-top .product-icon{grid-column:1;grid-row:1/3;width:42px;height:42px;margin:0}.product-top .stock-status{grid-column:2;grid-row:2;justify-self:start;max-width:100%;font-size:10px}.product-name{grid-column:2;grid-row:1;margin:0;font-size:14px;min-height:0}.product-amount{grid-column:3;grid-row:1/3;display:flex;flex-direction:column;align-items:flex-end;margin:0;gap:0}.product-amount strong{font-size:26px}.product-amount span{font-size:11px}.product-meta{grid-column:1/-1;border-top:1px solid var(--line);padding-top:8px;margin-top:4px;font-size:11px}.card-action{width:auto;padding:7px 12px;min-height:36px}.workspace-grid{display:block}.panel{padding:16px}.view-heading{font-size:23px;margin:20px 0 12px}main{padding-bottom:calc(92px + env(safe-area-inset-bottom))}.toast{bottom:calc(77px + env(safe-area-inset-bottom))}.notifications-view{padding-top:18px}.management-panel{display:none!important}}
@media(pointer:coarse){.app-tab[data-area="management"]{display:none}}
.stock-status.low{background:#fff4e4;color:#946123}.app-tab[data-area="withdraw"]:not(.active){color:var(--muted)}.card-action{min-height:44px}.product-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr))}@media(max-width:760px){.product-grid{grid-template-columns:1fr}.intro-copy{max-width:340px}}

/* Final: quiet institutional palette, dedicated desktop navigation */
:root{--brand:#087bb0;--brand-dark:#075985;--background:#f5f7fa;--line:#dce5ed;--ink:#172c40}
body{background:var(--background)}.topbar{background:#fff}.app-tab.active{background:#e6f3fc;color:#075985}.app-tab:focus-visible,.card-action:focus-visible,button:focus-visible{outline:3px solid #168fc5;outline-offset:3px}.product-card{transition:border-color .15s,box-shadow .15s}.product-card:hover{box-shadow:0 3px 12px #07598512}.overview>div:first-child{border-top:3px solid #168fc5}.overview>div:nth-child(2){border-top:3px solid #075985}.overview>div:nth-child(3){border-top:3px solid #d19b49}.overview>div:nth-child(4){border-top:3px solid #c65e54}.overview>div{border-top-width:3px}.topbar-right .sync-indicator{white-space:nowrap}.sync-indicator.offline .sync-dot{background:#c65e54}.stock-tools input,.stock-tools select{border-radius:9px}.startup-card h1{font-size:32px}.startup-card .startup-note{line-height:1.5}.card-action{font-weight:650}
@media(min-width:1000px) and (pointer:fine){.app-shell{display:grid;grid-template-columns:220px minmax(0,1fr);grid-template-rows:76px 1fr;max-width:none;width:100%;min-height:100vh;gap:0}.topbar{grid-column:1/-1;padding:0 32px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:9}.app-tabs{grid-column:1;grid-row:2;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;position:sticky;top:76px;height:calc(100vh - 76px);margin:0;padding:26px 14px;border-right:1px solid var(--line);border-bottom:0;background:white;gap:7px}.app-tab{width:100%;justify-content:flex-start;padding:0 14px;min-height:48px;font-size:14px}.app-tab[data-area="management"]{margin:18px 0 0}.app-tab.active{box-shadow:inset 3px 0 #168fc5}.app-shell>main{grid-column:2;grid-row:2;width:100%;max-width:1500px;padding:0 32px 32px;min-width:0}.intro{margin-top:26px}.overview{grid-template-columns:repeat(4,minmax(0,1fr))}.product-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,225px),1fr));gap:14px}.product-card{padding:17px}.footer-note{grid-column:2;padding:0 32px}.app-tab .tab-count{margin-left:auto}}
@media(max-width:760px){.topbar{position:sticky;top:0;z-index:6;background:#fff;margin:0 -14px;padding:0 14px;border-bottom:1px solid var(--line)}.intro h1{font-size:24px}.overview{grid-template-columns:repeat(2,minmax(0,1fr))}.overview>div{padding:10px 12px}.overview small{font-size:11px}.overview strong{font-size:23px}.product-card{min-height:0}.app-tabs{border-radius:0}.app-tab{font-size:11px}.product-meta{padding-top:5px}.app-tab.active{color:#075985}.stock-tools{gap:8px}}

:root {
  --brand: #087bb0;
  --brand-dark: #075985;
  --brand-pale: #eaf5fc;
  --green: #075985;
  --green-dark: #064b71;
  --green-pale: #eaf5fc;
  --gold: #087bb0;
}

.startup-card::before,
.topbar,
.primary-button,
.toast {
  background-color: #075985;
}
