/* Atlas WEB-03: shared shell/tokens, compact fields and persistent actions. */
@font-face{font-family:AtlasEditorMedium;src:url('/assets/atlas/editor-medium.ttf') format('truetype');font-weight:500;font-display:swap}
@media(min-width:1200px){.editor-tabs button[data-editor-action=tab-ownership]{min-width:226px}}
body:has(.garage-editor) #feedback{pointer-events:none}body:has(.garage-editor) #feedback button{pointer-events:auto}
@media(max-width:767px){body:has(.garage-editor) #feedback{bottom:calc(112px + env(safe-area-inset-bottom,0px))}}
.garage-editor{display:flex;flex-direction:column;gap:16px;min-width:0}.editor-breadcrumb{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}.editor-breadcrumb .button{border:0;background:none;padding:0;min-height:18px;font-size:12px;font-weight:400;color:var(--muted)}.editor-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:8px}.editor-heading h1{font-size:30px;line-height:42px;overflow-wrap:anywhere}.editor-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:var(--nav);color:var(--brand);padding:5px 12px;font-size:11px;font-weight:600;line-height:16px;overflow-wrap:anywhere;max-width:40%}
.editor-layout{display:grid;grid-template-columns:336px minmax(0,1fr);gap:20px;min-width:0;border:0;padding:0;margin:0}.editor-layout:disabled{opacity:1}.editor-photo{display:flex;flex-direction:column;gap:16px;height:620px;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}.editor-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px;font-size:11px;font-weight:600;color:var(--muted)}.editor-photo-heading .editor-badge{max-width:60%}.editor-photo-button{display:block;width:100%;min-height:80px;flex:0 0 212px;border:0;padding:0;background:var(--surface);border-radius:8px;overflow:hidden}.editor-photo-button .preview-image{height:100%;min-height:0}.editor-photo-button img{width:100%;height:100%;object-fit:contain}.editor-photo .button{width:100%;min-height:44px;flex-shrink:0;border-radius:8px}.editor-photo hr{width:100%;border:0;border-top:1px solid var(--line);margin:0}.editor-photo h2{font-size:18px;line-height:25px}.editor-photo dl{display:flex;flex-direction:column;gap:8px;margin:0;font-size:12px}.editor-photo dl>div{display:grid;grid-template-columns:108px minmax(0,1fr);gap:12px;min-height:24px}.editor-photo dt,.editor-photo>p{color:var(--muted);font-size:12px;line-height:17px}.editor-photo dd{margin:0;font-size:13px;overflow-wrap:anywhere}.compact-photo-summary{display:none}
.editor-details{display:flex;flex-direction:column;gap:12px;min-width:0;height:620px}.editor-tabs{display:flex;align-items:stretch;gap:4px;flex-shrink:0;min-height:40px;padding:4px;background:var(--nav);border-radius:8px}.editor-tabs button{border:0;background:transparent;color:var(--muted);font-weight:600;font-size:13px;padding:4px 24px;min-height:32px;border-radius:8px;min-width:170px}.editor-tabs button[aria-selected=true]{color:var(--brand);background:var(--surface)}.editor-fields{overflow:auto;min-height:0;flex:1;scrollbar-gutter:stable;padding:0 3px 3px 0}.editor-fields [role=tabpanel]{display:flex;flex-direction:column;gap:12px}.editor-section{border:1px solid var(--line);border-radius:8px;background:var(--surface);min-width:0;flex-shrink:0;overflow:clip}.editor-section-toggle{line-height:18px;display:flex;align-items:center;width:100%;gap:12px;padding:12px;min-height:42px;border:0;background:transparent;color:var(--brand);text-align:left}.editor-section-toggle strong{font-size:13px;line-height:18px;flex:0 1 240px}.editor-section-toggle small{font-size:11px;line-height:15px;flex:1;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-section-toggle>span{font-size:18px;line-height:18px;margin-left:auto}.editor-section.is-expanded{padding:16px}.editor-section.is-expanded>.editor-section-toggle{min-height:25px;padding:0;margin-bottom:12px;color:var(--ink)}.editor-section.is-expanded>.editor-section-toggle strong{font-size:18px;line-height:25px;flex:1}.editor-section.is-expanded>.editor-section-toggle small,.editor-section.is-expanded>.editor-section-toggle>span{display:none}.editor-section[data-section=more].is-expanded>.editor-section-toggle,.editor-section[data-section=tags].is-expanded>.editor-section-toggle,.editor-section[data-section=custom].is-expanded>.editor-section-toggle{color:var(--brand)}.editor-section-body{display:flex;flex-direction:column;gap:12px;min-width:0}.editor-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;min-width:0}.editor-row.casting-row{grid-template-columns:minmax(0,460fr) minmax(0,288fr)}.editor-row.quantity-row{grid-template-columns:minmax(100px,164fr) minmax(0,584fr)}.editor-row.condition-row{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-field{display:flex;flex-direction:column;gap:8px;font-size:12px;line-height:17px;color:var(--muted);min-width:0;width:100%}.editor-field input,.editor-field select,.editor-field textarea{display:block;width:100%;min-width:0;min-height:42px;border:1px solid var(--line);background:var(--input);color:var(--ink);border-radius:8px;padding:10px 12px;font:500 14px/20px AtlasEditorMedium,Inter,system-ui,sans-serif}.editor-field textarea{resize:vertical;min-height:68px;max-height:300px}.editor-field textarea:focus-visible{outline:3px solid var(--brand);outline-offset:2px}.editor-field [aria-invalid=true]{border:2px solid var(--brand)}.editor-error{font-size:12px;line-height:17px;color:var(--brand);font-weight:600}.editor-label{font-size:12px;color:var(--muted)}.editor-tags{display:flex;flex-wrap:wrap;gap:8px 20px;border:0;padding:0;margin:0;min-width:0}.editor-tags legend{padding:0;margin-bottom:8px;font-size:12px;color:var(--muted)}.editor-tags label{display:flex;align-items:center;gap:8px;min-height:32px;font-size:13px}.editor-tags input{width:16px;height:16px;accent-color:var(--brand)}.editor-custom-field{display:grid;grid-template-columns:minmax(0,244fr) minmax(0,408fr) 80px;gap:16px;align-items:start}.editor-custom-field>.button{margin-top:25px;min-height:36px;padding:4px 10px;font-size:13px}.editor-customization{display:flex;gap:12px;align-items:start}.editor-customization .button{min-height:42px;padding:8px 12px}.editor-section-body>.button{align-self:flex-start;min-height:36px;padding:6px 16px;font-size:13px}.editor-section-body>.muted{font-size:12px;line-height:17px}
.editor-save-bar{display:flex;align-items:center;gap:12px;padding:16px;min-height:76px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.editor-save-bar>div{flex:1;min-width:0}.editor-save-bar strong{display:block;font-size:14px;line-height:20px;color:var(--brand)}.editor-save-bar p{margin-top:4px;font-size:12px;line-height:17px;color:var(--muted)}.editor-save-bar>.button{min-width:104px;min-height:44px;border-radius:8px}.editor-save-bar>.primary{min-width:208px}.editor-shortcuts,.editor-archives{font-size:11px;color:var(--muted)}.editor-archives .button{font-size:12px;min-height:32px;padding:4px 12px;margin:4px}.editor-confirm{max-width:480px;width:calc(100vw - 32px);border:1px solid var(--line);border-radius:12px;padding:24px;background:var(--surface);color:var(--ink)}.editor-confirm h2{font-size:20px}.editor-confirm p{margin:12px 0 24px;color:var(--muted)}.editor-confirm>div{display:flex;flex-wrap:wrap;gap:12px}.editor-confirm::backdrop{background:#101c1d80}.editor-warning,.editor-recovery-notice{border:1px solid var(--line);border-radius:8px;background:var(--nav);color:var(--ink);padding:12px 16px;font-size:13px}.editor-recovery-notice{max-width:428px;margin:0 auto 20px}.editor-latest{width:100%}.editor-latest dl{margin:0;width:100%;font-size:13px}.editor-latest dl>div{display:grid;grid-template-columns:200px minmax(0,1fr);gap:20px;padding:10px 0}.editor-latest dt{color:var(--muted)}.editor-latest dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.collection-saved{padding:12px 16px;background:var(--nav);border-radius:8px;color:var(--brand);font-weight:600}
@media(max-width:1199px){.editor-layout{grid-template-columns:240px minmax(0,1fr);gap:16px}.editor-photo{padding:20px}.editor-photo dl>div{grid-template-columns:80px minmax(0,1fr);gap:8px}.editor-tabs button{min-width:0;flex:1;padding:4px 8px}.editor-row.casting-row,.editor-row.quantity-row{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-row.condition-row{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-custom-field{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.editor-custom-field>.button{margin-top:0;grid-column:2;justify-self:end}.editor-save-bar>.primary{min-width:160px}}
@media(max-width:767px){.garage-editor{gap:16px;padding-bottom:112px}.editor-heading{order:-1;margin:0}.editor-heading h1{font-size:24px;line-height:34px}.editor-heading>.editor-badge{display:none}.editor-breadcrumb{margin:0 0 0}.editor-layout{display:flex;flex-direction:column;gap:16px}.editor-photo{height:148px;padding:12px;border:0;gap:14px}.editor-photo-heading,.editor-photo>.button,.editor-photo>hr,.editor-photo>h2,.editor-photo>dl,.editor-photo>p:not(.compact-photo-summary){display:none}.editor-photo-button{height:90px;min-height:90px;flex:0 0 90px}.editor-photo-button img{max-width:176px;height:90px;margin:auto}.editor-photo>p.compact-photo-summary{display:block;color:var(--ink);font-size:14px;line-height:20px}.editor-details{height:auto;gap:12px}.editor-fields{overflow:visible;padding:0}.editor-tabs{padding:0;background:transparent;gap:8px;min-height:40px}.editor-tabs button{padding:8px;min-height:40px;font-size:14px;border:1px solid var(--line);background:var(--surface)}.editor-tabs button[aria-selected=true]{border-color:var(--brand)}.editor-row,.editor-row.casting-row,.editor-row.quantity-row,.editor-row.condition-row{grid-template-columns:1fr;gap:20px}.editor-section.is-expanded{padding:16px}.editor-section-toggle strong{flex:1}.editor-section-toggle small{display:none}.editor-section-body{gap:20px}.editor-section.is-expanded>.editor-section-toggle{margin-bottom:16px}.editor-section.is-expanded>.editor-section-toggle strong{font-size:18px}.editor-save-bar{position:fixed;z-index:15;bottom:0;left:0;right:0;border:0;border-radius:12px 12px 0 0;padding:12px 12px max(12px,env(safe-area-inset-bottom));gap:8px;flex-wrap:wrap;min-height:88px;box-shadow:0 -4px 20px #101c1d0a}.editor-save-bar>div{flex:0 0 100%}.editor-save-bar strong{font-size:12px;line-height:17px}.editor-save-bar p{display:none}.editor-save-bar>.button{min-width:0;flex:1;min-height:40px;padding:8px 12px;font-size:14px}.editor-save-bar>.primary{flex:2;min-width:0}.editor-shortcuts{display:none}.editor-latest dl>div{grid-template-columns:1fr;gap:4px}.editor-custom-field{grid-template-columns:1fr}.editor-custom-field>.button{grid-column:auto}.editor-confirm{padding:20px}}

@media(min-width:768px){.editor-heading{margin-bottom:0;min-height:40px;line-height:40px}.editor-heading h1{line-height:40px}.editor-breadcrumb{line-height:18px}.garage-editor>.editor-layout{margin-top:0}.garage-editor{gap:16px}.editor-heading{margin-top:0}}

/* Atlas latest-version summary: six groups, with complete populated values. */
.editor-latest-view{display:flex;flex-direction:column;gap:16px;min-width:0}
.editor-latest-view>h1{font-size:26px;line-height:36px}
.editor-latest-view>p{font-size:14px;line-height:20px}
.editor-latest-summary{min-height:430px;gap:16px}
.editor-latest-summary h2{font-size:22px;line-height:31px}
.editor-latest-summary dl{display:flex;flex-direction:column;gap:16px;font-size:14px;line-height:20px}
.editor-latest-summary dl>div{grid-template-columns:190px minmax(0,1fr);gap:16px;min-height:36px;padding:0}
.editor-latest-summary dt{font-family:AtlasEditorMedium,Inter,system-ui,sans-serif;font-weight:500}
.editor-latest-actions{gap:12px;min-height:44px;margin-top:0;align-items:flex-start}
.editor-latest-actions>.button{min-width:220px;min-height:40px;padding:8px 24px;font-size:14px}
.editor-save-bar[data-status=conflict]>.primary{min-width:256px}
:root[data-theme=dark] .editor-save-bar[data-status=conflict]{background:var(--sun);color:var(--on-warning)}
:root[data-theme=dark] .editor-save-bar[data-status=conflict] strong,:root[data-theme=dark] .editor-save-bar[data-status=conflict] p{color:var(--on-warning)}
@media(max-width:767px){.editor-latest-summary{min-height:0;padding:20px}.editor-latest-summary dl>div{grid-template-columns:minmax(0,1fr);gap:4px}.editor-latest-actions>.button{min-width:0;flex:1;padding:8px 12px}.editor-save-bar[data-status=conflict]>.primary{min-width:0}}
