:root{
  --bg:#fbf7f3;
  --header:#f5ebe2;
  --surface:#fffefd;
  --surface-soft:#f8f0e9;
  --line:#e5d8cd;
  --line-strong:#9b6b4f;
  --text:#2c2521;
  --muted:#83766e;
  --brown:#734326;
  --brown-dark:#56301c;
  --brown-soft:#ead9cc;
  --pink:#cd3e76;
  --pink-soft:#fde5ef;
  --blue:#3d7f9e;
  --blue-soft:#e8f3f8;
  --orange:#d25d16;
  --orange-soft:#fff0e6;
  --green:#3e8754;
  --green-soft:#eaf5ed;
  --gold:#b88500;
  --gold-soft:#fff5ce;
  --danger:#b74545;
  --shadow:0 2px 8px rgba(68,43,30,.08);
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;-webkit-text-size-adjust:100%}
body{overscroll-behavior-y:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
svg{display:block}
.hidden{display:none!important}
.app-shell{min-height:100dvh;background:var(--bg)}
.app-header{position:fixed;z-index:30;top:0;left:0;right:0;height:calc(54px + var(--safe-top));padding:var(--safe-top) 10px 0;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;background:rgba(245,235,226,.97);border-bottom:1px solid rgba(105,65,39,.06);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.header-title-wrap{text-align:center;min-width:0}
.app-header h1{font-size:17px;line-height:1.15;margin:0;font-weight:700;letter-spacing:.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-subtitle{font-size:9px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-button{width:38px;height:38px;border:0;background:transparent;border-radius:10px;padding:9px;display:grid;place-items:center;color:#342a25}
.header-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.header-button:active{background:rgba(115,67,38,.08)}
#backBtn.hidden,#headerAction.hidden{display:grid!important;visibility:hidden}
.main{padding:calc(54px + var(--safe-top)) 0 calc(65px + var(--safe-bottom));min-height:100dvh}
.bottom-nav{position:fixed;z-index:35;left:0;right:0;bottom:0;height:calc(61px + var(--safe-bottom));padding:3px 2px var(--safe-bottom);display:grid;grid-template-columns:repeat(5,1fr);background:rgba(255,254,253,.98);border-top:1px solid #ece2db;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.nav-item{border:0;background:transparent;color:#918984;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:8px;padding:3px 0;min-width:0}
.nav-item svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.nav-item small{font-size:9px;line-height:1;white-space:nowrap}
.nav-item.active{color:var(--brown);font-weight:700}
.page{padding:0 10px 24px;max-width:700px;margin:0 auto}
.page.flush{padding-left:0;padding-right:0}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 4px 8px}
.page-heading h2{font-size:15px;margin:0;font-weight:700}
.page-heading p{font-size:10px;color:var(--muted);line-height:1.55;margin:4px 0 0}
.page-heading .heading-action{border:0;background:transparent;color:#3e332d;padding:6px}
.page-heading .heading-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.top-nav-tabs{display:grid;grid-template-columns:repeat(3,1fr);height:58px;margin:0 -10px 9px;background:#faf5f1;border-bottom:1px solid #eee3dc}
.top-nav-tab{position:relative;border:0;background:transparent;color:#978a82;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:9px;padding:5px 2px}
.top-nav-tab svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.top-nav-tab.active{color:var(--brown);font-weight:700}
.top-nav-tab.active:after{content:"";position:absolute;left:20%;right:20%;bottom:0;height:2px;background:var(--brown);border-radius:2px}
.segment-row{display:flex;gap:0;overflow:auto;scrollbar-width:none;border-bottom:1px solid #eadfd8;margin-bottom:10px}
.segment-row::-webkit-scrollbar,.chip-row::-webkit-scrollbar{display:none}
.segment{flex:1;min-width:max-content;border:0;background:transparent;padding:12px 8px 10px;color:#91837b;border-bottom:2px solid transparent;font-size:11px;font-weight:700}
.segment.active{color:var(--brown);border-bottom-color:var(--brown)}
.segment-row.pink .segment.active{color:var(--pink);border-bottom-color:var(--pink)}
.searchbox{display:flex;align-items:center;gap:8px;border:1px solid #d7c7bb;background:var(--surface);border-radius:8px;padding:0 10px;height:37px;margin:6px 0 8px;color:#8c7b70}
.searchbox svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.searchbox input{border:0;outline:0;background:transparent;flex:1;min-width:0;font-size:10.5px}
.searchbox input::placeholder{color:#9b918a}
.chip-row{display:flex;gap:6px;overflow:auto;padding:0 0 6px}
.chip-wrap{display:flex;gap:5px;flex-wrap:wrap;padding-bottom:7px}
.chip{border:1px solid #e0d2c8;background:#fffefd;border-radius:6px;padding:5px 9px;font-size:9px;line-height:1.2;white-space:nowrap;color:#6e625b}
.chip.active{background:var(--brown-soft);border-color:#c8a78f;color:#5c331d;font-weight:700}
.chip.pink.active{background:var(--pink-soft);border-color:#ef9dbc;color:#a42b60}
.section-title{font-size:12.5px;margin:18px 2px 9px;display:flex;align-items:center;gap:7px;font-weight:700}
.section-title:before{content:"";width:2px;height:15px;background:var(--brown);border-radius:2px;flex:0 0 auto}
.card{background:var(--surface);border:1px solid #eadfd7;border-radius:10px;box-shadow:var(--shadow);padding:12px;margin-bottom:8px}
.card.compact{padding:10px}
.card-header{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.card-title{font-weight:700;font-size:13px;line-height:1.4}
.card-subtitle{font-size:10px;color:var(--muted);margin-top:3px;line-height:1.5}
.badge{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border-radius:999px;background:#f0e2d7;color:#6d3e22;font-size:9px;font-weight:700;white-space:nowrap}
.badge.pink{background:var(--pink-soft);color:#a32d61}.badge.blue{background:#e4f0f6;color:#326c89}.badge.green{background:#e6f3e8;color:#2f7444}.badge.gray{background:#eeeae7;color:#766b64}.badge.gold{background:#fff0c8;color:#946500}.badge.danger{background:#fde3e3;color:#a92f2f}
.meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
.meta-cell{background:#f8f1ec;border-radius:7px;padding:7px;min-width:0}
.meta-cell label{display:block;font-size:8px;color:var(--muted);margin-bottom:2px}
.meta-cell strong{display:block;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-actions{display:flex;gap:7px;margin-top:10px;flex-wrap:wrap}
.icon-btn{width:32px;height:32px;border:0;background:transparent;border-radius:8px;padding:7px;display:grid;place-items:center;color:#65554c}.icon-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.icon-btn:active{background:#f2e7df}
.btn{border:1px solid #d9c9bd;background:#fffefd;border-radius:7px;min-height:39px;padding:8px 12px;font-weight:700;font-size:11px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.btn.primary{background:var(--brown);color:white;border-color:var(--brown)}
.btn.pink{background:var(--pink);color:white;border-color:var(--pink)}
.btn.blue{background:var(--blue);color:white;border-color:var(--blue)}
.btn.orange{background:var(--orange);color:white;border-color:var(--orange)}
.btn.green{background:var(--green);color:white;border-color:var(--green)}
.btn.danger{background:var(--danger);color:white;border-color:var(--danger)}
.btn.ghost{background:transparent}
.btn.block{width:100%}
.btn.small{min-height:31px;padding:5px 9px;font-size:9.5px}
.btn:disabled{opacity:.45;cursor:not-allowed}
.empty-state{text-align:center;padding:72px 24px 36px;color:var(--muted)}
.empty-icon{height:56px;display:grid;place-items:center;color:#b8a18e}
.empty-icon svg{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:1.45;opacity:.78}
.empty-state h3{font-size:12px;color:var(--text);margin:14px 0 6px}
.empty-state p{font-size:10px;line-height:1.7;margin:0 0 15px}
.fab-stack{position:fixed;right:13px;bottom:calc(72px + var(--safe-bottom));z-index:24;display:flex;gap:9px;align-items:flex-end}
.fab{height:46px;min-width:46px;border:0;border-radius:10px;background:var(--brown);color:white;box-shadow:0 5px 14px rgba(73,45,31,.27);display:grid;place-items:center;padding:0 13px;font-size:12px;font-weight:700}
.fab svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fab.secondary{width:42px;height:42px;min-width:42px;background:white;color:var(--brown);border:1px solid #e4d3c7;padding:0}
.fab.pink{background:var(--pink);min-width:108px;display:flex;gap:6px}
.form-page{padding:10px 10px 25px;max-width:620px;margin:0 auto}
.form-top-switch{display:flex;justify-content:center;margin:2px 0 12px}
.pill-switch{display:grid;grid-auto-flow:column;border:1px solid var(--line-strong);border-radius:999px;overflow:hidden;background:#fff}
.pill-switch button{min-width:78px;border:0;background:transparent;padding:7px 11px;font-size:10px;color:#5e4e44}
.pill-switch button.active{background:#ead9ce;font-weight:700;color:#4f2f1e}
.photo-box{width:105px;height:123px;border:1px solid var(--line-strong);border-radius:13px;margin:0 auto 15px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;background:#f2e7df;overflow:hidden;position:relative;color:#6d422a}
.photo-box svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;background:white;border-radius:50%;padding:6px;box-sizing:content-box}
.photo-box small{font-size:8px;color:#5d3b28}
.photo-box img{width:100%;height:100%;object-fit:cover}
.photo-box input{position:absolute;inset:0;opacity:0}
.form-section{margin:17px 0}
.form-section h3{font-size:11px;margin:0 0 9px;padding-left:8px;border-left:2px solid var(--brown);line-height:1.35}
.form-section .section-note{display:block;font-size:8px;color:var(--muted);font-weight:400;margin-top:2px}
.field{margin-bottom:8px;min-width:0}
.field>label:not(.control-shell){display:block;font-size:9px;color:#65534a;margin:0 3px 4px;font-weight:700}
.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.field-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.control-shell{width:100%;min-height:43px;border:1px solid #dccbbc;border-radius:8px;background:#fffefd;padding:5px 8px;display:flex;align-items:center;gap:7px;position:relative;overflow:hidden}
.control-shell.accent{background:#f5e7dc;border-color:#8d5a3c}
.control-shell.soft{background:#fafafa;border-color:#e7e7e7;color:#999}
.control-icon{width:16px;height:16px;flex:0 0 auto;color:#8a684f;display:grid;place-items:center}
.control-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.control-stack{min-width:0;flex:1;display:flex;flex-direction:column;justify-content:center}
.control-label{font-size:8px;color:#8d8077;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.control-input{width:100%;border:0;outline:0;background:transparent;font-size:10.5px;line-height:1.4;padding:1px 0 0;min-width:0}
.control-input::placeholder{color:#a59b95}
.control,.field select.control,.field input.control,textarea.control{width:100%;min-height:43px;border:1px solid #dccbbc;border-radius:8px;background:#fffefd;padding:9px 10px;outline:none;font-size:10.5px}
textarea.control{min-height:83px;resize:vertical;line-height:1.55}
.control:focus,.control-shell:focus-within{border-color:var(--line-strong);box-shadow:0 0 0 2px rgba(154,98,65,.10)}
.field-hint,.hint{font-size:8px;color:var(--muted);margin:3px 3px 0;line-height:1.5}
.char-count{text-align:right;font-size:7px;color:#9f948d;margin-top:2px}
.toggle-group{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;border:1px solid var(--line-strong);border-radius:7px;overflow:hidden;background:white}
.toggle-group label{border:0;border-right:1px solid var(--line-strong);padding:7px 5px;background:white;text-align:center;font-size:9px;margin:0;font-weight:500;white-space:nowrap}
.toggle-group label:last-child{border-right:0}
.toggle-group label.selected{background:#ead8cc;font-weight:700;color:#4f2e1d}
.toggle-group input{display:none}
.check-row{display:flex;align-items:center;gap:7px;font-size:9px;padding:5px 2px;color:#6b536e}
.check-row input{width:15px;height:15px;accent-color:var(--brown)}
.lineage-selector{background:white;border-radius:10px;border:1px solid #eee4dd;padding:10px;box-shadow:var(--shadow)}
.lineage-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;height:100px;overflow:hidden}
.lineage-column{display:flex;flex-direction:column;gap:3px;overflow:auto;scrollbar-width:none;mask-image:linear-gradient(transparent,#000 14%,#000 86%,transparent)}
.lineage-column::-webkit-scrollbar{display:none}
.lineage-option{border:0;border-radius:5px;background:#f5ebe4;color:#8d7c72;min-height:27px;font-size:10px;font-weight:600}
.lineage-option.active{background:#ead9cc;color:#57341f}
.lineage-result{display:flex;justify-content:center;margin-top:8px}
.parent-field .control-shell{background:#fafafa;border-color:#e8e8e8}
.parent-field select{color:#aaa}
.inline-choice-row{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:end}
.mini-select{height:43px;border:1px solid #dccbbc;border-radius:8px;background:#fffefd;padding:0 9px;font-size:9px;min-width:57px}
.choice-button{height:35px;border:1px solid #e1d4ca;background:#fff;border-radius:6px;font-size:8px;padding:0 9px;white-space:nowrap}
.choice-button.active{background:#ead9cc;border-color:#c5a68f;color:#57331f;font-weight:700}
.sticky-submit{padding:8px 0 2px}
.overlay{position:fixed;z-index:90;inset:0;background:rgba(33,26,22,.48);display:flex;align-items:flex-end;justify-content:center}
.modal{width:min(100%,620px);max-height:91dvh;background:var(--bg);border-radius:18px 18px 0 0;overflow:auto;padding:16px 12px calc(16px + var(--safe-bottom));box-shadow:0 -12px 30px rgba(0,0,0,.16)}
.modal.center{align-self:center;border-radius:15px;max-width:390px;max-height:86dvh;margin:14px}
.modal h2{font-size:15px;margin:0 0 11px}.modal h3{font-size:12px}
.modal-close{float:right;border:0;background:#efe4dc;border-radius:50%;width:30px;height:30px;font-size:16px}
.toast{position:fixed;z-index:130;left:50%;bottom:calc(75px + var(--safe-bottom));transform:translate(-50%,18px);background:#30231d;color:white;border-radius:8px;padding:9px 13px;font-size:10px;opacity:0;pointer-events:none;transition:.2s;white-space:nowrap;max-width:90vw;overflow:hidden;text-overflow:ellipsis}
.toast.show{opacity:1;transform:translate(-50%,0)}
.update-banner{position:fixed;z-index:140;top:calc(8px + var(--safe-top));left:50%;transform:translateX(-50%);background:#34251e;color:#fff;border-radius:999px;padding:8px 13px;font-size:9px;box-shadow:0 4px 16px rgba(0,0,0,.2)}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.stat-card{background:white;border:1px solid #eadfd7;border-radius:9px;padding:11px 5px;text-align:center;box-shadow:var(--shadow)}
.stat-card strong{display:block;font-size:18px;color:var(--brown);margin:4px 0}.stat-card small{font-size:8px;color:var(--muted)}
.output-intro{font-size:9px;color:var(--muted);line-height:1.65;padding:0 4px 6px}
.output-card{background:white;border:1px solid #ece2db;border-radius:10px;padding:12px;margin:8px 0;box-shadow:var(--shadow)}
.output-card-head{display:grid;grid-template-columns:34px 1fr;gap:9px;align-items:center;margin-bottom:7px}
.out-icon{width:32px;height:32px;border-radius:7px;display:grid;place-items:center;background:#f2e7df;color:var(--brown)}
.out-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.out-icon.pink{background:var(--pink-soft);color:var(--pink)}.out-icon.blue{background:var(--blue-soft);color:var(--blue)}.out-icon.orange{background:var(--orange-soft);color:var(--orange)}.out-icon.green{background:var(--green-soft);color:var(--green)}.out-icon.gold{background:var(--gold-soft);color:var(--gold)}
.output-card h3{font-size:11.5px;margin:0}.output-card p{font-size:8.5px;color:var(--muted);line-height:1.55;margin:0 0 8px}.output-card .output-note{font-size:7.5px;color:#61826a;margin:-2px 0 8px}
.list-group{background:white;border:1px solid #ece2db;border-radius:10px;overflow:hidden;box-shadow:var(--shadow);margin-bottom:12px}
.list-row{display:flex;align-items:center;gap:9px;background:white;border-bottom:1px solid #eee4dd;padding:11px 10px;min-height:54px}
.list-row:last-child{border-bottom:0}
.list-row.clickable{cursor:pointer}
.list-row .row-icon{width:27px;height:27px;border-radius:7px;background:#f4ebe5;display:grid;place-items:center;color:#8b654c;flex:0 0 auto}
.list-row .row-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.list-row .row-main{flex:1;min-width:0}.list-row .row-main strong{display:block;font-size:10.5px}.list-row .row-main small{display:block;color:var(--muted);font-size:8px;margin-top:3px;line-height:1.4}
.chevron{color:#9b8c83;font-size:17px}
.ios-switch{position:relative;width:40px;height:24px;flex:0 0 auto}.ios-switch input{opacity:0;width:0;height:0}.ios-switch span{position:absolute;inset:0;border-radius:999px;background:#ddd0c5;transition:.18s}.ios-switch span:after{content:"";position:absolute;left:2px;top:2px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.2);transition:.18s}.ios-switch input:checked+span{background:#bf8d63}.ios-switch input:checked+span:after{transform:translateX(16px)}
.settings-section-label{font-size:9px;color:#6f5c51;margin:15px 4px 6px;font-weight:700}
.profile-card{padding:14px 8px 10px;text-align:center}
.profile-avatar{width:56px;height:56px;border-radius:50%;background:#eee7e2;margin:0 auto 8px;display:grid;place-items:center;color:#b9aca4}
.profile-avatar svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.5}
.profile-card h2{font-size:15px;margin:0 0 4px}.profile-card p{font-size:8.5px;color:var(--muted);margin:0 0 11px}
.premium-card{display:flex;align-items:center;gap:10px;background:#fffdf7;border:1px solid #ecdca8;border-radius:10px;padding:11px;margin:8px 0 10px}
.premium-icon{width:31px;height:31px;border-radius:8px;background:var(--gold-soft);color:var(--gold);display:grid;place-items:center}.premium-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
.premium-card strong{font-size:10.5px}.premium-card small{display:block;font-size:8px;color:var(--muted);margin-top:2px}
.record-card{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#c99b12,#a97700);color:#fff;border-radius:10px;padding:13px;margin:9px 0;box-shadow:0 4px 13px rgba(157,111,0,.2)}
.record-card strong{font-size:12px}.record-card small{display:block;font-size:8px;opacity:.82;margin-top:3px}
.room-stats{display:grid;gap:7px}
.room-stat{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;background:#fff;border:1px solid #ece2db;border-radius:10px;padding:10px;box-shadow:var(--shadow)}
.room-stat-icon{width:32px;height:32px;border-radius:50%;background:#f3ebe5;display:grid;place-items:center;color:var(--brown)}
.room-stat-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
.room-stat strong{font-size:10.5px}.room-stat small{display:block;font-size:8px;color:var(--muted);margin-top:2px}.room-stat .room-count{font-size:17px;font-weight:700;color:#3f342e}.room-stat .room-count em{font-size:8px;font-style:normal;color:var(--muted);margin-left:2px}
.portfolio-toggle{display:flex;justify-content:flex-end;margin:-31px 1px 8px}.portfolio-toggle .pill-switch button{min-width:52px;padding:5px 8px;font-size:8px}
.portfolio-empty{background:#fff;border:1px solid #e8ddd5;border-radius:10px;min-height:94px;display:grid;place-items:center;color:var(--muted);font-size:9px;box-shadow:var(--shadow)}
.task-row{display:grid;grid-template-columns:25px 1fr 31px;gap:7px;align-items:start}
.task-check{width:21px;height:21px;border-radius:6px;border:1.5px solid var(--line-strong);background:white;margin-top:1px}
.task-check.done{background:var(--brown);color:white}
.calendar-head{display:flex;justify-content:space-between;align-items:center;padding:8px 0}.calendar-head strong{font-size:13px}
.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.cal-day-name{text-align:center;font-size:8px;color:var(--muted);padding:4px 0}.cal-cell{min-height:46px;background:white;border:1px solid #eee1d8;border-radius:6px;padding:4px;font-size:8px;position:relative}.cal-cell.muted{opacity:.32}.cal-cell.today{outline:1.5px solid var(--brown)}.cal-cell .dots{display:flex;gap:2px;position:absolute;left:4px;bottom:4px}.dot{width:4px;height:4px;border-radius:50%;background:var(--pink)}
.info-box{background:#f1e5dc;border-radius:8px;padding:10px;font-size:9px;line-height:1.65;color:#5d4a3e}
.hero{background:#fff;border:1px solid #e9ddd4;border-radius:10px;padding:13px;margin:9px 0;box-shadow:var(--shadow)}
.hero h2{font-size:15px;margin:0 0 5px}.hero p{font-size:9px;color:var(--muted);line-height:1.55;margin:0}
.manual-tip{background:#f4e7dc;border:1px solid #e8d4c5;border-radius:9px;padding:10px;margin:7px 0 9px;font-size:8.5px;line-height:1.6;color:#6a5040}
.manual-section{background:white;border:1px solid #eadfd7;border-radius:9px;padding:11px;margin:8px 0;box-shadow:0 1px 5px rgba(68,43,30,.05)}.manual-section h3{font-size:10.5px;margin:0 0 6px}.manual-section p,.manual-section li{font-size:8.5px;line-height:1.68;color:#65534a}.manual-section ol,.manual-section ul{padding-left:18px}
.qr-grid{width:180px;height:180px;display:grid;grid-template-columns:repeat(21,1fr);background:white;padding:8px;border:1px solid #ddd;margin:12px auto;border-radius:6px}.qr-grid i{display:block}.qr-grid i.on{background:#1e1714}
.banner{margin:8px 0 10px;border-radius:9px;overflow:hidden;background:#e8f1fb;border:1px solid #d4e1ef;padding:9px;font-size:8.5px;color:#355774}
.inline-count{display:inline-grid;place-items:center;min-width:19px;height:19px;border-radius:999px;background:var(--brown);color:#fff;font-size:8px;padding:0 5px}
.select-list{max-height:48dvh;overflow:auto}.select-item{display:flex;gap:9px;align-items:center;padding:10px;border-bottom:1px solid #eee;font-size:10px}.select-item input{width:16px;height:16px;accent-color:var(--brown)}
.codebox{white-space:pre-wrap;background:#fff;border:1px solid #e5d8ce;border-radius:9px;padding:10px;font-size:9.5px;line-height:1.65;max-height:35dvh;overflow:auto}
@media (min-width:700px){.bottom-nav,.app-header{left:50%;width:700px;transform:translateX(-50%)}.fab-stack{right:calc((100vw - 674px)/2)}}
@media print{.app-header,.bottom-nav,.fab-stack,.no-print,.update-banner{display:none!important}.main{padding:0}.page{max-width:none;padding:0}body{background:white}.print-label-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7mm}.print-label{border:1px solid #555;height:58mm;padding:4mm;page-break-inside:avoid}.print-label h3{font-size:12pt;margin:0 0 3mm}.print-label p{font-size:8.5pt;line-height:1.5;margin:0}.print-report{padding:12mm}.print-report h1{font-size:20pt}.print-report table{width:100%;border-collapse:collapse}.print-report th,.print-report td{border:1px solid #777;padding:2.5mm;font-size:9pt;text-align:left}}
