:root{
  --bg:#f6efe4;
  --bg-soft:#fbf7f0;
  --card:#fffaf2;
  --card-2:#fff5e7;
  --text:#25190f;
  --muted:#756656;
  --accent:#8b5527;
  --accent-2:#c08a4b;
  --accent-dark:#3a2111;
  --success:#2f6c39;
  --warning:#c86a15;
  --danger:#aa3f2f;
  --border:#e6d5bf;
  --shadow:0 18px 45px rgba(57,35,17,.10);
  --radius:18px;
}
body.dark-theme{
  --bg:#17100a;
  --bg-soft:#21160e;
  --card:#2a1b10;
  --card-2:#352214;
  --text:#fff2df;
  --muted:#d3b99a;
  --accent:#c68945;
  --accent-2:#e0b271;
  --accent-dark:#140b05;
  --success:#8fca84;
  --warning:#f0b35b;
  --danger:#e07b66;
  --border:#5b3a22;
  --shadow:0 18px 45px rgba(0,0,0,.30);
}
*{box-sizing:border-box}
html{min-height:100%}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 72% -10%,rgba(192,138,75,.18),transparent 36%),
    linear-gradient(135deg,#fbf6ed 0%,#f4eadc 55%,#e9d8c2 100%);
  color:var(--text);
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
}
body::after{
  content:"";
  position:fixed;
  left:280px;right:0;bottom:0;height:54px;
  z-index:-1;
  background:linear-gradient(90deg,#321b0d,#6f3e1e 42%,#30180b);
  opacity:.95;
}
header{
  position:sticky;
  top:0;
  height:100vh;
  padding:30px 16px 22px;
  color:#fff7ea;
  background:
    linear-gradient(90deg,rgba(0,0,0,.18),rgba(255,255,255,.03)),
    repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 1px,transparent 1px 9px),
    linear-gradient(180deg,#251407 0%,#351d0d 52%,#1d1008 100%);
  border-right:1px solid rgba(255,255,255,.08);
  box-shadow:14px 0 40px rgba(35,19,7,.18);
  overflow-y:auto;
}
.brand{text-align:center;margin-bottom:28px}.logo-card{max-width:226px;margin:0 auto 14px;padding:18px 14px;border-radius:24px;background:linear-gradient(180deg,rgba(255,248,233,.98),rgba(239,220,190,.98));box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 18px 35px rgba(0,0,0,.28)}.brand-logo{display:block;width:100%;height:auto;object-fit:contain}.brand-logo,.sidebar-logo-thumb{filter:drop-shadow(0 2px 5px rgba(0,0,0,.18))}h1{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:23px;line-height:1.05;letter-spacing:.05em;text-transform:uppercase;text-align:center}.brand-subtitle{display:block;margin-top:7px;color:#e7c395;font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
nav{display:flex;flex-direction:column;gap:8px;margin-top:20px}
nav button{
  width:100%;display:flex;align-items:center;gap:12px;
  border:0;border-radius:12px;padding:13px 16px;
  background:transparent;color:#fff6e8;cursor:pointer;
  font:700 15px/1.2 inherit;text-align:left;
  transition:transform .16s ease,background .16s ease,box-shadow .16s ease;
}
nav button::before{content:"";width:24px;height:24px;flex:0 0 24px;background:#e6bd84;-webkit-mask:var(--nav-icon) center/contain no-repeat;mask:var(--nav-icon) center/contain no-repeat}
nav button[data-page="dashboard"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='8' rx='1'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1'/%3E%3Crect x='3' y='15' width='7' height='6' rx='1'/%3E%3C/svg%3E")}
nav button[data-page="staemme"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8c0-2 2-4 5-4h4c3 0 5 2 5 4v8c0 2-2 4-5 4h-4c-3 0-5-2-5-4z'/%3E%3Cpath d='M9 8c1-1 5-1 6 0'/%3E%3Cpath d='M9 16c1 1 5 1 6 0'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E")}
nav button[data-page="bohlen"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16l-2 8H6z'/%3E%3Cpath d='M7 8l-1 8'/%3E%3Cpath d='M12 8v8'/%3E%3Cpath d='M17 8l1 8'/%3E%3C/svg%3E")}
nav button[data-page="neue-bohle"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 15h12l-1 5H4z'/%3E%3Cpath d='M7 15l-.5 5'/%3E%3Cpath d='M11 15v5'/%3E%3Cpath d='M17 4v8'/%3E%3Cpath d='M13 8h8'/%3E%3C/svg%3E")}
nav button[data-page="reststuecke"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h9l-2 6H3z'/%3E%3Cpath d='M13 12h7l-1 5h-8z'/%3E%3Cpath d='M7 7l-1 6'/%3E%3Cpath d='M15 12l-.5 5'/%3E%3C/svg%3E")}
nav button[data-page="brennholz"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16v12H4z'/%3E%3Cpath d='M7 8V5h10v3'/%3E%3Cpath d='M8 12h8'/%3E%3Cpath d='M8 16h8'/%3E%3C/svg%3E")}
nav button[data-page="verkaufte-kisten"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h11v11H4z'/%3E%3Cpath d='M7 9V6h8v3'/%3E%3Cpath d='M15 14l2 2 4-5'/%3E%3C/svg%3E")}
nav button[data-page="verkaufsuebersicht"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M7 16v-5'/%3E%3Cpath d='M12 16V6'/%3E%3Cpath d='M17 16V9'/%3E%3Cpath d='M7 5h6'/%3E%3Cpath d='M7 9h4'/%3E%3C/svg%3E")}
nav button[data-page="stammdetails"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='5'/%3E%3Cpath d='M14 14l6 6'/%3E%3Cpath d='M8 10h4'/%3E%3Cpath d='M10 8v4'/%3E%3C/svg%3E")}
nav button[data-page="labeldruck"]{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h12v6H6z'/%3E%3Cpath d='M6 16h12v4H6z'/%3E%3Cpath d='M5 10h14a2 2 0 0 1 2 2v4H3v-4a2 2 0 0 1 2-2z'/%3E%3Cpath d='M17 13h.01'/%3E%3C/svg%3E")}
nav button:hover{background:rgba(255,255,255,.08);transform:translateX(2px)}
nav button.active{background:linear-gradient(135deg,#a2632d,#7d471f);box-shadow:0 12px 22px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.16)}
.sidebar-card{margin-top:28px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);border-radius:16px;padding:12px;display:flex;gap:12px;align-items:center;box-shadow:0 14px 28px rgba(0,0,0,.18)}
.sidebar-logo-thumb{width:54px;height:54px;border-radius:14px;padding:6px;background:linear-gradient(180deg,rgba(255,248,233,.98),rgba(239,220,190,.98));object-fit:contain;flex:0 0 auto}
.sidebar-card strong{display:block;font-size:14px}.sidebar-card span{font-size:12px;color:#e7c395}
.theme-toggle{width:172px;margin:18px auto 0;padding:9px 12px;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:rgba(0,0,0,.22);display:flex;align-items:center;justify-content:space-between;color:#e7c395;box-shadow:inset 0 1px 0 rgba(255,255,255,.08);font:inherit}.theme-toggle .track{position:relative;width:54px;height:28px;border-radius:999px;background:rgba(255,255,255,.13);box-shadow:inset 0 2px 5px rgba(0,0,0,.24)}.theme-toggle .knob{position:absolute;top:3px;left:4px;width:22px;height:22px;border-radius:50%;background:#dfb77c;box-shadow:0 3px 9px rgba(0,0,0,.32);transition:left .22s ease,background .22s ease}.theme-toggle:hover{filter:none;transform:none}.theme-toggle[aria-pressed="true"] .knob{left:28px;background:#f7e0b8}
main{padding:34px 34px 74px;max-width:1480px;width:100%;margin:0 auto}.app-topbar{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:24px}.app-title h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:44px;line-height:1;color:#24150b;letter-spacing:-.03em}.app-title p{margin:9px 0 0;color:#775f49;font-size:18px}.top-action{border:1px solid var(--border);border-radius:12px;background:rgba(255,250,242,.78);padding:12px 16px;color:#3b2b1d;box-shadow:0 8px 20px rgba(49,30,12,.06)}
h2{font-family:Georgia,"Times New Roman",serif;font-size:30px;margin:0 0 18px}h3{font-family:Georgia,"Times New Roman",serif;font-size:20px;margin:24px 0 12px}.page{display:none}.page.active{display:block}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}.dashboard-main,.dashboard-side{min-width:0}.panel{background:rgba(255,250,242,.84);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);margin-bottom:22px}.panel h3:first-child{margin-top:0}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:16px;margin-bottom:22px}.card{background:linear-gradient(160deg,#fffdf8,#fff2df);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);position:relative;overflow:hidden}.card::before{content:"";position:absolute;right:-22px;top:-26px;width:82px;height:82px;border-radius:50%;background:rgba(192,138,75,.12)}.card span{display:block;color:#4b3929;font-size:14px;font-weight:800}.card strong{display:block;font-size:32px;line-height:1.1;margin-top:7px}.card small{display:block;color:var(--success);font-weight:700;margin-top:10px}.card .metric-icon{font-size:30px;margin-bottom:8px}.grid-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;background:rgba(255,250,242,.82);border:1px solid var(--border);padding:18px;border-radius:var(--radius);margin-bottom:20px;box-shadow:var(--shadow)}.form-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;grid-column:1/-1}button{border:0;border-radius:12px;padding:10px 14px;background:linear-gradient(135deg,#8b5527,#633617);color:#fff;cursor:pointer;font-weight:800;box-shadow:0 8px 18px rgba(92,52,22,.14)}button:hover{filter:brightness(1.06);transform:translateY(-1px)}button.secondary{background:#766658}button.edit{background:#526d3f;padding:8px 10px;margin:3px}button.sell{background:#2f654f;padding:8px 10px;margin:3px}.delete{background:#9c2f2f;padding:8px 10px;margin:3px}input,select,textarea{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:12px;font:inherit;background:#fffbf5;color:var(--text);outline:none}input:focus,select:focus,textarea:focus{border-color:#c29058;box-shadow:0 0 0 3px rgba(192,138,75,.18)}input[readonly]{background:#f2eadf;color:#544538}textarea{min-height:48px;resize:vertical}.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:14px}.muted{color:var(--muted)}
table{width:100%;border-collapse:separate;border-spacing:0;background:rgba(255,253,248,.9);border:1px solid var(--border);border-radius:16px;overflow:hidden;margin-bottom:18px;box-shadow:0 10px 28px rgba(55,34,15,.06)}th,td{border-bottom:1px solid #eadbc7;padding:12px 14px;text-align:left;vertical-align:middle}th{background:#f4eadb;color:#3f2e20;font-size:13px;font-weight:900}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fff7ea}.status-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e7f0df;color:#2f6c39;font-size:12px;font-weight:900}.quick-card{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#fffaf2,#fff0db);border:1px solid var(--border);border-radius:16px;padding:14px;margin-top:10px;position:relative;overflow:hidden}.quick-card::after{content:"";position:absolute;inset:auto -28px -36px auto;width:84px;height:84px;border-radius:50%;background:rgba(192,138,75,.14);pointer-events:none}.quick-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#804416,#3a1f0d);color:#fff;font-size:23px;flex:0 0 auto;box-shadow:0 10px 18px rgba(70,36,11,.18)}.quick-card strong{display:block}.quick-card small{color:var(--muted)}.action-card{cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;user-select:none}.action-card:hover,.action-card:focus{transform:translateY(-2px);box-shadow:0 16px 28px rgba(55,34,15,.16);background:#fffdf8;border-color:#c5955f;outline:none}.quick-badge{margin-left:auto;align-self:flex-start;border-radius:999px;background:#ead2ad;color:#5a3214;padding:4px 8px;font-size:11px;font-weight:900}.quick-arrow{font-size:25px;line-height:1;color:#7a5f48;z-index:1}.hint{display:flex;gap:12px;align-items:flex-start;border-bottom:1px solid #eadbc7;padding:12px 0}.hint:last-child{border-bottom:0}.hint-dot{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;color:#fff;background:var(--success);font-weight:900}.hint.warn .hint-dot{background:#dc9215}.hint.info .hint-dot{background:#5d4a39}.footer-brand{margin-top:24px;text-align:center;color:#ead9c3;font-size:14px}.thumb{width:72px;height:54px;object-fit:cover;border-radius:10px;border:1px solid var(--border);cursor:zoom-in;background:#eee5dc}.image-preview{min-height:76px;border:1px dashed #d7c1a8;border-radius:12px;padding:10px;background:#fff7ec;display:flex;align-items:center;justify-content:center}.image-preview img{max-width:160px;max-height:110px;border-radius:10px;border:1px solid var(--border);object-fit:cover}.modal{display:none;position:fixed;z-index:50;inset:0;background:rgba(0,0,0,.78);align-items:center;justify-content:center;padding:24px}.modal.open{display:flex}.modal img{max-width:95vw;max-height:90vh;border-radius:12px;background:#fff}.label-preview-box{background:#fff;border:1px solid var(--border);border-radius:16px;padding:16px;margin-bottom:18px;overflow-x:auto;box-shadow:var(--shadow)}.label-preview{width:400px;min-height:240px;border:2px solid #222;background:white;color:#111;padding:16px;display:grid;grid-template-columns:1fr 120px;gap:12px;align-items:start;font-family:Arial,sans-serif}.label-preview.small{width:304px;min-height:200px;grid-template-columns:1fr 96px;padding:12px}.label-preview h4{margin:0 0 10px;font-size:24px}.label-preview.small h4{font-size:20px}.label-preview p{margin:6px 0;font-size:15px}.label-preview.small p{font-size:13px}.label-preview .qr{text-align:center}.label-preview .qr canvas{max-width:110px;max-height:110px}.label-preview.small .qr canvas{max-width:90px;max-height:90px}.label-preview .date{grid-column:1/-1;font-size:12px;margin-top:6px}
@media (max-width:1000px){body{display:block}body::after{left:0}header{position:relative;height:auto}nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.dashboard-grid{grid-template-columns:1fr}.app-topbar{flex-direction:column}.app-title h2{font-size:34px}}
@media (max-width:640px){main{padding:22px 14px 70px}.cards{grid-template-columns:1fr}.grid-form{grid-template-columns:1fr}th,td{padding:10px 8px;font-size:13px}table{display:block;overflow-x:auto}.app-title h2{font-size:30px}}


/* Woodart-Brothers App-Icon, Schnellaktionen und echtes Hell/Dunkel-Theme */
body[data-theme="dark"]{
  --bg:#17100a;--bg-soft:#21150c;--card:#2a1a10;--card-2:#321f12;--text:#fff1df;--muted:#c5ab8f;--accent:#b97736;--accent-2:#d5a15f;--accent-dark:#120a05;--border:#53351f;--shadow:0 18px 45px rgba(0,0,0,.28);
  background:radial-gradient(circle at 72% -10%,rgba(213,161,95,.16),transparent 36%),linear-gradient(135deg,#160c05 0%,#21140b 55%,#342012 100%);
  color:var(--text);
}
body[data-theme="dark"]::after{background:linear-gradient(90deg,#120905,#4c2812 42%,#120905)}
body[data-theme="dark"] .app-title h2{color:#fff3e1}
body[data-theme="dark"] .app-title p,body[data-theme="dark"] .muted{color:var(--muted)}
body[data-theme="dark"] .panel,body[data-theme="dark"] .grid-form,body[data-theme="dark"] .card,body[data-theme="dark"] .top-action,body[data-theme="dark"] .label-preview-box{background:linear-gradient(160deg,rgba(43,27,16,.94),rgba(31,19,11,.94));border-color:var(--border);color:var(--text)}
body[data-theme="dark"] .card::before{background:rgba(213,161,95,.10)}
body[data-theme="dark"] .card span,body[data-theme="dark"] .top-action{color:#f3ddc4}
body[data-theme="dark"] input,body[data-theme="dark"] select,body[data-theme="dark"] textarea{background:#21140b;border-color:#5d3b23;color:#fff1df}
body[data-theme="dark"] input[readonly]{background:#1b110a;color:#d8b997}
body[data-theme="dark"] input::placeholder,body[data-theme="dark"] textarea::placeholder{color:#a58d73}
body[data-theme="dark"] table{background:#21140b;border-color:#52351f;box-shadow:0 10px 28px rgba(0,0,0,.18)}
body[data-theme="dark"] th{background:#352112;color:#f2dcc2}
body[data-theme="dark"] td{border-bottom-color:#4a301d}
body[data-theme="dark"] tbody tr:hover{background:#2c1b0f}
body[data-theme="dark"] .quick-card{background:linear-gradient(135deg,#2c1b10,#23150c);border-color:#563720}
body[data-theme="dark"] .action-card:hover,body[data-theme="dark"] .action-card:focus{background:#342012;border-color:#c28c4c}
body[data-theme="dark"] .quick-badge{background:#553315;color:#f5d5a8}
body[data-theme="dark"] .logo-card,body[data-theme="dark"] .sidebar-logo-thumb{background:linear-gradient(180deg,#fff3df,#d8b077)}
body[data-theme="dark"] .image-preview{background:#21140b;border-color:#5d3b23}
body[data-theme="dark"] .footer-brand{color:#d6bc9c}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}


body.dark-theme{
  background:
    radial-gradient(circle at 72% -10%,rgba(224,178,113,.12),transparent 36%),
    linear-gradient(135deg,#160e08 0%,#24160c 55%,#120a05 100%);
}
body.dark-theme .app-title h2,
body.dark-theme h2,
body.dark-theme h3{color:#fff2df}
body.dark-theme .app-title p{color:#d3b99a}
body.dark-theme .panel,
body.dark-theme .grid-form,
body.dark-theme .card,
body.dark-theme table,
body.dark-theme .label-preview-box{background:linear-gradient(160deg,rgba(47,31,19,.96),rgba(35,22,13,.96));border-color:#5b3a22}
body.dark-theme th{background:#3b2617;color:#f7dfbd}
body.dark-theme td{border-bottom-color:#4a301e}
body.dark-theme tbody tr:hover{background:#332116}
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea{background:#22150d;color:#fff2df;border-color:#5b3a22}
body.dark-theme input[readonly]{background:#1d120b;color:#d3b99a}
body.dark-theme .quick-card,
body.dark-theme .hint,
body.dark-theme .image-preview{background:#24170e;border-color:#5b3a22}
body.dark-theme .action-card:hover,
body.dark-theme .action-card:focus{background:#2c1d12;border-color:#a56831}
body.dark-theme .theme-toggle{background:rgba(255,255,255,.10)}
body.dark-theme .theme-toggle .knob{transform:translateX(34px);background:#a56831}
body.dark-theme .footer-brand{color:#d3b99a}

.logout-form{margin:0}.logout-form button{background:#6d4b32;white-space:nowrap}
#bohleForm{align-items:start}
#bohleForm > input,#bohleForm > label,#bohleForm > textarea,#bohleForm .image-preview{min-height:72px}
#bohleForm > label{display:flex;flex-direction:column;justify-content:flex-end;gap:7px;font-weight:400;color:#3b2b1d}
#bohleForm > input,#bohleForm > textarea{align-self:stretch}
#bohleForm input,#bohleForm select{height:46px}
#bohleForm > textarea{height:72px;min-height:72px}
#bohleForm .image-preview{height:72px;padding:8px}
#bohleForm .image-preview img{max-height:54px}
#bohleForm .form-actions{align-self:end}
.login-page{display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#1f1208 0%,#41230f 54%,#70431f 100%)}
.login-page::after{display:none}
.login-shell{width:min(440px,100%);padding:0;margin:0}
.login-card{background:rgba(255,250,242,.94);border:1px solid rgba(234,219,199,.9);border-radius:18px;padding:28px;box-shadow:0 24px 60px rgba(0,0,0,.28);display:grid;gap:16px}
.login-logo{width:132px;height:auto;justify-self:center}
.login-card h1{font-family:Georgia,"Times New Roman",serif;font-size:34px;line-height:1;margin:0;text-align:center;color:#24150b}
.login-card p{margin:-8px 0 4px;text-align:center;color:#775f49;font-weight:800}
.login-card label{display:grid;gap:7px;font-weight:800;color:#3b2b1d}
.login-card button{width:100%;margin-top:4px}
.login-error{border:1px solid #d49b9b;background:#fff1f1;color:#842626;border-radius:12px;padding:10px 12px;font-weight:800}

@media (max-width:760px){
  body{display:block;overflow-x:hidden}
  body::after{left:0;height:42px}
  header{position:relative;height:auto;padding:18px 12px 14px;overflow:visible}
  .brand{display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:center;text-align:left;margin-bottom:14px}
  .logo-card{width:64px;margin:0;padding:7px;border-radius:14px}
  h1{text-align:left;font-size:17px;letter-spacing:.03em}
  .brand-subtitle{font-size:10px;letter-spacing:.12em}
  nav{display:flex;flex-direction:row;gap:8px;margin:10px -12px 0;padding:0 12px 4px;overflow-x:auto;scroll-snap-type:x proximity}
  nav button{width:auto;min-width:max-content;padding:11px 13px;border-radius:12px;background:rgba(255,255,255,.07);scroll-snap-align:start;white-space:nowrap}
  nav button:hover{transform:none}
  .sidebar-card{display:none}
  .theme-toggle{width:150px;margin:12px 0 0}
  main{padding:20px 12px 62px}
  .app-topbar{gap:12px;margin-bottom:18px}
  .app-title h2{font-size:30px;letter-spacing:0}
  .app-title p{font-size:15px;margin-top:5px}
  .logout-form,.logout-form button{width:100%}
  h2{font-size:25px}
  h3{font-size:18px}
  .panel,.grid-form,.card{border-radius:14px;padding:14px}
  .form-actions button{flex:1 1 180px}
  input,select,textarea,button{min-height:44px}
  #bohleForm > input,#bohleForm > label,#bohleForm > textarea,#bohleForm .image-preview{min-height:66px}
  #bohleForm > textarea,#bohleForm .image-preview{height:66px}
  .quick-card{align-items:flex-start}
  .quick-badge,.quick-arrow{display:none}
  .label-preview{width:340px;min-height:220px}
  .login-page{min-height:100svh;padding:16px}
  .login-shell{width:100%}
  .login-card{padding:22px 18px;border-radius:16px}
  .login-logo{width:108px}
  .login-card h1{font-size:29px}
}

@media (max-width:420px){
  .cards{gap:12px}
  .card strong{font-size:28px}
  nav button{font-size:14px;padding:10px 12px}
  th,td{font-size:12px;padding:9px 7px}
  .label-preview{width:300px;grid-template-columns:1fr 86px;padding:10px}
  .label-preview h4{font-size:19px}
  .label-preview p{font-size:12px}
  .login-card h1{font-size:25px}
}
