:root{--bg:#f5f6f8;--surface:#fff;--text:#1c2430;--muted:#5d6b7c;--border:#dde2e8;--primary:#0f6e8c;--primary-text:#fff;--danger:#b42318;--ok:#067647;--radius:10px;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{background:var(--bg);margin:0}a{color:var(--primary)}h1{margin:0 0 .25rem;font-size:1.5rem}h2{margin:0 0 .75rem;font-size:1.1rem}.muted{color:var(--muted)}.shell{grid-template-columns:220px 1fr;min-height:100vh;display:grid}.sidebar{color:#e6eef2;background:#12303d;flex-direction:column;gap:1.25rem;height:100vh;padding:1.25rem 1rem;display:flex;position:sticky;top:0;overflow-y:auto}.brand{letter-spacing:.02em;font-size:1.25rem;font-weight:700}.who{color:#b9cbd4;font-size:.85rem}.nav{flex-direction:column;gap:.15rem;display:flex}.nav a{color:#e6eef2;border-radius:6px;padding:.45rem .6rem;text-decoration:none}.nav a:hover{background:#ffffff14}.nav-title{text-transform:uppercase;color:#8fb0bf;margin:.75rem 0 .25rem .6rem;font-size:.75rem}.sidebar .logout{margin-top:auto}.sidebar .logout button{color:#e6eef2;background:0 0;border:1px solid #3a5a68;width:100%}.content{width:100%;max-width:1100px;padding:1.75rem 2rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:1.25rem;padding:1.25rem}.grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;display:grid}form fieldset{border:0;margin:0;padding:0;display:contents}.form-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:end;gap:.75rem;display:grid}label{color:var(--muted);flex-direction:column;gap:.3rem;font-size:.9rem;display:flex}input,select{font:inherit;border:1px solid var(--border);color:var(--text);background:#fff;border-radius:6px;padding:.5rem .6rem}button{font:inherit;border:1px solid var(--primary);background:var(--primary);color:var(--primary-text);cursor:pointer;border-radius:6px;padding:.5rem .9rem}button.secondary{color:var(--primary);background:#fff}button.danger{color:var(--danger);border-color:var(--danger);background:#fff}button:disabled{opacity:.6;cursor:wait}.inline{align-items:center;gap:.4rem;display:inline-flex}.msg{margin:.6rem 0 0;font-size:.9rem}.msg-error{color:var(--danger)}.msg-ok{color:var(--ok)}table{border-collapse:collapse;width:100%;font-size:.92rem}th,td{text-align:left;border-bottom:1px solid var(--border);vertical-align:middle;padding:.55rem .5rem}th{color:var(--muted);font-weight:600}.badge{color:var(--primary);background:#e8f3f6;border-radius:999px;padding:.1rem .5rem;font-size:.78rem;display:inline-block}.badge.off{color:var(--danger);background:#f3e8e7}.login-wrap{place-items:center;min-height:100vh;padding:1rem;display:grid}.login-card{width:100%;max-width:360px}.login-card form{flex-direction:column;gap:.8rem;display:flex}@media (max-width:760px){.shell{grid-template-columns:1fr}.sidebar{height:auto;padding:1rem;position:static}.content{padding:1rem}.table-wrap{overflow-x:auto}}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem;display:flex}.btn-link{background:var(--primary);color:#fff;border:1px solid var(--primary);border-radius:6px;padding:.5rem .9rem;text-decoration:none;display:inline-block}.btn-link.secondary{color:var(--primary);background:#fff}.actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}textarea{font:inherit;border:1px solid var(--border);resize:vertical;min-height:4.5rem;color:var(--text);border-radius:6px;padding:.5rem .6rem}.full{grid-column:1/-1}.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.totals{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem;display:grid}.stat{border:1px solid var(--border);background:#f7f9fb;border-radius:8px;padding:.75rem}.stat .label{color:var(--muted);font-size:.8rem}.stat .value{font-variant-numeric:tabular-nums;font-size:1.25rem;font-weight:600}.stat.private{background:#fff8eb;border-color:#f2d9a6}.item-row{border-bottom:1px dashed var(--border);grid-template-columns:130px 1fr 150px 140px 40px;align-items:start;gap:.5rem;padding:.5rem 0;display:grid}.item-row textarea{min-height:2.4rem}.seg{border:1px solid var(--border);border-radius:6px;display:inline-flex;overflow:hidden}.seg button{color:var(--text);background:#fff;border:0;border-radius:0}.seg button.on{background:var(--primary);color:#fff}.pre{white-space:pre-wrap}@media (max-width:760px){.item-row{grid-template-columns:1fr 1fr}.item-row textarea{grid-column:1/-1}}.shell>*,.content{min-width:0}.table-wrap{overflow-x:auto}.grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}.form-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}.totals{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}input,select,textarea{max-width:100%}@media (max-width:760px){.item-row{grid-template-columns:1fr 1fr}.item-row>*{min-width:0}.page-head .actions{width:100%}}.actions>*{min-width:0;max-width:100%}input[type=file]{width:100%}.pos-frame-wrap{border:1px solid var(--border);border-radius:var(--radius);background:#fff;overflow:hidden}.portal-stage{position:relative}.portal-layer{pointer-events:none;z-index:1;position:absolute;inset:0}.portal-box{pointer-events:auto;border:1px solid var(--border);border-radius:var(--radius);background:#fff;position:absolute;overflow:hidden}.portal-iframe{border:0;width:100%;height:100%;display:block}.portal-slot{background:0 0;border-color:#0000;height:calc(100vh - 210px);min-height:560px}.pos-frame{border:0;width:100%;height:calc(100vh - 210px);min-height:560px;display:block}.portal-tabs{flex-wrap:wrap;gap:.35rem;margin-bottom:.6rem;display:flex}.portal-tabs button{color:var(--text);border:1px solid var(--border);background:#fff}.portal-tabs button.on{background:var(--primary);color:#fff;border-color:var(--primary)}.portal-bar{justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.5rem;font-size:.85rem;display:flex}.portal-bar .muted{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.portal-outside{text-align:center;padding:2.5rem 1rem}button.link{color:var(--primary);cursor:pointer;font:inherit;background:0 0;border:0;padding:0;text-decoration:underline}.badge.warn{color:#9a5b00;background:#fff4e0}.followup{padding-top:.9rem;padding-bottom:.9rem}.followup-head{flex-wrap:wrap;justify-content:space-between;gap:1rem;display:flex}.followup-msg{margin-top:.6rem}.followup-msg textarea{width:100%;min-height:4.2rem;font:inherit}.followup details{margin-top:.5rem}.followup summary{cursor:pointer;color:var(--primary);font-size:.88rem}.followup-extra{gap:.75rem;margin-top:.6rem;display:grid}.followup-alert{color:inherit;background:#fffaf0;border-color:#f0c36d;flex-wrap:wrap;justify-content:space-between;gap:1rem;text-decoration:none;display:flex}.followup-alert span{color:var(--primary)}.social-previews{grid-template-columns:1fr 1fr;align-items:start;gap:1rem;display:grid}@media (max-width:900px){.social-previews{grid-template-columns:1fr}}.social-preview{flex-direction:column;gap:.75rem;display:flex}.social-preview .btn-link{align-self:flex-start}.social-frame{background:#e8edf2;border-radius:10px;position:relative;overflow:hidden}.social-frame.feed{aspect-ratio:1080/1350}.social-frame.historia{aspect-ratio:1080/1920;width:auto;height:640px;max-height:640px;margin:0 auto}.social-frame img{object-fit:contain;width:100%;height:100%;display:block}.social-loading{color:var(--primary);background:#fff9;justify-content:center;align-items:center;font-weight:600;display:flex;position:absolute;inset:0}.social-photos{flex-wrap:wrap;gap:.5rem;margin-top:.3rem;display:flex}.social-photos button{cursor:pointer;background:0 0;border:3px solid #0000;border-radius:8px;width:92px;height:64px;padding:0;overflow:hidden}.social-photos button.on{border-color:var(--primary)}.social-photos img{object-fit:cover;width:100%;height:100%;display:block}.brandkit{grid-template-columns:1fr 240px;align-items:start;gap:1.25rem;display:grid}@media (max-width:800px){.brandkit{grid-template-columns:1fr}}.brandkit input[type=color]{cursor:pointer;border-radius:8px;width:100%;height:40px;padding:2px}.brandkit-preview{border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:0 2px 10px #0000000f}.colorchoice{flex-direction:column;gap:.4rem;display:flex}.swatches{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.swatches>button:not(.swatch-none),.swatch-other{width:30px;height:30px;box-shadow:0 0 0 1px var(--border);cursor:pointer;border:2px solid #fff;border-radius:999px;padding:0}.swatches>button.on,.swatch-other.on{box-shadow:0 0 0 3px var(--text)}.swatch-other{color:#fff;background:conic-gradient(#e11d2e,#f9a825,#2f8f4e,#00acc1,#1f4fd8,#8e24aa,#e11d2e);place-items:center;font-weight:700;display:grid;position:relative;overflow:hidden}.swatch-other input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.swatch-other span{text-shadow:0 1px 3px #0009;pointer-events:none}.swatch-none{color:var(--muted);border:1px solid var(--border);background:#fff;border-radius:999px;padding:4px 10px;font-size:.8rem}.swatch-none.on{border-color:var(--text);color:var(--text)}.frames{flex-wrap:wrap;gap:1rem;display:flex}.frame{flex-direction:column;gap:.4rem;width:170px;display:flex}.frame img{aspect-ratio:1080/1350;object-fit:cover;border:1px solid var(--border);border-radius:8px;width:170px}
