/* e-Rocks desktop palette/type, matched to erocks3.css and brand/styles.css. */
:root{--brand:#B91E08;--nav:#CA2802;--hot:#D92D00;--ink:#15161A;--muted:#424242;--paper:#F6F7F8;--line:#E4EAEA;--border:#C2C2C2;--good:#23752a;font-family:Helvetica,Arial,sans-serif;color:var(--ink);background:#fff;font-size:14px;line-height:1.4}

*{box-sizing:border-box}
body{margin:0}
button,input,select{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{opacity:.45;cursor:default}
a{color:var(--brand)}
[hidden]{display:none!important}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.site-header{background:var(--paper);border-bottom:1px solid #c8cece}
.header-inner{max-width:1400px;margin:auto;min-height:90px;padding:18px 32px;display:flex;align-items:center;gap:30px}
.wordmark{font-size:36px;font-weight:700;letter-spacing:-2px;text-decoration:none;color:var(--ink)}
.wordmark span{color:var(--brand)}
.product-name{border-left:1px solid var(--border);padding-left:26px;font-size:11px;letter-spacing:1.2px;color:var(--muted)}
.product-name span{display:block;color:var(--ink);font-size:17px;font-weight:700;letter-spacing:.5px;margin-top:2px}
.api-link{margin-left:auto;font-size:12px;text-decoration:none}
.section-bar{background:linear-gradient(var(--nav),var(--hot));border-top:1px solid #f53c23;color:#fff}
.section-bar>div{max-width:1400px;margin:auto;padding:10px 32px;font-size:13px;font-weight:700}
.section-bar span{font-weight:400;border-left:1px solid #ffffff66;margin-left:20px;padding-left:20px;color:#fff}
main{max-width:1400px;margin:auto;padding:25px 32px 38px}
.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}
.breadcrumb{font-size:11px;color:#777;margin:0 0 12px}
h1{font-size:30px;line-height:1.1;letter-spacing:-.025em;margin:0 0 11px}
.page-heading p:last-child{color:var(--muted);font-size:14px;margin:0}
.version{font-size:10px;font-weight:700;color:#666;border:1px solid var(--border);padding:4px 7px;letter-spacing:.6px}
.workspace{border:1px solid var(--border);border-radius:3px;overflow:hidden}
.account-login{border:1px solid var(--border);padding:20px;margin-bottom:20px;background:var(--paper)}
.account-login__form{display:flex;align-items:end;gap:16px;flex-wrap:wrap}
.account-login__form h2{font-size:18px;margin:0;flex:1 0 100%}
.account-login__field{display:flex;flex-direction:column;gap:5px;flex:1 1 180px;max-width:320px}
.account-login__field input{min-width:0;width:100%;min-height:44px;border:1px solid var(--border);padding:8px;font-size:16px;background:white}
.account-login button{min-height:44px}
.account-login__status{margin:12px 0 0}
.account-login__status:empty{display:none}
.account-login>.secondary{margin-top:12px}
.workflow{display:flex;background:var(--paper);border-bottom:1px solid var(--line);padding:14px 20px;gap:32px;font-size:12px;color:var(--muted)}
.workflow span{display:flex;align-items:center;gap:8px}
.workflow b{display:grid;place-items:center;background:#fff;border:1px solid var(--border);width:21px;height:21px;font-size:11px;color:var(--brand)}
.batch-settings{display:flex;align-items:center;gap:24px;padding:20px;border-bottom:1px solid var(--line)}
.batch-settings label{font-size:11px;display:block;color:#666;margin-bottom:4px}
select{height:35px;border:1px solid var(--border);border-radius:3px;padding:6px 28px 6px 10px;background:white;color:var(--ink)}
.setting-note{font-size:12px}
.setting-note b{display:block;font-weight:700}
.setting-note span{font-size:11px;color:#666;display:block;margin-top:4px}
.primary,.secondary{border-radius:3px;font-size:12px;font-weight:700;min-height:38px;padding:9px 16px;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.primary{background:linear-gradient(var(--nav),var(--hot));border:1px solid #b42608;border-top-color:#f53c23;color:#fff}
.primary:hover:not(:disabled){background:var(--brand)}
.secondary{background:linear-gradient(#fff,#f6f7f8);border:1px solid #d2d2d2;color:var(--ink)}
#choose{margin-left:auto}
.dropzone{margin:20px;min-height:210px;border:1px dashed #bfc5c5;background:#fafbfb;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;text-align:center;padding:24px;transition:background .15s}
.dropzone.dragover,.dropzone:hover{background:#fcf2ef;border-color:var(--brand)}
.dropzone svg{width:42px;height:42px;color:#888;margin-bottom:12px}
.dropzone h2{font-size:18px;margin:0 0 7px}
.dropzone p{font-size:13px;color:#555;margin:0 0 14px}
.dropzone small{font-size:11px;color:#666}
.review-bar{padding:12px 20px;display:flex;align-items:center;gap:20px;background:#fafbfb;border-bottom:1px solid var(--line);font-size:12px}
.review-bar label{margin-left:auto;color:#555;display:flex;gap:6px;align-items:center}
.text-button{border:0;padding:5px 0;background:none;color:var(--brand);font-size:12px;text-decoration:underline;text-underline-offset:3px}
.photo-row{display:grid;grid-template-columns:246px 1fr;gap:26px;padding:22px 20px;border-bottom:1px solid var(--line);position:relative}
.photo-row:last-child{border-bottom:0}
.photo-column{min-width:0}
.photo-stage{background-color:#f1f2f2;background-image:conic-gradient(#e2e5e5 25%,transparent 0 50%,#e2e5e5 0 75%,transparent 0);background-size:18px 18px;min-height:196px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);padding:10px}
.photo-stage canvas{display:block;max-width:100%;height:auto;touch-action:none;cursor:crosshair}
.photo-stage.result canvas{cursor:default}
.photo-stage:has(.photo-rotation-handle){position:relative}
.photo-rotation-handle{position:absolute;width:34px;height:34px;min-height:34px;padding:0;display:grid;place-items:center;font-size:24px;line-height:1;border:1px solid var(--brand);border-radius:3px;background:#fff;color:var(--brand);touch-action:none;cursor:grab;z-index:2}
.photo-adjustments{display:flex;flex-wrap:wrap;gap:16px;padding-top:14px;margin-top:12px;border-top:1px solid var(--line);max-width:700px}
.adjustment-controls{flex:1;min-width:220px;display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.adjustment-control{display:flex;align-items:center;flex-wrap:wrap;gap:7px;width:100%}
.adjustment-control label{display:flex;align-items:center;flex:1;gap:8px;font-size:12px;min-width:200px}
.adjustment-control input[type=range]{width:150px;max-width:100%;accent-color:var(--brand);height:32px;flex:1;min-width:70px}
.adjustment-value{font-size:11px;min-width:46px;white-space:nowrap;text-align:right}
.adjustment-control button,.photo-brightness-all{font-size:11px;padding:6px 8px;min-height:32px}
.photo-brightness-down,.photo-brightness-up{min-width:32px;font-size:18px!important}
.adjustment-hint{flex-basis:100%;font-size:11px;color:#666;line-height:1.5;margin:0}
.adjustment-detail{margin:0;width:160px;max-width:100%;flex-shrink:0}
.adjustment-preview{width:160px;max-width:100%;height:auto;border:1px solid var(--line);display:block}
.adjustment-detail figcaption{font-size:10px;line-height:1.4;color:#666;margin-top:5px}
.macro-editor .photo-adjustments{margin-top:16px;max-width:100%;font-size:16px}
.macro-editor .photo-adjustments label{font-size:15px}
.macro-editor .photo-adjustments button{min-width:44px;min-height:44px;font-size:13px}
.macro-editor .adjustment-hint{font-size:13px}
.macro-editor .photo-rotation-handle{width:44px;height:44px;font-size:28px}
.photo-under{display:flex;justify-content:space-between;align-items:center;margin-top:8px;min-height:24px;gap:10px}
.photo-under span{font-size:10px;color:#666}
.photo-under button{font-size:11px}
.photo-info{min-width:0}
.file-heading{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-bottom:5px}
.file-heading h2{font-size:14px;margin:0;word-break:break-word}
.remove-photo{border:0;background:none;color:#666;padding:3px 5px;font-size:20px;line-height:1}
.photo-status{font-size:11px;color:#666;margin:0 0 17px;min-height:16px}
.photo-status.error{color:var(--brand)}
.photo-status.done{color:var(--good)}
.view-picker{display:flex;flex-wrap:wrap;gap:9px}
.view-option{width:58px;text-align:center}
.view-button{height:46px;width:46px;display:inline-grid;place-items:center;background:#fff;border:1px solid #c2c2c2;border-radius:3px;color:#555;transition:background .1s,border-color .1s}
.view-button svg{width:29px;height:29px;--facet:#fff}
.view-button:hover:not(:disabled){background:#fbeeea;border-color:var(--brand);color:var(--brand)}
.view-button[aria-checked=true]{background:var(--brand);border-color:var(--brand);color:white}
.view-button[aria-checked=true] svg{--facet:#B91E08}
.view-option>span{font-size:10px;display:block;margin-top:5px;white-space:nowrap}
.view-caption{font-size:12px;color:var(--muted);margin:17px 0 10px;min-height:34px;max-width:590px}
.focus-tools{font-size:11px;color:#666}
.focus-tools summary{cursor:pointer;color:var(--brand);width:fit-content;padding:4px 0}
.focus-tools p{font-size:11px;color:#666;line-height:1.5}
.region-fields{display:flex;gap:9px;align-items:end;flex-wrap:wrap}
.region-fields label{font-size:10px}
.region-fields input{display:block;width:63px;border:1px solid var(--border);border-radius:2px;padding:5px;color:var(--ink);font-size:12px}
.region-fields button{font-size:11px;padding:6px 8px}
.warning{font-size:11px;color:#8c5b00;margin:8px 0 0}
.photo-download{margin-top:14px;text-decoration:none}
.batch-actions{background:var(--paper);border-top:1px solid var(--line);padding:20px;display:flex;align-items:center;gap:12px}
.batch-actions>div{margin-right:auto}
.batch-actions strong{font-size:13px}
.batch-actions p{font-size:11px;color:#666;margin:4px 0 0}
.token-wrap{display:flex;align-items:center;gap:10px;padding:12px 20px;font-size:12px}
.token-wrap input{border:1px solid var(--border);padding:6px}
#status{padding:12px 20px;margin:0;border-top:1px solid var(--line);font-size:11px;color:#666}
#status.error{color:var(--brand);background:#fff5f2}
.legend{padding-top:30px}
.legend h2{font-size:17px;margin:0 0 18px}
.view-guide{display:grid;grid-template-columns:repeat(8,1fr);gap:18px}
.guide-item svg{height:28px;width:28px;color:#555;margin-bottom:6px}
.guide-item h3{font-size:12px;margin:0 0 5px}
.guide-item p{font-size:11px;color:#666;margin:0;line-height:1.55}
.footnote{font-size:11px;color:#777;margin:24px 0 0;max-width:920px;line-height:1.6}
footer{border-top:1px solid #c8cece;background:var(--paper);padding:20px max(32px,calc((100vw - 1336px)/2));display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#666}
@media(max-width:900px){.photo-row{grid-template-columns:210px 1fr;gap:18px}
.view-picker{gap:5px}
.view-option{width:50px}
.view-guide{grid-template-columns:repeat(4,1fr)}
.setting-note span{max-width:280px}
.workflow{gap:18px}
.view-caption{min-height:0}
.review-bar{gap:12px}
}
@media(max-width:640px){.header-inner{padding:16px;min-height:76px;gap:18px}
.wordmark{font-size:29px}
.product-name{font-size:9px;padding-left:18px}
.product-name span{font-size:13px}
.api-link{display:none}
.section-bar>div{padding:9px 16px;font-size:12px}
.section-bar span{margin-left:12px;padding-left:12px}
main{padding:20px 14px 28px}
.page-heading{margin-bottom:20px}
.version{display:none}
h1{font-size:27px}
.page-heading p:last-child{font-size:12px}
.workflow{padding:12px;gap:12px;justify-content:space-between}
.workflow span{font-size:10px;max-width:95px;align-items:flex-start;gap:5px}
.workflow b{flex-shrink:0;width:18px;height:18px}
.batch-settings{padding:14px;flex-wrap:wrap;gap:14px}
.setting-note{order:3;flex-basis:100%;font-size:11px}
.setting-note span{max-width:none}
.dropzone{margin:14px;padding:20px 12px;min-height:210px}
.dropzone h2{font-size:16px}
.dropzone p{font-size:12px}
.review-bar{flex-wrap:wrap;padding:12px 14px;gap:8px 16px}
.review-bar label{margin-left:0}
.review-bar strong{flex-basis:100%}
.photo-row{grid-template-columns:1fr;padding:18px 14px;gap:14px}
.photo-stage{min-height:190px}
.photo-stage canvas{max-height:none}
.photo-under{margin-top:5px}
.file-heading h2{font-size:13px}
.photo-status{margin-bottom:12px}
.view-picker{gap:0;justify-content:space-between;flex-wrap:nowrap}
.view-option{width:43px}
.view-button{width:39px;height:39px}
.view-button svg{height:25px;width:25px}
.view-option>span{font-size:9px}
.view-caption{font-size:11px;margin:13px 0 8px}
.batch-actions{flex-wrap:wrap;padding:16px 14px}
.batch-actions>div{flex-basis:100%;margin:0 0 5px}
.batch-actions>button{flex:1}
.view-guide{grid-template-columns:repeat(2,1fr);gap:20px}
.guide-item{display:grid;grid-template-columns:34px 1fr;gap:0 6px}
.guide-item svg{grid-row:span 2}
.guide-item p{grid-column:2}
.legend h2{font-size:16px}
footer{padding:18px 16px;flex-wrap:wrap;font-size:10px;gap:8px}
}


@media(max-width:380px){.view-option{min-width:0;flex:1}
.view-button{width:min(39px,100%)}
.view-option>span{font-size:8px}
.section-bar span{margin-left:8px;padding-left:8px}
}

.macro-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:14px;max-width:560px}.macro-tools>label{display:flex;align-items:center;gap:8px;flex:1;min-width:180px}.macro-tools input[type=range]{width:160px;accent-color:var(--brand)}.crop-arrows{display:flex;gap:4px}.crop-arrows button{padding:6px 11px;min-height:32px}.crop-hint{flex-basis:100%;font-size:11px}.crop-detail{margin:0;max-width:100%}.crop-preview{display:block;width:240px;max-width:100%;height:auto;aspect-ratio:1;border:1px solid var(--border)}.crop-detail-caption{font-size:10px;margin-top:5px;color:#666}.focus-tools .focus-basis{flex-basis:100%;margin:0}.batch-actions{flex-wrap:wrap}

@media(max-width:640px){.view-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:12px 6px}.view-option{width:auto}.view-button{width:42px;height:42px}.view-option>span{font-size:10px}}

.peaking-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex-basis:100%}
.peaking-label{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ink);min-height:44px;cursor:pointer}
.peaking-label input{width:20px;height:20px;accent-color:var(--brand)}
.peaking-tools button{min-height:44px}
.focus-tools .peaking-hint,.peaking-hint{flex-basis:100%;font-size:13px;line-height:1.5;color:var(--ink);margin:0}
.editing-macro{overflow:hidden}
.macro-editor{width:min(1050px,96vw);max-width:100vw;max-height:94dvh;padding:0;border:1px solid var(--border);border-radius:4px;background:#fff;color:var(--ink)}
.macro-editor::backdrop{background:rgba(0,0,0,.7)}
.editor-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:1}
.editor-header h2{font-size:20px;margin:0}
.editor-header button{min-height:48px;font-size:16px;padding:10px 24px}
.editor-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);align-items:start;gap:20px;padding:20px}
.macro-editor .photo-stage{min-height:0;position:sticky;top:90px}
.macro-editor .photo-stage canvas{max-height:70dvh;max-width:100%;width:auto}
.macro-editor .macro-tools{margin:0;max-width:100%;font-size:16px;color:var(--ink)}
.macro-editor .macro-tools input[type=range]{height:40px;width:min(220px,100%)}
.macro-editor .macro-tools>label{font-size:16px}
.macro-editor .crop-arrows button{min-width:48px;min-height:48px;font-size:20px}
.macro-editor .crop-hint,.macro-editor .focus-basis,.macro-editor .peaking-hint{font-size:14px;line-height:1.5;color:#252525}
.macro-editor .peaking-label,.macro-editor .peaking-tools button{font-size:15px}
.macro-editor .crop-detail-caption{font-size:14px;color:#252525}
@media(max-width:640px){
  .macro-editor{width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}
  .editor-header{padding:10px 14px}
  .editor-header h2{font-size:18px}
  .editor-body{grid-template-columns:minmax(0,1fr);padding:14px;gap:16px}
  .macro-editor .photo-stage{position:static;padding:6px}
  .macro-editor .photo-stage canvas{max-height:58dvh}
  .macro-editor .macro-tools{gap:12px;padding-bottom:16px}
  .crop-arrows button{min-width:44px;min-height:44px}
  .macro-tools input[type=range]{height:40px}
}
