/* The native Roman palette, with browser-sized controls and flowing pages.
   Native landscape geometry stays in phone.css. */
html:not([data-native-phone="true"]) :is(button,select){border-radius:4px;border-color:#c6a26c70;background:linear-gradient(180deg,#2b3838,#18282d);color:#eee3ce;box-shadow:inset 0 1px #e5c89512,0 2px 5px #07101233;line-height:1.35}
html:not([data-native-phone="true"]) button:hover:not(:disabled){background:linear-gradient(180deg,#414a40,#283837);border-color:#dfbf7f}
html:not([data-native-phone="true"]) button.primary{background:linear-gradient(135deg,#edd29a,#c59a5f);border-color:#e6c58d;color:#172124}
html:not([data-native-phone="true"]) button.primary:hover:not(:disabled){background:linear-gradient(135deg,#f6dfb0,#d9b077)}
html:not([data-native-phone="true"]) button:disabled{opacity:1;color:#9ca6a0;border-color:#8f8a6b55;background:#253135;box-shadow:none}
html:not([data-native-phone="true"]) :is(button,select,input,summary):focus-visible{outline:3px solid #ffe3a5;outline-offset:2px}
html:not([data-native-phone="true"]) input:is([type="checkbox"],[type="range"]){accent-color:#d4b479}
html:not([data-native-phone="true"]) :is(.topbar,.board-bottom,.prep-start){background:linear-gradient(110deg,#273331f5,#142429f5);border-color:#c6a26c55}
html:not([data-native-phone="true"]) :is(.sidebar,.panel,.hero-card,.prep-detail,.prep-options){background:linear-gradient(135deg,#273331ed,#142429ed);border-color:#c6a26c55;border-radius:8px;box-shadow:inset 0 0 0 3px #c6a26c0b}
html:not([data-native-phone="true"]) :is(.prep-roster-unit,.prep-avatar,.stat-grid>div,.forecast-unit,.tag){border-radius:4px}
html:not([data-native-phone="true"]) :is(.prep-roster-unit.selected,.party-button.selected,.equipment-choices [aria-pressed="true"],button.on){background:linear-gradient(180deg,#554934,#39382a);border-color:#dfbf7f;color:#f3e4c6}
html:not([data-native-phone="true"]) :is(.prep-profile-info h3,.prep-roster h3,.sheet h2,.sheet h3){color:#edd5a1}
html:not([data-native-phone="true"]) .topbar nav button{min-height:44px}
html:not([data-native-phone="true"]) .sheet-backdrop{display:flex;padding:24px;align-items:center;justify-content:center}
html:not([data-native-phone="true"]) .sheet.native-window{display:flex;flex-direction:column;gap:16px;width:min(640px,100%);max-height:calc(100dvh - 48px);padding:24px;border-radius:8px;border-color:#c6a26c8a;background:linear-gradient(135deg,#273331fa,#142429fa);box-shadow:inset 0 0 0 3px #c6a26c12,0 14px 50px #0008;overflow:hidden;min-height:0;animation:none}
html:not([data-native-phone="true"]) .sheet.native-window.wide{width:min(1040px,100%)}
html:not([data-native-phone="true"]) .native-window .sheet-handle{display:none}
html:not([data-native-phone="true"]) .native-window .sheet-close{top:16px;right:16px;border:1px solid #c6a26c55;border-radius:4px}
html:not([data-native-phone="true"]) .native-window-header{display:flex;align-items:center;gap:12px;flex:none;min-height:44px;padding:0 48px 12px 0;border-bottom:1px solid #c6a26c55;min-width:0}
html:not([data-native-phone="true"]) .native-window-header h2{flex:1;min-width:0;margin:0;padding:0;font:400 32px/1.15 'Cormorant Garamond',Georgia,serif;letter-spacing:.02em;overflow-wrap:anywhere}
html:not([data-native-phone="true"]) .native-window-header button{min-height:44px}
html:not([data-native-phone="true"]) .native-window-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:4px;scroll-padding:8px}
html:not([data-native-phone="true"]) .native-window-body>.eyebrow{letter-spacing:1.5px;margin:0 0 12px}
html:not([data-native-phone="true"]) .native-window-body>p:last-child{margin-bottom:4px}
html:not([data-native-phone="true"]) .native-window :is(button,select){min-height:44px;min-width:44px}
html:not([data-native-phone="true"]) .native-window-footer{display:flex;flex-wrap:wrap;gap:10px;flex:none;padding-top:16px;border-top:1px solid #c6a26c33}
html:not([data-native-phone="true"]) .native-window-footer>button{flex:1;min-width:0;margin:0;white-space:normal}
html:not([data-native-phone="true"]) .native-window-footer #cancel{margin:0}
html:not([data-native-phone="true"]) .native-preferences-tabs{display:flex;gap:8px;flex:none}
html:not([data-native-phone="true"]) .native-preferences-tabs button{flex:1;min-width:0}
html:not([data-native-phone="true"]) .native-preferences-tabs [aria-pressed="true"]{background:linear-gradient(180deg,#554934,#39382a);border-color:#dfbf7f;color:#f3e4c6}
html:not([data-native-phone="true"]) :is(.native-preferences-grid,.native-audio-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
html:not([data-native-phone="true"]) .native-preferences-grid label{display:flex;flex-direction:column;gap:8px}
html:not([data-native-phone="true"]) :is(.native-toggle,.native-preferences-grid .native-toggle){display:flex;flex-direction:row;align-items:center;gap:10px;min-height:44px;border:1px solid #c6a26c55;border-radius:4px;padding:10px}
html:not([data-native-phone="true"]) .native-toggle input{width:20px;height:20px;flex:none;margin:0}
html:not([data-native-phone="true"]) .native-audio-master{display:grid;gap:12px}
html:not([data-native-phone="true"]) .native-audio-grid label{display:block;line-height:1.5}
html:not([data-native-phone="true"]) .native-audio-grid output{float:right;color:var(--gold)}
html:not([data-native-phone="true"]) .native-audio-grid input[type="range"]{display:block;width:100%;min-height:44px;margin:0 0 12px}
html:not([data-native-phone="true"]) .native-audio-grid :is(#audio-status,#audio-retry){grid-column:1/-1;margin:0}
html:not([data-native-phone="true"]) .native-window [hidden]{display:none!important}
html:not([data-native-phone="true"]) .forecast-grid{margin:0 0 16px;gap:12px}
html:not([data-native-phone="true"]) .forecast-unit{padding:14px;background:#142429;border:1px solid #c6a26c55;border-top:3px solid var(--teal);min-width:0}
html:not([data-native-phone="true"]) .forecast-unit.enemy{border-top-color:var(--red)}
html:not([data-native-phone="true"]) .forecast-unit p{margin:8px 0 0;line-height:1.35}
html:not([data-native-phone="true"]) .forecast-unit .damage-number{font-size:38px;margin:8px 0 0}
html:not([data-native-phone="true"]) .sheet .danger{padding:12px;border-left:3px solid #de927c;background:#de927c0d}
@media(max-width:600px){
 html:not([data-native-phone="true"]) .page>.topbar{height:auto;min-height:60px;flex:none;flex-wrap:wrap;padding:8px 15px;gap:8px}
 html:not([data-native-phone="true"]) .page>.topbar>div{flex:1;min-width:100px}
 html:not([data-native-phone="true"]) .page>.topbar nav{flex:none;flex-wrap:nowrap;gap:4px}
 html:not([data-native-phone="true"]) .page>.topbar .chapter-tag{max-width:100%;font-size:13px}
 html:not([data-native-phone="true"]) .sheet-backdrop{padding:12px;align-items:center}
 html:not([data-native-phone="true"]) .sheet.native-window{max-height:calc(100dvh - 24px);padding:16px;gap:12px;margin:0;animation:none}
 html:not([data-native-phone="true"]) .native-window .sheet-close{top:12px;right:12px}
 html:not([data-native-phone="true"]) .native-window-header h2{font-size:28px}
 html:not([data-native-phone="true"]) .native-preferences-grid{grid-template-columns:1fr}
 html:not([data-native-phone="true"]) .native-audio-grid{gap:12px}
 html:not([data-native-phone="true"]) .native-window-footer{padding-top:12px}
 html:not([data-native-phone="true"]) .forecast-unit{padding:10px}
}
@media(orientation:landscape) and (max-height:540px){
 html:not([data-native-phone="true"]) .sheet-backdrop{padding:8px}
 html:not([data-native-phone="true"]) .sheet.native-window{max-height:calc(100dvh - 16px);padding:12px;gap:8px}
 html:not([data-native-phone="true"]) .native-window-header{padding-bottom:6px}
 html:not([data-native-phone="true"]) .native-window-header h2{font-size:26px}
 html:not([data-native-phone="true"]) .native-window .sheet-close{top:8px;right:8px}
 html:not([data-native-phone="true"]) .native-window-footer{padding-top:8px}
}
