.ofc-app{color:var(--os-ink,#17243b);font-family:inherit;line-height:1.8;max-width:1280px;margin:0 auto;padding:18px 0 40px}
.ofc-app *{box-sizing:border-box}.ofc-app [hidden]{display:none!important}.ofc-app :is(h1,h2,p){margin-top:0}.ofc-app h1{font-size:clamp(24px,3vw,34px);line-height:1.6;margin-bottom:10px}.ofc-app h2{font-size:14px;color:#2457d6;display:flex;gap:12px;align-items:center;margin-bottom:18px}.ofc-app h2 span{font-size:20px;color:var(--os-ink,#17243b)}
.ofc-intro{margin:8px 0 24px}.ofc-intro p{color:var(--os-muted,#637187);font-size:15px;max-width:760px}.ofc-eyebrow{font-size:12px;color:#2457d6;display:block;margin-bottom:8px;font-weight:700}.ofc-section{padding:22px;border:1px solid var(--os-line,#d9e2ef);border-radius:9px;background:var(--os-card,#fff);min-width:0}
.ofc-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.ofc-section-head p{font-size:12px;color:var(--os-muted,#637187)}
.ofc-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ofc-template{appearance:none;display:grid;grid-template-columns:82px 1fr;align-items:center;gap:14px;text-align:start;padding:10px;border:1px solid var(--os-line,#d9e2ef);border-radius:7px;color:inherit;background:var(--os-card,#fff);font:inherit;cursor:pointer;min-width:0}
.ofc-template[aria-pressed=true]{border-color:#2457d6;outline:1px solid #2457d6;background:var(--os-cream,#f6f8fc)}.ofc-template:hover{border-color:#2457d6}.ofc-template strong{display:block;font-size:14px}.ofc-template small{display:block;font-size:10px;color:var(--os-muted,#637187)}.ofc-template .ofc-template-choice{font-size:11px;margin-top:8px;color:#2457d6}
.ofc-thumb{width:82px;height:116px;position:relative;overflow:hidden;background:#fff;box-shadow:0 1px 4px #14233716;pointer-events:none;direction:ltr}.ofc-thumb .ofc-cover{transform:scale(.1033);transform-origin:top left}
.ofc-workspace{margin-top:22px;display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.5fr);gap:22px;align-items:start}.ofc-form{display:grid;gap:10px}.ofc-form label{font-size:13px;font-weight:700;display:block;margin-bottom:5px}.ofc-form :is(input:not([type=checkbox]),select,textarea){width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid var(--os-line,#d9e2ef);border-radius:5px;background:var(--os-card,#fff);color:inherit;font:inherit;font-size:14px;line-height:1.6}.ofc-form textarea{resize:vertical}.ofc-form input[type=file]{font-size:12px}
.ofc-form fieldset{border:0;border-top:1px solid var(--os-line,#d9e2ef);padding:16px 0 0;margin:8px 0;min-width:0}.ofc-form legend{font-size:14px;font-weight:700;padding:0 0 5px}.ofc-form small{font-size:11px;color:var(--os-muted,#637187);font-weight:400;display:block}.ofc-field-pair{margin-bottom:12px}.ofc-field-pair>div+div{margin-top:8px}.ofc-check{display:flex!important;align-items:center;gap:8px;min-height:44px}.ofc-form input[type=checkbox]{width:18px;height:18px;accent-color:#2457d6;flex:none}
.ofc-palettes{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 12px}.ofc-palette{display:flex;align-items:center;gap:4px;background:var(--os-card,#fff);border:1px solid var(--os-line,#d9e2ef);border-radius:5px;min-height:44px;padding:8px;cursor:pointer}.ofc-palette[aria-pressed=true]{outline:2px solid #2457d6;outline-offset:1px}.ofc-palette i{width:22px;height:22px;border-radius:50%;border:1px solid #0002}.ofc-text-button{font:inherit;background:none;border:0;color:#2457d6;min-height:44px;cursor:pointer;font-size:12px}
.ofc-preview-section{position:sticky;top:110px}.ofc-paper-tag{font-size:11px;color:var(--os-muted,#637187)}.ofc-preview-area{padding:18px;background:var(--os-cream,#f1f4f8);overflow:hidden;direction:ltr}.ofc-preview-frame{position:relative;margin:auto;box-shadow:0 2px 8px #1423371a}.ofc-preview-frame>[data-ofc-preview]{position:absolute;top:0;left:0;transform-origin:top left}
.ofc-export-actions{margin-top:18px}.ofc-primary{appearance:none;width:100%;min-height:48px;padding:10px 18px;background:#2457d6;color:#fff;border:1px solid #2457d6;border-radius:6px;font-family:inherit;font-weight:700;font-size:15px;line-height:1.8;cursor:pointer}.ofc-primary:hover{background:#1948bb}.ofc-primary:disabled{opacity:.7;cursor:wait}.ofc-export-actions p{font-size:12px;margin:8px 0 0}.ofc-print-hint,.ofc-privacy{font-size:12px!important;color:var(--os-muted,#637187);line-height:1.9;margin:12px 0 0}.ofc-app :is(button,input,textarea,select):focus-visible{outline:2px solid #2457d6;outline-offset:3px}
@media(max-width:1100px){.ofc-template{grid-template-columns:66px 1fr;gap:8px;padding:8px}.ofc-thumb{width:66px;height:94px}.ofc-thumb .ofc-cover{transform:scale(.08315)}}
@media(max-width:850px){.ofc-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.ofc-workspace{grid-template-columns:1fr}.ofc-preview-section{position:static}.ofc-section{padding:16px}.ofc-app{padding-inline:0}.ofc-section-head p{margin-bottom:12px}.ofc-form h2{margin-bottom:4px}}
@media(max-width:370px){.ofc-template{grid-template-columns:1fr;justify-items:center;text-align:center;gap:6px}.ofc-template small{font-size:9px}.ofc-template-choice{margin-top:3px!important}.ofc-preview-area{padding:8px}.ofc-section{padding:12px}}
@media print{.ofc-app .ofc-form,.ofc-app>.ofc-section,.ofc-app>.ofc-intro,.ofc-export-actions,.ofc-print-hint{display:none!important}}
