/* Shared screen design. Data schemas and existing print layouts are unchanged. */
@media screen {
body[data-cafe-layout="modern"] {
 --paper:#f6f3ed;--white:#fffefa;--ink:#352d28;--muted:#756b60;--line:#e4dfd5;
 --orange:#886348;--orange-soft:#f2e7db;--green:#254e3f;--green-soft:#e9efe8;
 background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'Noto Sans JP','Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;font-size:14px;line-height:1.65;
}
body[data-cafe-layout="modern"] *,body[data-cafe-layout="modern"] *:before,body[data-cafe-layout="modern"] *:after {box-sizing:border-box}
body[data-cafe-layout="modern"] .shell {max-width:1320px;padding:26px 40px 60px}
body[data-cafe-layout="modern"] .ui-icon {width:22px;height:22px;flex:none;vertical-align:middle}
body[data-cafe-layout="modern"] .topbar {display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:0 0 22px;margin:0;border-bottom:1px solid var(--line)}
body[data-cafe-layout="modern"] .brand {display:flex;gap:12px;align-items:center;cursor:pointer;color:var(--green);text-decoration:none}
body[data-cafe-layout="modern"] .brand-title {font-family:Georgia,serif;font-size:29px;font-weight:600;letter-spacing:.03em;color:var(--green);white-space:nowrap}
body[data-cafe-layout="modern"] .mark {display:grid;place-items:center;width:44px;height:44px;border:1px solid #cad5ca;border-radius:50%;background:#edf1e9;box-shadow:none;color:var(--green)}
body[data-cafe-layout="modern"] .mark .ui-icon {width:25px;height:25px}
body[data-cafe-layout="modern"] .header-tools {display:flex;flex-direction:row;align-items:center;gap:10px;margin-left:auto;max-width:none}
body[data-cafe-layout="modern"] .date-pill {display:flex;align-items:center;gap:7px;padding:4px 10px;border-radius:10px;border:1px solid var(--line);background:var(--white);white-space:nowrap;font-size:12px}
body[data-cafe-layout="modern"] .date-pill>span {display:none}
body[data-cafe-layout="modern"] .date-pill input {font:inherit;font-size:14px;border:0;background:transparent;min-height:36px;width:140px;padding:0;color:var(--ink);min-width:0}
body[data-cafe-layout="modern"] #inventorySyncStatus {border-radius:10px;min-height:44px;padding:8px 12px;font-size:12px;background:var(--white);border-color:var(--line);max-width:260px;white-space:normal;text-align:left}
body[data-cafe-layout="modern"] .weather-shortcut {display:flex;align-items:center;min-height:44px;margin:0;padding:7px 12px;background:#e9eee6;border:1px solid #d5dfd0;color:var(--green);border-radius:10px;font-size:12px;text-decoration:none;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-cafe-layout="modern"] .global-search {position:relative;background:transparent;border:0;box-shadow:none;margin:20px 0 14px;padding:0}
body[data-cafe-layout="modern"] .global-search>label {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body[data-cafe-layout="modern"] .global-search>.ui-icon {position:absolute;top:12px;left:14px;color:#7b8173;pointer-events:none}
body[data-cafe-layout="modern"] .global-search input {width:100%;min-height:48px;padding:12px 16px 12px 46px;background:var(--white);border:1px solid var(--line);border-radius:12px;font:inherit;font-size:14px;box-shadow:none}
body[data-cafe-layout="modern"] #globalSearchResults {background:var(--white);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #29231812;padding:10px;margin-top:8px}
body[data-cafe-layout="modern"] .ui-navigation {display:flex;align-items:flex-start;gap:12px;margin:0 0 26px}
body[data-cafe-layout="modern"] .ui-navigation .app-nav {display:flex;flex:1;flex-wrap:wrap;gap:4px;margin:0;padding:0;background:transparent;border:0;box-shadow:none;border-radius:0}
body[data-cafe-layout="modern"] .ui-navigation .nav-group,body[data-cafe-layout="modern"] .ui-navigation .nav-group>div {display:contents}
body[data-cafe-layout="modern"] .ui-navigation .nav-group-label {display:none}
body[data-cafe-layout="modern"] .ui-navigation .app-nav a {display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:9px 12px!important;border:0!important;border-radius:9px!important;font-size:13px!important;color:#645d51!important}
body[data-cafe-layout="modern"] .ui-navigation .app-nav a .ui-icon {width:18px;height:18px}
body[data-cafe-layout="modern"] .ui-navigation .app-nav a.active {background:var(--green)!important;color:#fffefa!important;box-shadow:none}
body[data-cafe-layout="modern"] .ui-navigation .app-nav:not(.mobile-expanded) a:not(#navHome):not(#navInventory):not(#navMenu):not(#navOrders):not(#navShifts):not(#navSmaregi) {display:none}
body[data-cafe-layout="modern"] .ui-navigation .mobile-menu-toggle {display:block;width:auto;flex:none;min-height:44px;margin:0;padding:10px 14px;border-radius:9px;background:var(--white);border-color:var(--line);font-size:12px;white-space:nowrap}
body[data-cafe-layout="modern"] .ui-navigation .app-nav.mobile-expanded {padding:14px;background:var(--white);border:1px solid var(--line);border-radius:14px;gap:12px}
body[data-cafe-layout="modern"] .ui-navigation .app-nav.mobile-expanded .nav-group {display:block;flex:1 1 190px;border:0;padding:0}
body[data-cafe-layout="modern"] .ui-navigation .app-nav.mobile-expanded .nav-group-label {display:block;color:var(--muted);font-size:11px;font-weight:600;margin:4px 10px 8px}
body[data-cafe-layout="modern"] .ui-navigation .app-nav.mobile-expanded .nav-group>div {display:flex;flex-wrap:wrap;gap:4px}
body[data-cafe-layout="modern"] #homePage .ui-feature-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0 0 22px}
body[data-cafe-layout="modern"] #homePage .ui-feature-card {display:block;min-width:0;padding:0;text-decoration:none;background:var(--white);border:1px solid #e3ddcf;border-radius:16px;overflow:hidden;box-shadow:0 3px 12px #362a1605;transition:transform .15s ease,box-shadow .15s ease}
body[data-cafe-layout="modern"] .ui-feature-card:hover {transform:translateY(-3px);box-shadow:0 8px 20px #362a1610}
body[data-cafe-layout="modern"] .ui-feature-image {aspect-ratio:2;overflow:hidden;background:#e6decf}
body[data-cafe-layout="modern"] .ui-feature-image img {width:100%;height:100%;max-width:none;display:block;object-fit:cover;object-position:center 52%}
body[data-cafe-layout="modern"] .ui-feature-waste img {object-position:28% 70%;transform:scale(1.3)}
body[data-cafe-layout="modern"] .ui-feature-recipes img {object-position:right 75%;transform:scale(1.12)}
body[data-cafe-layout="modern"] .ui-feature-customer-menu img {object-position:80% 62%}
body[data-cafe-layout="modern"] .ui-feature-label {display:flex;align-items:center;gap:10px;padding:18px 16px;color:var(--green);font-size:16px;font-weight:600;line-height:1.4;white-space:nowrap}
body[data-cafe-layout="modern"] .ui-feature-label>span {flex:1;min-width:0}
body[data-cafe-layout="modern"] .ui-feature-label>.ui-icon:last-child {width:16px;height:16px;color:#8f9687}
body[data-cafe-layout="modern"] .ui-operation-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 34px}
body[data-cafe-layout="modern"] .ui-operation-grid a {display:flex;align-items:center;gap:12px;padding:15px 18px;border:1px solid var(--line);border-radius:12px;min-height:60px;background:#eeeae0;color:#4b4a3b;text-decoration:none;font-weight:500;font-size:14px}
body[data-cafe-layout="modern"] .ui-operation-grid a>span {flex:1}
body[data-cafe-layout="modern"] .ui-operation-grid a>.ui-icon:last-child {width:16px;color:#8e927f}
body[data-cafe-layout="modern"] .ui-auxiliary-links {display:flex;flex-wrap:wrap;gap:8px;margin:32px 0 16px;padding-top:24px;border-top:1px solid var(--line)}
body[data-cafe-layout="modern"] .ui-auxiliary-links a {display:inline-flex;align-items:center;gap:8px;padding:9px 12px;min-height:44px;font-size:12px;border:1px solid var(--line);border-radius:9px;text-decoration:none;color:#706656;background:var(--white)}
body[data-cafe-layout="modern"] .ui-auxiliary-links .ui-icon {width:16px;height:16px}
body[data-cafe-layout="modern"] .ui-auxiliary-links .ui-icon:last-child {display:none}
body[data-cafe-layout="modern"] .heading,body[data-cafe-layout="modern"] .sh-header,body[data-cafe-layout="modern"] .po-header,body[data-cafe-layout="modern"] .rp-header {margin:0 0 24px;gap:16px;align-items:center;flex-wrap:wrap}
body[data-cafe-layout="modern"] h1,body[data-cafe-layout="modern"] .heading h1 {font-family:inherit;font-size:26px;font-weight:600;line-height:1.5;letter-spacing:.015em;color:var(--ink);margin:0}
body[data-cafe-layout="modern"] h2 {font-family:inherit;font-size:18px;font-weight:600;color:var(--ink);line-height:1.5}
body[data-cafe-layout="modern"] .heading p {font-size:12px;color:var(--muted);margin:6px 0 0}
body[data-cafe-layout="modern"] .ui-breadcrumb {display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;min-height:44px;margin:-12px 0 8px;text-decoration:none}
body[data-cafe-layout="modern"] .ui-breadcrumb .ui-icon {width:15px;height:15px}
body[data-cafe-layout="modern"] .panel,body[data-cafe-layout="modern"] .card,body[data-cafe-layout="modern"] .po-card,body[data-cafe-layout="modern"] .sh-panel,body[data-cafe-layout="modern"] .rp-panel,body[data-cafe-layout="modern"] .rp-card,body[data-cafe-layout="modern"] .fh-card,body[data-cafe-layout="modern"] .sm-panel {background:var(--white);border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 12px #362a1604}
body[data-cafe-layout="modern"] .panel-head {padding:20px 22px;border-bottom:1px solid var(--line);gap:14px}
body[data-cafe-layout="modern"] .panel-title,body[data-cafe-layout="modern"] .panel h2 {color:var(--ink)}
body[data-cafe-layout="modern"] .layout {gap:24px;grid-template-columns:minmax(0,1fr) 300px}
body[data-cafe-layout="modern"] .cards {gap:14px;margin:0 0 24px}
body[data-cafe-layout="modern"] .card {padding:20px 22px}
body[data-cafe-layout="modern"] .cardtop {font-size:12px;color:var(--muted)}
body[data-cafe-layout="modern"] .value {font-size:30px;font-family:inherit;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
body[data-cafe-layout="modern"] button,body[data-cafe-layout="modern"] input,body[data-cafe-layout="modern"] select,body[data-cafe-layout="modern"] textarea {font-family:inherit}
body[data-cafe-layout="modern"] button {cursor:pointer;touch-action:manipulation}
body[data-cafe-layout="modern"] button:disabled {cursor:default;opacity:.48}
body[data-cafe-layout="modern"] .primary,body[data-cafe-layout="modern"] .submit,body[data-cafe-layout="modern"] .po-button.primary,body[data-cafe-layout="modern"] .sh-button.primary,body[data-cafe-layout="modern"] .rp-button.primary,body[data-cafe-layout="modern"] .sm-button.primary {background:var(--green)!important;color:#fffefa!important;border:1px solid var(--green)!important;border-radius:10px;min-height:44px;font-size:13px;font-weight:600;padding:10px 16px;box-shadow:none}
body[data-cafe-layout="modern"] .primary:hover:not(:disabled),body[data-cafe-layout="modern"] .submit:hover:not(:disabled) {background:#183c2f!important}
body[data-cafe-layout="modern"] .secondary,body[data-cafe-layout="modern"] .po-button,body[data-cafe-layout="modern"] .sh-button,body[data-cafe-layout="modern"] .rp-button,body[data-cafe-layout="modern"] .sm-button {background:var(--white);border:1px solid #d9d3c7;color:#514b40;border-radius:10px;min-height:44px;font-size:13px;padding:10px 14px}
body[data-cafe-layout="modern"] .text-btn {font-size:12px;min-height:44px;color:var(--green)}
body[data-cafe-layout="modern"] input:not([type=checkbox]):not([type=radio]):not([type=file]),body[data-cafe-layout="modern"] select,body[data-cafe-layout="modern"] textarea {border:1px solid #d9d5ca;border-radius:9px;background:#fffefa;color:var(--ink);min-height:44px;font-size:14px;line-height:1.4;padding:10px;max-width:100%}
body[data-cafe-layout="modern"] input[type=checkbox],body[data-cafe-layout="modern"] input[type=radio] {width:18px;height:18px;accent-color:var(--green);flex:none}
body[data-cafe-layout="modern"] .field {gap:8px;font-size:12px}
body[data-cafe-layout="modern"] .field label,body[data-cafe-layout="modern"] .po-field label {font-size:12px;color:var(--muted)}
body[data-cafe-layout="modern"] .form-grid,body[data-cafe-layout="modern"] .po-form-grid {gap:16px}
body[data-cafe-layout="modern"] :is(a,button,input,select,textarea,summary):focus-visible {outline:3px solid #709684;outline-offset:3px}
body[data-cafe-layout="modern"] .table-wrap,body[data-cafe-layout="modern"] .po-table-scroll,body[data-cafe-layout="modern"] .sh-table-wrap {border-color:var(--line);max-width:100%;overscroll-behavior-x:contain}
body[data-cafe-layout="modern"] th {font-size:11px;color:#716959;background:#f0eee6;font-weight:600;padding:13px 14px;border-color:var(--line);white-space:nowrap}
body[data-cafe-layout="modern"] td {font-size:13px;padding:14px;border-color:#ede9de;line-height:1.6;vertical-align:middle}
body[data-cafe-layout="modern"] .tag {border-radius:6px;background:var(--green-soft);color:var(--green);font-size:11px;padding:4px 8px;white-space:nowrap}
body[data-cafe-layout="modern"] .tag.low {color:#8a582f;background:#f6e9d7}
body[data-cafe-layout="modern"] .bread {background:#eee9dd;border-radius:10px;width:38px;height:38px}
body[data-cafe-layout="modern"] .stock {font-family:inherit;font-variant-numeric:tabular-nums}
body[data-cafe-layout="modern"] .product-select-link,body[data-cafe-layout="modern"] .material-name-link {color:var(--ink);font-weight:600;font-size:14px;line-height:1.5;min-height:44px}
body[data-cafe-layout="modern"] .stock-stepper button,body[data-cafe-layout="modern"] .iu-setting-step {min-height:44px;min-width:44px;height:44px;border-radius:9px;border:1px solid #d9d5c8;color:var(--green);background:#f0f2ea;font-size:14px}
body[data-cafe-layout="modern"] .stock-stepper.special button {background:#eee6db;color:#695540;border-color:#ded4c6}
body[data-cafe-layout="modern"] .iu-inherit {background:#f4f1e8;border-color:var(--line);color:#776b5a;min-height:34px;font-size:10px}
body[data-cafe-layout="modern"] .product-manage,body[data-cafe-layout="modern"] .material-edit,body[data-cafe-layout="modern"] .material-delete {min-height:44px;min-width:44px;border-radius:9px}
body[data-cafe-layout="modern"] .po-tabs,body[data-cafe-layout="modern"] .sh-tabs,body[data-cafe-layout="modern"] .rp-tabs,body[data-cafe-layout="modern"] .sm-tabs {display:flex;gap:5px;padding:5px;background:#eae8de;border:0;border-radius:12px;margin-bottom:22px;flex-wrap:wrap}
body[data-cafe-layout="modern"] :is(.po-tabs,.sh-tabs,.rp-tabs,.sm-tabs) button {flex:1;min-height:44px;font-size:13px;border:0;border-radius:8px;color:#686553;white-space:nowrap;padding:10px;background:transparent}
body[data-cafe-layout="modern"] :is(.po-tabs,.sh-tabs,.rp-tabs,.sm-tabs) button.active,body[data-cafe-layout="modern"] :is(.po-tabs,.sh-tabs,.rp-tabs,.sm-tabs) button[aria-selected=true] {background:var(--white);color:var(--green);box-shadow:0 2px 6px #332a1610}
body[data-cafe-layout="modern"] .home-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 24px}
body[data-cafe-layout="modern"] .home-metrics a {background:var(--white);border:1px solid var(--line);border-radius:14px;padding:18px;color:var(--ink);box-shadow:none}
body[data-cafe-layout="modern"] .home-metrics span {font-size:12px;color:var(--muted)}
body[data-cafe-layout="modern"] .home-metrics strong {font-size:26px;color:var(--green);font-family:inherit;line-height:1.5}
body[data-cafe-layout="modern"] .home-metrics em {display:none}
body[data-cafe-layout="modern"] .home-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}
body[data-cafe-layout="modern"] .home-card {padding:22px}
body[data-cafe-layout="modern"] .home-card-title h2 {font-size:17px;color:var(--ink)}
body[data-cafe-layout="modern"] .home-item {padding:14px 0;border-color:var(--line);font-size:13px}
body[data-cafe-layout="modern"] .home-item small {font-size:11px;color:var(--muted)}
body[data-cafe-layout="modern"] .home-item strong {color:var(--green);font-variant-numeric:tabular-nums}
body[data-cafe-layout="modern"] .home-menu-grid>div {background:#f1efe6;border:0;border-radius:9px;padding:12px}
body[data-cafe-layout="modern"] .home-empty {font-size:12px;line-height:1.8;color:var(--muted)}
body[data-cafe-layout="modern"] .home-search {padding:18px 22px;background:#eeeae0}
body[data-cafe-layout="modern"] .home-backup {border-radius:12px;border-color:#daceb8;background:#eee7d9;padding:16px 20px}
body[data-cafe-layout="modern"] #homeCardSettings {padding:14px 20px;margin:18px 0}
body[data-cafe-layout="modern"] summary {min-height:44px;cursor:pointer;line-height:1.6}
body[data-cafe-layout="modern"] .appearance-bar {padding:18px 0 0;margin-top:26px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);background:transparent;font-size:12px}
body[data-cafe-layout="modern"] .appearance-bar button {border-radius:9px;min-height:44px;font-size:11px;background:var(--white);border:1px solid var(--line);padding:9px 12px}
body[data-cafe-layout="modern"] .modal,body[data-cafe-layout="modern"] .po-dialog,body[data-cafe-layout="modern"] .sh-dialog,body[data-cafe-layout="modern"] .rp-dialog {background:var(--white);border-radius:18px;box-shadow:0 20px 70px #251f1630;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
body[data-cafe-layout="modern"] .overlay,body[data-cafe-layout="modern"] .po-overlay {z-index:120;padding:16px;background:#24271fc0}
body[data-cafe-layout="modern"] .toast {z-index:150;background:var(--green);bottom:30px;max-width:90vw}
body[data-cafe-layout="modern"] .po-calendar-day {background:var(--white);border-color:var(--line);border-radius:10px;color:var(--ink);min-width:0}
body[data-cafe-layout="modern"] .po-calendar-day.today {border-color:#81a08c;background:#edf2e9}
body[data-cafe-layout="modern"] .po-calendar-day.selected {background:var(--green);color:white}
body[data-cafe-layout="modern"] .po-calendar-dot {max-width:100%;overflow:hidden;text-overflow:ellipsis;background:#e7e9de}
body[data-cafe-layout="modern"] .fh-grid {gap:16px}
body[data-cafe-layout="modern"] .fh-card {padding:18px}
body[data-cafe-layout="modern"] .fh-name {color:var(--ink);font-size:15px}
body[data-cafe-layout="modern"] .rp-recipe-title {font-size:17px;color:var(--ink)}
body[data-cafe-layout="modern"] .sm-note,body[data-cafe-layout="modern"] .po-meta {color:var(--muted);font-size:12px;line-height:1.8}
body[data-cafe-layout="modern"] [hidden] {display:none!important}
body[data-cafe-font="large"] .ui-feature-label {font-size:18px}
@media(max-width:1100px) {
body[data-cafe-layout="modern"] .shell {padding:24px}
body[data-cafe-layout="modern"] .layout {grid-template-columns:minmax(0,1fr)}
body[data-cafe-layout="modern"] .side {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
body[data-cafe-layout="modern"] .header-tools {margin-left:auto}
body[data-cafe-layout="modern"] .ui-feature-label {padding:16px 12px;font-size:14px;gap:8px}
}
@media(max-width:780px) {
body[data-cafe-layout="modern"] .shell {padding:20px 18px 110px}
body[data-cafe-layout="modern"] .topbar {position:relative;gap:14px;padding-bottom:16px}
body[data-cafe-layout="modern"] .brand-title {font-size:26px}
body[data-cafe-layout="modern"] .header-tools {order:2;width:100%;max-width:none;flex-direction:row;justify-content:space-between;margin:0;gap:8px}
body[data-cafe-layout="modern"] .weather-shortcut {margin-left:auto;max-width:160px;font-size:11px}
body[data-cafe-layout="modern"] .ui-navigation {justify-content:flex-end;margin-bottom:20px}
body[data-cafe-layout="modern"] .ui-navigation .app-nav:not(.mobile-expanded) {display:none}
body[data-cafe-layout="modern"] .ui-navigation:has(.mobile-expanded) {flex-wrap:wrap}
body[data-cafe-layout="modern"] .ui-navigation .app-nav.mobile-expanded {order:1;flex-basis:100%;gap:12px}
body[data-cafe-layout="modern"] .ui-navigation .app-nav.mobile-expanded .nav-group {flex-basis:100%}
body[data-cafe-layout="modern"] .ui-navigation .mobile-menu-toggle {min-height:44px;font-size:12px;padding:8px 14px}
body[data-cafe-layout="modern"] #homePage .ui-feature-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
body[data-cafe-layout="modern"] .ui-feature-image {aspect-ratio:2}
body[data-cafe-layout="modern"] .ui-feature-label {padding:14px 12px;font-size:14px;gap:8px;min-height:54px}
body[data-cafe-layout="modern"] .ui-feature-label .ui-icon {width:19px;height:19px}
body[data-cafe-layout="modern"] .ui-feature-label>.ui-icon:last-child {width:12px}
body[data-cafe-layout="modern"] .ui-feature-customer-menu {grid-column:1/-1;display:grid!important;grid-template-columns:38% 1fr}
body[data-cafe-layout="modern"] .ui-feature-customer-menu .ui-feature-image {aspect-ratio:auto;min-height:80px}
body[data-cafe-layout="modern"] .ui-feature-customer-menu .ui-feature-label {padding:20px}
body[data-cafe-layout="modern"] .ui-operation-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:28px}
body[data-cafe-layout="modern"] .ui-operation-grid a {font-size:12px;padding:12px;gap:8px;min-height:54px;border-radius:10px}
body[data-cafe-layout="modern"] .ui-operation-grid .ui-icon {width:18px;height:18px}
body[data-cafe-layout="modern"] .ui-operation-grid a>.ui-icon:last-child {width:12px}
body[data-cafe-layout="modern"] .heading,body[data-cafe-layout="modern"] .sh-header,body[data-cafe-layout="modern"] .po-header,body[data-cafe-layout="modern"] .rp-header {gap:12px;margin-bottom:20px;align-items:flex-start}
body[data-cafe-layout="modern"] h1,body[data-cafe-layout="modern"] .heading h1 {font-size:23px}
body[data-cafe-layout="modern"] .cards {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body[data-cafe-layout="modern"] .card {padding:16px}
body[data-cafe-layout="modern"] .home-grid,body[data-cafe-layout="modern"] .side {grid-template-columns:1fr;gap:16px}
body[data-cafe-layout="modern"] .home-card {padding:18px}
body[data-cafe-layout="modern"] .home-metrics {gap:8px}
body[data-cafe-layout="modern"] .home-metrics a {padding:14px 10px}
body[data-cafe-layout="modern"] .home-metrics strong {font-size:21px}
body[data-cafe-layout="modern"] .home-metrics span,body[data-cafe-layout="modern"] .home-metrics small {font-size:10px}
body[data-cafe-layout="modern"] .mobile-bottom-nav {display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;width:100%;z-index:100;padding:8px 10px max(10px,env(safe-area-inset-bottom));background:#fffefaf8;border-top:1px solid #deddd0;backdrop-filter:blur(15px);box-shadow:0 -3px 16px #29231808;gap:4px}
body[data-cafe-layout="modern"] .mobile-bottom-nav a {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:50px;border-radius:10px;color:#777466;text-decoration:none;font-size:10px;font-weight:500}
body[data-cafe-layout="modern"] .mobile-bottom-nav a.active {background:#e8eee4;color:var(--green);font-weight:600}
body[data-cafe-layout="modern"] .mobile-bottom-nav .ui-icon {width:22px;height:22px}
body[data-cafe-layout="modern"] .toast {bottom:calc(90px + env(safe-area-inset-bottom))}
body[data-cafe-layout="modern"] .modal-actions {flex-wrap:wrap;gap:8px}
body[data-cafe-layout="modern"] .modal-actions button {flex:1;white-space:nowrap}
body[data-cafe-layout="modern"] .po-calendar {gap:4px}
body[data-cafe-layout="modern"] .po-calendar-day {padding:8px 3px;min-height:72px;border-radius:7px;font-size:13px}
body[data-cafe-layout="modern"] .po-calendar-day b {font-size:15px}
body[data-cafe-layout="modern"] .po-calendar-dot {font-size:8px;padding:2px}
body[data-cafe-layout="modern"] input:not([type=checkbox]):not([type=radio]):not([type=file]),body[data-cafe-layout="modern"] select,body[data-cafe-layout="modern"] textarea {font-size:16px}
body[data-cafe-layout="modern"] .date-pill input {padding:2px 0;font-size:14px!important;min-height:36px;width:135px;border:0}
}
@media(max-width:600px) {
body[data-cafe-layout="modern"] #inventoryPage .stock-table {display:block;width:100%;min-width:0}
body[data-cafe-layout="modern"] #inventoryPage .stock-table thead {display:none}
body[data-cafe-layout="modern"] #inventoryPage .table-wrap {overflow:visible}
body[data-cafe-layout="modern"] #productRows {display:grid;gap:14px;padding:0 14px 16px}
body[data-cafe-layout="modern"] #inventoryPage .product-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:relative;border:1px solid #ddd9cc;border-radius:14px;background:var(--white);overflow:hidden;padding:0;gap:0}
body[data-cafe-layout="modern"] #inventoryPage .product-row td {display:flex;align-items:center;gap:8px;min-width:0;border:0;padding:14px}
body[data-cafe-layout="modern"] #inventoryPage .product-row td:first-child {position:absolute;right:0;top:0;padding:7px;z-index:1}
body[data-cafe-layout="modern"] #inventoryPage .product-row td:nth-child(2) {grid-column:1/-1;padding-right:58px;border-bottom:1px solid var(--line)}
body[data-cafe-layout="modern"] #inventoryPage .product-row td:nth-child(3) {grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;background:#edf1e7;flex-wrap:wrap}
body[data-cafe-layout="modern"] #inventoryPage .product-row td:nth-child(3):before {content:'現在庫';font-size:12px;color:#5c6856;position:static}
body[data-cafe-layout="modern"] #inventoryPage .product-row td:nth-child(3) .stock-adjust {flex-wrap:wrap;gap:5px;justify-content:flex-end;max-width:100%}
body[data-cafe-layout="modern"] #inventoryPage .product-row td:nth-child(4),body[data-cafe-layout="modern"] #inventoryPage .product-row td:nth-child(5) {grid-column:auto;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;padding:14px 12px;position:static}
body[data-cafe-layout="modern"] #inventoryPage .product-row td:nth-child(4):before {content:'基本準備数';font-size:11px;color:var(--muted);position:static;flex:none}
body[data-cafe-layout="modern"] #inventoryPage .product-row td:nth-child(5):before {content:'基本納品数';font-size:11px;color:var(--muted);position:static;flex:none}
body[data-cafe-layout="modern"] #inventoryPage .iu-setting-line {gap:3px;width:100%}
body[data-cafe-layout="modern"] #inventoryPage .iu-setting-line .prep-input {width:48px;min-width:0;flex:1;padding:6px 2px;font-size:16px}
body[data-cafe-layout="modern"] #inventoryPage .iu-setting-step {width:40px;min-width:40px;min-height:44px;padding:0}
body[data-cafe-layout="modern"] #inventoryPage .iu-setting {max-width:100%;width:100%;flex:1}
body[data-cafe-layout="modern"] #inventoryPage .product-row td:nth-child(6) {grid-column:1;align-self:end;border-top:1px solid var(--line);padding:12px}
body[data-cafe-layout="modern"] #inventoryPage .product-row td:nth-child(7) {grid-column:2;justify-content:flex-end;border-top:1px solid var(--line);padding:8px 12px}
body[data-cafe-layout="modern"] #inventoryPage .product-row td:has(.iu-setting[hidden]) {display:none}
body[data-cafe-layout="modern"] #materialRows .material-row {border:1px solid #ddd9cc;border-radius:14px;background:var(--white)}
body[data-cafe-layout="modern"] #materialRows td:nth-child(4) {background:#edf1e7;flex-wrap:wrap}
body[data-cafe-layout="modern"] #materialRows td:nth-child(7) {background:#f2efe5}
body[data-cafe-layout="modern"] #materialRows td {padding:14px}
body[data-cafe-layout="modern"] .panel-head {padding:16px;gap:12px}
body[data-cafe-layout="modern"] .panel-actions {gap:8px;max-width:100%;flex-wrap:wrap}
body[data-cafe-layout="modern"] .panel-actions input[type=search] {width:100%;min-width:0}
body[data-cafe-layout="modern"] :is(.po-tabs,.sh-tabs,.rp-tabs,.sm-tabs) button {flex:1 1 35%;font-size:12px;white-space:normal}
body[data-cafe-layout="modern"] .home-card-title {flex-wrap:wrap;gap:8px}
body[data-cafe-layout="modern"] .po-calendar-day {min-height:65px}
body[data-cafe-layout="modern"] #homeCardSettings {padding:12px 16px}
}
@media(max-width:380px) {
body[data-cafe-layout="modern"] .shell {padding:16px 12px 110px}
body[data-cafe-layout="modern"] .brand-title {font-size:24px}
body[data-cafe-layout="modern"] .brand {gap:8px}
body[data-cafe-layout="modern"] .mark {width:36px;height:36px}
body[data-cafe-layout="modern"] .weather-shortcut {font-size:10px;padding:6px 8px;max-width:125px}
body[data-cafe-layout="modern"] #inventorySyncStatus {font-size:10px;padding:8px;max-width:130px}
body[data-cafe-layout="modern"] .date-pill {padding:4px 6px;gap:4px;font-size:10px}
body[data-cafe-layout="modern"] .date-pill input {width:123px;font-size:13px!important}
body[data-cafe-layout="modern"] .ui-feature-label {font-size:12px;padding:12px 10px;gap:6px}
body[data-cafe-layout="modern"] .ui-feature-label>.ui-icon:last-child {display:none}
body[data-cafe-layout="modern"] .ui-operation-grid a {padding:12px 9px;font-size:11px;gap:6px}
body[data-cafe-layout="modern"] .ui-operation-grid a>.ui-icon:last-child {display:none}
body[data-cafe-layout="modern"] #inventoryPage .product-row td:nth-child(4),body[data-cafe-layout="modern"] #inventoryPage .product-row td:nth-child(5) {grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center}
body[data-cafe-layout="modern"] #inventoryPage .iu-setting {max-width:150px;flex:none}
body[data-cafe-layout="modern"] #inventoryPage .product-row td:nth-child(3) .stock-adjust {gap:4px}
body[data-cafe-layout="modern"] .home-metrics a {padding:12px 8px}
body[data-cafe-layout="modern"] .home-metrics strong {font-size:19px}
}
@media(prefers-reduced-motion:reduce) {body[data-cafe-layout="modern"] .ui-feature-card {transition:none;transform:none}}
}
@media print {.ui-breadcrumb,.ui-operation-grid,.ui-auxiliary-links,.ui-feature-grid {display:none!important}}
