@font-face { font-family:"Delivery"; src:url("/fonts/Delivery_Lt.ttf") format("truetype"); font-style:normal; font-weight:300; font-display:swap }
@font-face { font-family:"Delivery"; src:url("/fonts/Delivery_LtIt.ttf") format("truetype"); font-style:italic; font-weight:300; font-display:swap }
@font-face { font-family:"Delivery"; src:url("/fonts/Delivery_Rg.ttf") format("truetype"); font-style:normal; font-weight:400; font-display:swap }
@font-face { font-family:"Delivery"; src:url("/fonts/Delivery_It.ttf") format("truetype"); font-style:italic; font-weight:400; font-display:swap }
@font-face { font-family:"Delivery"; src:url("/fonts/Delivery_Bd.ttf") format("truetype"); font-style:normal; font-weight:700; font-display:swap }
@font-face { font-family:"Delivery"; src:url("/fonts/Delivery_BdIt.ttf") format("truetype"); font-style:italic; font-weight:700; font-display:swap }
@font-face { font-family:"Delivery Condensed"; src:url("/fonts/Delivery_CdLt.ttf") format("truetype"); font-style:normal; font-weight:300; font-display:swap }
@font-face { font-family:"Delivery Condensed"; src:url("/fonts/Delivery_CdBlk.ttf") format("truetype"); font-style:normal; font-weight:900; font-display:swap }
:root { font:15px/1.5 "Delivery",Arial,sans-serif; color:#24272c; background:#f7f6f2; --yellow:#ffcc00; --red:#d40511; --ink:#24272c; --muted:#6d7279; --line:#e9e8e2 }
* { box-sizing:border-box }
html { scroll-behavior:smooth }
body { margin:0; min-height:100vh; background:radial-gradient(circle at 92% 7%,#fff1af 0,transparent 26%),#f7f6f2 }
button,input,select,textarea { font:inherit }
button { cursor:pointer; border:1px solid transparent; border-radius:11px; padding:10px 15px; font-weight:750; background:var(--yellow); color:var(--ink); transition:transform .18s ease,box-shadow .18s ease,background .18s ease }
button:hover { transform:translateY(-2px); box-shadow:0 6px 15px #35280019; filter:none }
button:active { transform:translateY(0) scale(.98) }
button:disabled { opacity:.45; cursor:not-allowed; transform:none; box-shadow:none }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #d4051170; outline-offset:2px }
.primary { background:var(--red); color:white; box-shadow:0 5px 14px #d4051124 }
.primary:hover { background:#b90a15 }
.quiet { background:white; border-color:#deded8 }
.danger { color:#b70b18; background:#fff0ef; border-color:#ffe0df }
.small { padding:7px 11px; font-size:12px }
.hidden { display:none !important }
.icon-sprite { position:absolute; width:0; height:0; overflow:hidden }
.ui-icon { display:block; flex:none; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round }
.section-icon .ui-icon { width:20px; height:20px }
.top { position:relative; overflow:hidden; background:linear-gradient(112deg,#ffcc00 0%,#ffd738 69%,#ffe875 100%); border-top:6px solid var(--red); border-bottom:1px solid #edbe0a; padding:0 }
.top::after { content:""; position:absolute; width:430px; height:430px; right:-170px; top:-260px; border:55px solid #fff5b27d; transform:rotate(-24deg); pointer-events:none }
.top-inner { max-width:1228px; margin:auto; padding:19px 24px 35px; position:relative; z-index:1 }
.brand-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:15px; padding-bottom:35px }
.brand { display:flex; align-items:center; gap:18px; min-height:46px }
.brand-logo { width:156px; height:auto; max-height:48px; object-fit:contain }
.brand-fallback { display:none; font-weight:1000; color:var(--red); font-style:italic; font-size:37px; letter-spacing:-.13em; padding-right:9px; line-height:1 }
.brand-divider { width:1px; height:30px; background:#d29c13 }
.brand-name { max-width:330px; font-weight:850; font-size:11px; line-height:1.25; letter-spacing:.07em; text-transform:uppercase; color:#68420b }
.top-chip { background:#ffffff99; border:1px solid #ffffffa8; border-radius:100px; padding:8px 13px; font-size:12px; font-weight:800; color:#745305 }
.header-actions { display:flex; align-items:center; gap:10px; margin-left:auto; min-width:0 }
.account-badge { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:0; max-width:260px; min-height:39px; padding:4px 5px 4px 12px; border:1px solid #f0c633; border-radius:10px; background:#ffffff8a; color:#754400 }
.account-badge strong { display:block; min-width:0; max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; line-height:1.2 }
.account-avatar { display:grid; place-items:center; flex:none; width:31px; height:31px; border-radius:50%; overflow:hidden; background:#d40511; color:white; font-weight:800; font-size:12px }
.account-avatar img { display:block; width:100%; height:100%; object-fit:cover }
.account-avatar img[hidden],.account-avatar span[hidden] { display:none }
.header-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:39px; padding:8px 12px; background:#fff9dd; border:1px solid #f0c633; border-radius:10px; color:#754400; font-weight:700; white-space:nowrap }
.header-button:hover { background:#fffdf0; transform:translateY(-1px) }
.header-button .ui-icon { width:17px; height:17px }
.eyebrow { font-size:11px; font-weight:900; letter-spacing:.17em; text-transform:uppercase; color:#aa0913 }
h1 { margin:7px 0; font-size:clamp(30px,3.6vw,47px); letter-spacing:-.02em; line-height:1.08; font-weight:900 }
.hero-subtitle { margin:0; color:#5d511f; font-weight:600; font-size:15px }
h1,h2,h3,.metric strong { font-family:"Delivery Condensed","Delivery",Arial,sans-serif }
h2 { margin:0 0 4px; font-size:20px; letter-spacing:-.01em; font-weight:900 }
p { margin:4px 0 15px; color:var(--muted) }
main { max-width:1228px; margin:0 auto 80px; padding:0 24px }
.metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:-19px 0 26px; position:relative; z-index:2 }
.metric { background:white; border:1px solid #ebe8dc; border-radius:16px; box-shadow:0 9px 28px #30210e0c; padding:15px 19px; display:flex; align-items:center; gap:12px }
.metric-icon { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:#fff4c6; color:#b00b13; font-size:19px; font-weight:900 }
.metric small { display:block; font-size:11px; color:var(--muted); font-weight:750; text-transform:uppercase; letter-spacing:.07em }
.metric strong { display:block; font-size:23px; line-height:1.1 }
.headline { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:0 0 18px }
.headline strong { font-size:13px; color:#60636b }
.grid { display:grid; grid-template-columns:minmax(0,1.48fr) minmax(300px,.86fr); gap:18px; align-items:start }
section.card { background:#fff; border:1px solid var(--line); border-radius:18px; padding:23px; box-shadow:0 8px 30px #3b32270b; min-width:0; animation:rise .45s both }
.section-head { display:flex; align-items:start; justify-content:space-between; gap:12px; margin-bottom:19px }
.section-head p { margin:0 }
.section-title { display:flex; align-items:center; gap:11px }
.section-icon { width:37px; height:37px; flex:none; display:grid; place-items:center; background:#fff3c6; border-radius:11px; color:#ac0610; font-size:18px; font-weight:900 }
.stack { display:grid; gap:18px }
.full { grid-column:1/-1 }
.bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center }
.muted { color:var(--muted); font-size:13px }
.status { display:inline-flex; gap:7px; align-items:center; padding:7px 11px; border-radius:50px; background:#fff7de; font-weight:800; font-size:12px; white-space:nowrap }
.status::before { content:""; width:8px; height:8px; border-radius:50%; background:#d78300; box-shadow:0 0 0 3px #f8e2a5 }
.status.ok { background:#e5f5e9; color:#17633d }
.status.ok::before { background:#19965b; box-shadow:0 0 0 3px #c3ecd2 }
.status.bad { background:#ffe9ea; color:#a61524 }
.status.bad::before { background:#dc2639; box-shadow:0 0 0 3px #ffd3d7 }
.group { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #f0efeb }
.group:last-child { border-bottom:0 }
.group b { display:block }
.group code { display:block; color:#80838a; font-size:11px; overflow-wrap:anywhere }
.access-summary { padding:11px 13px; border-radius:10px; background:#fff7df; color:#5b470c; font-size:12px; font-weight:750; margin:0 0 8px }
.access-user-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:14px }
.access-row { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:12px; min-width:0; padding:17px; background:#fffdf9; border:1px solid #e9e5da; border-radius:13px; box-shadow:0 5px 18px #30210e09 }
.access-admin { margin:14px 0 }
.access-person { min-width:0; flex:1 1 180px; overflow-wrap:anywhere }
.access-person b,.access-person .muted { display:block }
.access-person .muted { font-size:12px; margin-top:3px }
.access-actions { display:grid; justify-items:start; gap:10px; width:100% }
.access-actions .bar { justify-content:start }
.access-reset { width:100%; padding:11px; border-radius:10px; background:#f9f8f5 }
.access-reset input { max-width:280px }
.access-note { margin:11px 0 0; font-size:12px }
.access-search { margin:13px 0 3px; max-width:480px }
.access-layout { max-width:1100px; display:grid; gap:18px }
.access-editor { display:grid; gap:12px; width:100%; background:#f9f8f5; border:1px solid #eee9db; padding:15px; border-radius:12px }
.roles-list { display:grid; gap:9px; margin:17px 0 }
.role-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:9px; padding:12px; border:1px solid #ebe7dd; border-radius:11px; background:#fffdf7 }
.role-row strong,.role-row small { display:block }
.role-row small { color:var(--muted); margin-top:2px }
.role-editor { display:grid; gap:12px; margin-top:17px; padding-top:16px; border-top:1px solid #ebe7dd }
.role-editor h3 { margin:0; font-size:19px }
.permission-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px }
.permission-grid label { display:flex; justify-content:flex-start; align-items:center; gap:9px; min-width:0; padding:10px 12px; border:1px solid #e9e4d7; border-radius:9px; background:#fff; font-size:13px; color:#46484b; cursor:pointer }
.permission-grid label:has(input:disabled) { opacity:.7; cursor:default }
.permission-grid label span { min-width:0; line-height:1.35 }
.permission-grid input[type="checkbox"],.access-editor .switch input[type="checkbox"] { flex:0 0 16px; width:16px; min-width:16px; height:16px; margin:0; padding:0; border-radius:4px; accent-color:#d40511 }
.chat-layout { display:grid; grid-template-columns:minmax(280px,.85fr) minmax(0,1.55fr); gap:16px; align-items:start }
.chat-sidebar,.chat-thread { min-height:520px }
.chat-list { margin-top:14px; overflow-y:auto; max-height:620px }
.chat-item { display:flex; align-items:center; gap:12px; width:100%; background:#fff; text-align:left; border:0; border-bottom:1px solid #f0efeb; border-radius:9px; padding:12px 10px; box-shadow:none }
.chat-item:hover,.chat-item.active { background:#fff5d4; box-shadow:none }
.chat-item span:nth-child(2) { min-width:0 }
.chat-item b,.chat-item small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.chat-item small { color:#73777d; font-size:11px; font-weight:400 }
.chat-sidebar #chat-scope { margin:0 0 10px; padding:9px 10px; background:#fff9e7; border-radius:9px }
.chat-sidebar #reset-chats { margin:0 0 13px }
.chat-avatar { flex:none; display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:#ffedac; color:#a90d17 }
.chat-messages { display:flex; flex-direction:column; gap:10px; min-height:350px; max-height:520px; overflow-y:auto; padding:16px; border:1px solid #efead9; border-radius:13px; background:linear-gradient(135deg,#fffdf7,#f7f6f2) }
.chat-bubble { max-width:78%; align-self:flex-start; background:#fff; border:1px solid #e9e5d9; border-radius:13px 13px 13px 3px; padding:9px 13px; overflow-wrap:anywhere }
.chat-bubble.mine { align-self:flex-end; background:#fff0b7; border-color:#f3dd8a; border-radius:13px 13px 3px 13px }
.chat-sender { display:block; font-size:11px; font-weight:800; color:#a00611 }
.chat-bubble p { white-space:pre-wrap; margin:4px 0; color:#23272b }
.chat-photo { margin:7px 0 5px; max-width:360px }
.chat-photo-link { display:block; width:100%; border-radius:9px; overflow:hidden; background:#f1f0ec }
.chat-photo-link[hidden],.chat-media-error[hidden] { display:none }
.chat-photo img { display:block; max-width:100%; width:auto; max-height:360px; object-fit:contain }
.chat-photo figcaption { margin-top:6px; white-space:pre-wrap; font-size:13px; color:#23272b }
.chat-photo .chat-media-error { font-size:12px; color:#6d7279 }
.chat-bubble time { display:block; text-align:right; color:#73777d; font-size:10px }
.welcome-dialog { width:min(560px,calc(100vw - 28px)); border:0; border-radius:20px; padding:0; box-shadow:0 30px 85px #2b241b55; animation:modal-in .25s both }
.welcome-dialog::backdrop { background:#1e222ca8; backdrop-filter:blur(3px) }
.welcome-body { padding:28px; background:linear-gradient(130deg,#fff9e4,#fff 52%) }
.welcome-body h2 { margin:8px 0 11px; font-size:clamp(26px,4vw,34px) }
.welcome-body p { font-size:14px; line-height:1.55 }
.welcome-contacts { display:grid; gap:10px; margin:20px 0 }
.welcome-contacts>div { display:grid; gap:1px; padding:12px 14px; border:1px solid #ece8db; border-left:4px solid var(--red); border-radius:9px; background:#fff }
.welcome-contacts span { color:var(--muted); font-size:12px }
.welcome-contacts a { color:#a00410; overflow-wrap:anywhere; font-size:13px }
.welcome-body>button { margin-top:4px; min-width:140px }
.chat-reply { display:grid; grid-template-columns:1fr auto; align-items:end; gap:11px; margin-top:15px }
.chat-reply textarea { resize:vertical; min-height:70px }
.chat-thread > .muted { margin-top:12px }
.tour-shade { position:fixed; inset:0; z-index:25; background:#1e222c94; animation:fade-in .2s both }
.app-nav.tour-navigation { z-index:32 }
.app-nav a.tour-focus { background:#d40511; color:#fff; box-shadow:0 0 0 4px #fff,0 0 0 7px #ffcc00; position:relative }
.tour-dialog { position:fixed; bottom:22px; right:22px; top:auto; left:auto; margin:0; width:min(430px,calc(100vw - 32px)); border:0; border-radius:18px; padding:0; z-index:40; box-shadow:0 25px 75px #17171755; animation:modal-in .2s both }
.tour-dialog .tour-art { height:112px;display:flex;align-items:center;justify-content:center;position:relative;background:#ffcc00;color:#d40511 }
.tour-dialog .tour-art .ui-icon { width:56px;height:56px;stroke-width:1.5 }
.tour-dialog .tour-art span { position:absolute;right:19px;bottom:13px;font-size:11px;font-weight:800;letter-spacing:.12em;color:#68420b }
.tour-dialog .tour-dots { display:flex;gap:5px;margin:-5px 0 20px }
.tour-dialog .tour-dots i { width:18px;height:5px;border-radius:8px;background:#e6e5df }
.tour-dialog .tour-dots i.active { width:30px;background:#d40511 }
.tour-body { padding:24px }
.tour-body h2 { font-size:27px; margin:6px 0 9px }
.tour-body p { min-height:72px; margin:0 0 20px; line-height:1.55 }
.tour-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap }
.tour-actions #tour-exit { margin-right:auto }
.tour-progress { font-size:12px; color:#6d7279 }
.app-nav { position:sticky; top:0; z-index:12; background:#fffdf6f5; border-bottom:1px solid #ede4c7; backdrop-filter:blur(14px) }
.app-nav-inner { max-width:1228px; margin:auto; padding:10px 24px; display:flex; align-items:center; gap:7px; overflow-x:auto; scrollbar-width:thin }
.app-nav a { display:inline-flex; align-items:center; gap:8px; flex:none; padding:10px 15px; border-radius:10px; text-decoration:none; color:#53565b; font-size:13px; font-weight:800; white-space:nowrap; transition:background .18s,color .18s,transform .18s }
.app-nav a:hover { background:#fff1bb; color:#a00813; transform:translateY(-1px) }
.app-nav a.active { background:#d40511; color:white; box-shadow:0 6px 16px #d4051124 }
.app-nav a:focus-visible,.action-link:focus-visible,.text-link:focus-visible { outline:3px solid #d4051170; outline-offset:2px }
.app-nav a span { font-size:17px; line-height:1 }
.page-headline { margin:25px 0 20px; align-items:center }
.page-headline h2 { margin:3px 0 1px; font-size:clamp(26px,3.4vw,37px) }
.page-headline strong { display:block; font-weight:600; font-size:12px }
.app-page { animation:rise .3s both; min-height:45vh }
.app-page .metrics { margin:0 0 18px }
.page-intro { font-size:14px; margin:0 0 19px }
.page-narrow { max-width:880px }
.page-action-row { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:0 0 18px }
.page-action-row p { margin:0; font-size:14px }
.page-action-row button { flex:none }
.routine-layout { display:grid; gap:18px; max-width:1040px }
.settings-grid { display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:18px; align-items:start }
.settings-grid.settings-single { grid-template-columns:minmax(0,660px) }
.overview-hero { min-height:290px; position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr); align-items:center; padding:34px 40px; border-radius:23px; background:linear-gradient(115deg,#fff1b9,#ffda40 58%,#ffc400); border:1px solid #efc32e; box-shadow:0 16px 35px #5c47111d }
.overview-hero::before { content:""; position:absolute; inset:0; background:repeating-linear-gradient(115deg,transparent 0 35px,#ffffff24 35px 40px); opacity:.65; pointer-events:none }
.overview-copy { position:relative; z-index:1 }
.overview-copy h2 { font-size:clamp(28px,3.2vw,40px); line-height:1.12; letter-spacing:-.015em; margin:8px 0 13px }
.overview-copy h2 em { color:var(--red); font-style:normal }
.overview-copy p { max-width:490px; color:#66500d; margin-bottom:21px }
.overview-art { position:relative; min-height:240px; display:grid; place-items:center }
.overview-orbit { width:205px; height:205px; border:20px solid #ffffff70; border-radius:50%; box-shadow:0 0 0 30px #ffffff30; transform:rotate(-15deg) scaleX(1.06) }
.overview-symbol { position:absolute; display:grid; place-items:center; width:98px; height:98px; background:var(--red); border-radius:26px; color:#fff; font-size:57px; font-weight:800; box-shadow:0 18px 28px #b6001942; transform:rotate(-10deg) }
.overview-symbol .ui-icon { width:54px; height:54px; stroke-width:1.6 }
.overview-stripes { position:absolute; left:3%; bottom:24%; display:grid; gap:9px; transform:rotate(-13deg) }
.overview-stripes i { display:block; width:100px; height:7px; border-radius:10px; background:#d40511a6 }
.overview-stripes i:nth-child(2) { width:76px }.overview-stripes i:nth-child(3) { width:52px }
.action-link { display:inline-flex; align-items:center; justify-content:center; gap:10px; border-radius:10px; padding:11px 16px; text-decoration:none; font-size:13px; font-weight:850; transition:transform .18s,box-shadow .18s }
.action-link:hover { transform:translateY(-2px); box-shadow:0 8px 18px #3c210a24 }
.action-link.primary { background:var(--red); color:#fff }.action-link.quiet { color:#493c21; background:#fff9e1; border:1px solid #e7c24a }
.overview-grid { display:grid; grid-template-columns:1fr 1.3fr; gap:18px; margin:18px 0 }
.overview-panel { min-height:180px; display:flex; flex-direction:column; align-items:flex-start }
.overview-panel .text-link { margin-top:auto; padding-top:13px }
.text-link { color:#b70b18; font-size:13px; font-weight:850; text-decoration:none }
.text-link:hover { text-decoration:underline }
.recent-logs { width:100% }
.recent-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:9px 0; border-top:1px solid #f0efeb; font-size:12px }
.recent-row div { min-width:0 }.recent-row strong,.recent-row span { display:block }.recent-row div span { color:var(--muted) }
.log-pagination { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; margin-top:16px }
.pager { gap:6px }
.page-numbers { display:inline-flex; align-items:center; flex-wrap:wrap; gap:5px }
.page-number { min-width:34px; min-height:34px; padding:6px 8px }
.page-number[aria-current="page"] { background:var(--red); border-color:var(--red); color:#fff; box-shadow:0 4px 10px #d4051126 }
.page-ellipsis { padding:0 2px; color:var(--muted) }
.field { display:grid; gap:6px; font-size:12px; font-weight:800; color:#4c5057 }
input,select,textarea { width:100%; border:1px solid #dadbd8; border-radius:10px; padding:10px 11px; color:#24272c; background:white; transition:border-color .18s ease,box-shadow .18s ease }
input:hover,select:hover,textarea:hover { border-color:#babcb8 }
input:focus,select:focus,textarea:focus { border-color:#c60914; box-shadow:0 0 0 3px #d4051112 }
textarea { min-height:95px; resize:vertical }
.form-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px }
.group-form { grid-template-columns:1fr 1.5fr; margin-top:16px }
.wide { grid-column:1/-1 }
.two { grid-column:span 2 }
.form-section { padding:16px; border:1px solid #eee9d9; border-radius:13px; background:#fffdf7 }
.days,.checks { display:flex; gap:7px; flex-wrap:wrap }
.days label,.checks label { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; border:1px solid #e6e4de; padding:8px 10px; border-radius:9px; cursor:pointer; background:#fff; transition:background .2s,border-color .2s }
.days label:has(input:checked),.checks label:has(input:checked) { background:#fff1b6; border-color:#e5be26 }
.days input,.checks input,.switch input { width:auto; margin:0; accent-color:var(--red) }
.switch { display:flex; gap:9px; align-items:center; font-size:13px; font-weight:750; padding:12px; border-radius:10px; background:#f9f9f6 }
.time-rows { display:grid; gap:8px; margin:11px 0 }
.time-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(110px,.6fr) auto; gap:8px; align-items:end }
.time-row .field { min-width:0 }
.jobs { display:grid; gap:11px }
.job { border:1px solid #e7e6df; border-left:4px solid var(--yellow); border-radius:12px; padding:15px; transition:border-color .2s,box-shadow .2s; background:#fff }
.job:hover { border-color:#f0c835; box-shadow:0 6px 19px #3329160b }
.jobhead { display:flex; justify-content:space-between; gap:10px; align-items:start }
.job-heading { flex:1; min-width:0 }
.job-heading h3 { overflow-wrap:anywhere }
.job-toggle { display:inline-flex; align-items:center; gap:8px; flex:none; min-height:44px; padding:7px 10px; border:1px solid var(--line); border-radius:10px; background:#f7f7f4; color:#585d65; font-size:12px; box-shadow:none }
.job-toggle[aria-checked="true"] { border-color:#edc348; background:#fff9dd; color:#754400 }
.job-toggle-track { display:block; width:38px; height:22px; padding:3px; border-radius:20px; background:#8a8f96; transition:background .2s }
.job-toggle-track > span { display:block; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #0002; transition:transform .2s }
.job-toggle[aria-checked="true"] .job-toggle-track { background:var(--red) }
.job-toggle[aria-checked="true"] .job-toggle-track > span { transform:translateX(16px) }
.job-toggle-label { min-width:55px; text-align:left }
.job-action,.icon-action { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:36px }
.job-action .ui-icon,.icon-action .ui-icon { width:16px; height:16px }
@media(max-width:570px) { .jobhead { flex-wrap:wrap }.job-heading { flex-basis:100% }.job-toggle { margin-left:auto } }
.job h3 { margin:0 0 5px; font-size:16px; letter-spacing:-.018em }
.pill { display:inline-block; border-radius:6px; background:#f2f2ef; padding:3px 7px; font-size:11px; font-weight:800; vertical-align:middle }
.pill.on { background:#e4f5e8; color:#126737 }
.job .bar { margin-top:13px }
.job-meta { display:flex; flex-wrap:wrap; gap:7px; margin-top:9px }
.meta-chip { background:#f7f7f4; padding:5px 8px; border-radius:7px; color:#64686e; font-size:12px; font-weight:650 }
.upload { margin-top:12px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; border-top:1px solid #f2f0e9; padding-top:12px }
.upload input { width:min(100%,270px); padding:7px }
.preview { width:100%; max-height:170px; object-fit:contain; background:#f9f9f7; border-radius:9px; margin-top:11px }
.pdf-pages { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:10px; margin-top:10px }
.pdf-pages figure { margin:0; border:1px solid #eee; border-radius:8px; padding:8px; background:#fafafa }
.pdf-pages img { width:100%; max-height:210px; object-fit:contain }
.pdf-pages figcaption { font-size:12px; color:#555 }
table { width:100%; border-collapse:collapse; text-align:left; font-size:13px }
th { color:#777; font-size:11px; text-transform:uppercase; letter-spacing:.04em; background:#faf9f6 }
td,th { padding:12px 10px; border-bottom:1px solid #eee; vertical-align:top }
.tablewrap { overflow-x:auto }
.tag { font-size:11px; font-weight:800; border-radius:20px; padding:4px 8px; white-space:nowrap }
.tag.enviado { background:#e4f5e8; color:#166737 }
.tag.falhou,.tag.incerto,.tag.parcial { background:#fff0d7; color:#814e00 }
.tag.enviando { background:#e9efff; color:#284aa3 }
.note { border-left:3px solid var(--red); padding:6px 0 6px 11px; color:#6a6a6a; font-size:12px }
.qr { max-width:230px; display:block; margin:14px 0; border:1px solid #eee; border-radius:9px }
.toast { position:fixed; bottom:24px; right:24px; max-width:min(440px,calc(100vw - 32px)); background:#25282d; color:white; padding:13px 17px; border-radius:12px; box-shadow:0 15px 38px #0003; z-index:20; border-left:4px solid var(--yellow); animation:toast-in .35s both }
.toast.error { border-color:var(--red) }
.toast.out { animation:toast-out .24s both }
.confirm-dialog { border:0; border-radius:18px; padding:0; width:min(440px,calc(100vw - 32px)); box-shadow:0 28px 90px #1c182b48; color:var(--ink); animation:modal-in .25s both }
.confirm-dialog::backdrop { background:#1e222c9c; backdrop-filter:blur(3px); animation:fade-in .2s both }
.confirm-dialog.closing { animation:modal-out .18s both }
.dialog-body { padding:25px }
.dialog-mark { display:grid; place-items:center; width:44px; height:44px; border-radius:13px; background:#fff2c5; color:var(--red); font-size:23px; margin-bottom:15px }
.dialog-body h2 { font-size:22px; margin:0 0 7px }
.dialog-body p { margin:0 0 23px }
.dialog-actions { display:flex; justify-content:flex-end; gap:9px }
@keyframes rise { from { opacity:0; transform:translateY(10px) } to { opacity:1; transform:translateY(0) } }
@keyframes modal-in { from { opacity:0; transform:translateY(12px) scale(.96) } to { opacity:1; transform:translateY(0) scale(1) } }
@keyframes modal-out { to { opacity:0; transform:translateY(10px) scale(.97) } }
@keyframes fade-in { from { opacity:0 } to { opacity:1 } }
@keyframes toast-in { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:translateY(0) } }
@keyframes toast-out { to { opacity:0; transform:translateY(12px) } }
@media(max-width:850px) { .grid,.settings-grid { grid-template-columns:1fr }.full { grid-column:auto }.overview-grid { grid-template-columns:1fr 1fr } }
@media(max-width:850px) { .chat-layout { grid-template-columns:1fr }.chat-sidebar,.chat-thread { min-height:0 }.chat-list { max-height:280px } }
@media(max-width:750px) { .access-user-list { grid-template-columns:1fr } }
@media(max-width:570px) { .chat-reply { grid-template-columns:1fr }.permission-grid { grid-template-columns:1fr }.tour-dialog { bottom:12px; right:12px } }
@media(max-width:570px) { .top-inner { padding:17px 16px 32px }.brand-row { padding-bottom:28px }.brand-logo { width:122px }.brand-name { display:none }.header-actions .top-chip { display:none } h1 { font-size:32px } main { padding:0 14px }.metrics { grid-template-columns:1fr 1fr }.metric:last-child { grid-column:1/-1 }.form-grid { grid-template-columns:1fr 1fr }.group-form { grid-template-columns:1fr }.wide,.two { grid-column:1/-1 } section.card { padding:17px }.time-row { grid-template-columns:1fr 1fr }.time-row button { grid-column:1/-1 }.headline { align-items:start }.headline button { white-space:nowrap }.access-actions { justify-items:start; width:100% }.access-actions .bar { justify-content:start }.app-nav-inner { padding:8px 12px; gap:4px }.app-nav a { padding:9px 11px; font-size:12px }.page-action-row { align-items:stretch; flex-direction:column }.page-action-row button { align-self:flex-start }.overview-hero { padding:26px; grid-template-columns:1fr }.overview-art { min-height:130px; max-height:130px; overflow:hidden }.overview-orbit { width:130px; height:130px; border-width:13px }.overview-symbol { width:65px; height:65px; font-size:35px; border-radius:18px }.overview-grid { grid-template-columns:1fr }.page-headline { gap:8px }.page-headline button { padding:8px 10px; font-size:12px } }
@media(max-width:570px) { .header-actions { width:100%; justify-content:flex-end; gap:7px }.account-badge { max-width:calc(100vw - 128px); margin-right:auto }.account-badge strong { max-width:30vw; font-size:12px }.header-button { width:39px; height:39px; padding:0 }.header-button span { display:none } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important } }

/* Identidade de carregamento compartilhada: SVG leve, sem GIF ou biblioteca. */
.dhl-loading-screen{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 62%,#ffeb9b 0,transparent 34%),#f7f6f2;color:#24272c;text-align:center}
.dhl-loading-screen[hidden]{display:none}
.dhl-loading-content{width:min(320px,100%)}
.dhl-loading-content strong{display:block;font:900 27px/1.12 'Delivery Condensed',Delivery,Arial,sans-serif;letter-spacing:-.02em}
.dhl-loading-content p{margin:8px 0 22px;color:#6d7279;font-size:14px}
.dhl-route-art{display:block;width:min(300px,100%);height:auto;margin:0 auto 17px;overflow:visible}
.dhl-route-line{animation:dhl-road 1.5s linear infinite}
.dhl-route-van{transform-box:fill-box;transform-origin:center;animation:dhl-drive 2.4s ease-in-out infinite}
.dhl-route-box{transform-box:fill-box;transform-origin:center;animation:dhl-parcel 2.4s ease-in-out infinite}
.dhl-route-box.last{animation-delay:.35s}
.dhl-loading-progress{width:min(220px,85%);height:4px;margin:0 auto;overflow:hidden;background:#ebdfb0;border-radius:8px}
.dhl-loading-progress i{display:block;width:40%;height:100%;background:#d40511;border-radius:8px;animation:dhl-progress 1.8s ease-in-out infinite}
@keyframes dhl-drive{50%{transform:translate(5px,-4px)}}
@keyframes dhl-road{to{stroke-dashoffset:-44}}
@keyframes dhl-parcel{50%{transform:translateY(-6px)}}
@keyframes dhl-progress{from{transform:translateX(-105%)}to{transform:translateX(355%)}}
@keyframes dhl-enter{from{opacity:.5;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.content>.page-intro,.main>:first-child,.app-page:not([hidden])>.page-intro{animation:dhl-enter .3s ease-out both}
.dhl-login-scene{width:min(460px,100%);margin-top:16px;opacity:.95}
.dhl-login-scene .dhl-route-art{width:100%;margin:0}
.dhl-login-scene .dhl-route-line,.dhl-login-scene .dhl-route-van,.dhl-login-scene .dhl-route-box{animation:none;transform:none}
.sso-action{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;text-align:center}
.sso-action .microsoft-mark{display:grid;grid-template-columns:repeat(2,7px);gap:2px;flex:none}
.sso-action .microsoft-mark i{display:block;width:7px;height:7px;background:#f25022}
.sso-action .microsoft-mark i:nth-child(2){background:#7fba00}
.sso-action .microsoft-mark i:nth-child(3){background:#00a4ef}
.sso-action .microsoft-mark i:nth-child(4){background:#ffb900}
button.button.microsoft.sso-action .sso-label,button.sso-action .sso-label{margin-left:0;min-width:0;flex:0 1 auto}
.sso-action.is-busy .microsoft-mark{display:none}
.sso-action.is-busy::before{content:'';width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:dhl-spin .8s linear infinite}
@keyframes dhl-spin{to{transform:rotate(360deg)}}
@media(max-width:570px){.dhl-login-scene{width:min(320px,100%);margin-top:8px}}
@media(prefers-reduced-motion:reduce){.dhl-route-line,.dhl-route-van,.dhl-route-box,.dhl-loading-progress i,.sso-action.is-busy::before,.login-intro .desk-illustration,.login-intro .network-illustration,.content>.page-intro,.main>:first-child,.app-page:not([hidden])>.page-intro{animation:none!important}.dhl-loading-progress i{width:100%;transform:none}}
.refresh-error{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 18px;padding:12px 15px;border:1px solid #edc4ae;border-left:4px solid #d40511;border-radius:10px;background:#fff9f3;color:#762521;font-size:13px}
.refresh-error .quiet{flex:none}
/* Configuração dos avisos: controles compactos e legíveis no celular. */
#whatsapp-settings-form input[type=checkbox]{width:18px;height:18px;margin:0 7px 0 0;padding:0;vertical-align:middle;accent-color:var(--red)}
#wa-recipients{display:grid;gap:8px;margin-bottom:12px}
#wa-recipients .bar{padding:9px 12px;border:1px solid #e5dfcf;border-radius:10px;justify-content:space-between}
#wa-recipients span{overflow-wrap:anywhere;min-width:0}
#wa-recipient-choices{margin-bottom:12px}
#whatsapp-settings-form .bar input{flex:1 1 180px;min-width:0}
#wa-monitor-state{margin-top:16px;overflow-wrap:anywhere}
[id^=wa-steps-]{margin-top:8px;font-size:13px;overflow-wrap:anywhere}

#whatsapp-settings-form{grid-template-columns:repeat(2,minmax(0,1fr))}
/* UI/UX review: consistent keyboard access, compact filters and readable feedback. */
.skip-link{position:fixed;top:8px;left:12px;z-index:1000;padding:12px 16px;border-radius:8px;background:#24272c;color:#fff;transform:translateY(-180%)}
.skip-link:focus{transform:none}
:focus-visible{outline:3px solid #245ea5!important;outline-offset:3px}
.routine-filters{display:grid;grid-template-columns:minmax(160px,1fr) minmax(110px,150px) auto;gap:12px;align-items:end;margin:18px 0 8px}
.routine-filters input,.routine-filters select,.routine-filters button{min-height:44px}
.data-freshness{font-size:12px;color:#59616b;margin:-8px 0 20px;line-height:1.5}
.empty-state{padding:24px;border:1px dashed #bbbdbf;border-radius:12px;background:#fafaf7;color:#515860}
.job[hidden],.empty-state[hidden]{display:none!important}
.job h3,.job-meta,.refresh-error,.data-freshness{overflow-wrap:anywhere}
#editor{scroll-margin-top:92px}
#job-results{margin:8px 0 14px}
.job-action{min-height:40px}
@media(max-width:600px){.routine-filters{grid-template-columns:minmax(0,1fr) minmax(100px,.6fr)}.routine-filters button{grid-column:1/-1}.job-action{min-height:44px}.data-freshness{margin-top:0}.refresh-error{align-items:stretch;flex-direction:column}}
@media(max-width:570px){.top-inner{padding:12px 16px 18px}.top .brand-row{gap:10px;padding-bottom:12px}.top .eyebrow{font-size:9px}.top h1{font-size:27px}.hero-subtitle{font-size:13px}.top .header-button{width:44px;min-height:44px}.page-headline{margin-top:18px}.page-action-row{gap:10px}.data-freshness{margin-bottom:14px}}
/* Group announcements share the conversation permissions and existing visual language. */
.broadcast-card{margin-bottom:20px;min-width:0}
.broadcast-grid{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr);gap:24px;margin-top:20px}
.broadcast-grid>div{min-width:0}
.broadcast-groups{max-height:290px;overflow:auto;border:1px solid var(--border,#dedede);border-radius:12px;padding:6px}
.broadcast-group{display:flex;align-items:center;gap:10px;padding:10px 8px;min-height:44px;cursor:pointer;overflow-wrap:anywhere}
.broadcast-group[hidden]{display:none}
.broadcast-group input{width:18px;height:18px;flex:0 0 auto;accent-color:#d40511}
.broadcast-group:has(input:checked){background:#fff5cc;border-radius:7px}
.broadcast-group:focus-within{outline:2px solid #a60610;outline-offset:-2px;border-radius:7px}
.broadcast-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;border:1px solid #e2e5e9;border-radius:12px;padding:14px;background:#f7f8fa;font-size:14px;line-height:1.6}
.broadcast-message h3{margin:12px 0 8px;font-size:14px}
.broadcast-actions{margin-top:20px}
.broadcast-history{margin-top:20px;border-top:1px solid #e5e7eb;padding-top:16px}
.broadcast-history summary,.broadcast-result summary{cursor:pointer;min-height:32px;overflow-wrap:anywhere}
.broadcast-result{padding:14px 0;border-bottom:1px solid #e5e7eb}
.broadcast-result summary{font-size:14px;line-height:1.6}
.broadcast-target-results{padding:0;list-style:none}
.broadcast-target-results li{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:10px 0;border-bottom:1px solid #eef0f2;font-size:14px;overflow-wrap:anywhere}
.broadcast-target-results small{grid-column:1/-1;color:#596273}
.broadcast-state{font-size:12px;align-self:start;padding:3px 8px;border-radius:8px;background:#eef3f0;color:#235d42}
.broadcast-state-error{background:#fff0ed;color:#a02720}
.bi-health{font-size:13px;padding:12px;border:1px solid #dfe5eb;border-radius:10px;background:#f7f9fb;line-height:1.6}
.bi-health-error{border-color:#f1c1ba;background:#fff3f0;color:#922620}
#dialog-message{white-space:pre-wrap;max-height:55dvh;overflow:auto;overflow-wrap:anywhere}
@media(max-width:700px){.broadcast-grid{grid-template-columns:1fr;gap:18px}.broadcast-card>.section-head{align-items:flex-start;flex-wrap:wrap;gap:14px}.broadcast-groups{max-height:220px}.broadcast-actions>*{width:100%}.broadcast-target-results li{grid-template-columns:1fr}.broadcast-target-results small{grid-column:1}}
/* Settings: consistent hierarchy, explicit dependencies, separate operational areas. */
#page-configuracoes .settings-grid{grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:20px}
.settings-section,.settings-form{display:grid;gap:18px;min-width:0}
#whatsapp-settings-form.settings-form{grid-template-columns:minmax(0,1fr)}
#page-configuracoes .settings-card>.section-head{flex-wrap:wrap}
#page-configuracoes .settings-card>.section-head>div{flex:1;min-width:0}
#page-configuracoes .settings-card h2{font-size:20px;line-height:1.25;margin:0 0 6px}
#page-configuracoes .settings-card h3,.settings-dependent legend{font-size:16px;line-height:1.4;font-weight:800}
#page-configuracoes .settings-card p{font-size:14px;line-height:1.6}
#page-configuracoes .settings-card .muted,.settings-dependency{font-size:13px;line-height:1.55;font-weight:400;color:#626975}
#page-configuracoes .field{font-size:14px;line-height:1.5;font-weight:700;gap:7px}
#page-configuracoes input:not([type=checkbox]),#page-configuracoes select,#page-configuracoes button{font-size:14px}
.settings-toggle{display:grid;grid-template-columns:20px minmax(0,1fr);gap:12px;align-items:start;padding:13px 0;cursor:pointer;font-size:14px;color:#30353e;font-weight:400}
.settings-toggle input[type=checkbox]{width:18px;height:18px;margin:3px 0 0;accent-color:#d40511}
.settings-toggle strong{display:block;font-size:14px;font-weight:750;line-height:1.5}
.settings-toggle small{display:block;font-size:13px;font-weight:400;color:#626975;line-height:1.55;margin-top:4px}
.settings-dependent{border:0;border-left:3px solid #eee5d4;padding:8px 0 0 14px;margin:8px 0 12px;min-width:0}
.settings-dependent legend{padding:0 0 3px;color:#474d56}
.settings-dependent:disabled{opacity:.55}
.settings-dependent:disabled .settings-toggle{cursor:default}
.settings-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:10px 0}
.settings-number{max-width:390px;margin:10px 0}
.settings-explanation{border:1px solid #ebe5d7;background:#fffaf0;border-radius:11px;padding:14px 15px;margin-top:16px;color:#5b5140}
.settings-explanation>strong{font-size:14px;font-weight:750}
#page-configuracoes .settings-explanation p{font-size:13px;margin:7px 0 0;line-height:1.65;color:#655d4e}
.settings-dependency{margin:4px 0 10px}
.settings-state{display:inline-flex;flex:none;background:#f1f2f4;border:1px solid #e6e7e9;color:#68707c;font-size:12px;font-weight:750;border-radius:8px;padding:5px 8px;white-space:nowrap}
.settings-state.is-on{background:#edf8f0;border-color:#c9e7d3;color:#22613c}
.settings-recipients{display:grid;gap:8px;margin:14px 0}
.settings-recipient{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e6e8eb;border-radius:10px;padding:12px}
.settings-recipient>span{min-width:0;overflow-wrap:anywhere}
.settings-recipient strong{display:block;font-size:14px}
.settings-recipient small{display:block;font-size:13px;color:#68707c;margin-top:3px}
.settings-empty{border:1px dashed #dcdfe4;border-radius:10px;padding:14px;background:#f9fafb}
.settings-manual-recipient{margin:16px 0;padding-top:14px;border-top:1px solid #eee}
.settings-manual-recipient summary{cursor:pointer;font-size:14px;font-weight:700;line-height:1.6}
.settings-savebar{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:17px 20px;background:#fff;border:1px solid #e0d5af;border-radius:13px;box-shadow:0 5px 16px #30210e08}
.settings-savebar strong{font-size:14px}
.settings-savebar p{font-size:13px;line-height:1.5;margin:4px 0 0}
.settings-unsaved{color:#9c5b00}
.settings-history{margin-top:18px}
.settings-history summary{cursor:pointer;font-size:16px;font-weight:800;line-height:1.5}
.settings-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.settings-history-grid h3{margin:10px 0 8px}
.settings-history-item{padding:12px 0;border-bottom:1px solid #eceef0;overflow-wrap:anywhere}
.settings-history-item strong{font-size:14px}
#page-configuracoes .settings-history-item p{font-size:13px;line-height:1.6;margin:5px 0 0}
.settings-notice-state{display:block;font-size:12px;color:#68707c;margin-top:5px}
#page-configuracoes .settings-secondary .role-editor h3{font-size:16px}
#page-configuracoes .settings-grid.settings-single{grid-template-columns:minmax(0,660px)}
#page-configuracoes .settings-grid.settings-single .settings-primary{display:none}
@media(max-width:900px){#page-configuracoes .settings-grid{grid-template-columns:minmax(0,1fr)}.settings-history-grid{grid-template-columns:1fr}.settings-secondary{min-width:0}}
@media(max-width:500px){.settings-fields{grid-template-columns:1fr}.settings-savebar{align-items:stretch;flex-direction:column;padding:15px}.settings-savebar button{width:100%}.settings-recipient{align-items:flex-start}.settings-dependent{padding-left:11px}.settings-toggle{gap:9px}}
/* List navigation and compact mobile history. */
details.card{background:#fff;border:1px solid #e9e8e2;border-radius:16px;padding:23px;min-width:0}
#jobs>[hidden],#chat-new-messages[hidden]{display:none!important}
#chat-new-messages{justify-self:center;margin:8px auto;display:block}
@media(max-width:600px){
 .delivery-history{overflow:visible}.delivery-history table,.delivery-history tbody,.delivery-history tr,.delivery-history td{display:block;width:100%}
 .delivery-history thead{display:none}.delivery-history tr{border:1px solid #e2e1dc;border-radius:12px;margin:12px 0;padding:12px}
 .delivery-history td{border:0;padding:6px 0;overflow-wrap:anywhere}
 .delivery-history td::before{display:block;font-size:12px;font-weight:700;color:#63676c}
 .delivery-history td:nth-child(1)::before{content:"Momento"}.delivery-history td:nth-child(2)::before{content:"Rotina / grupo"}
 .delivery-history td:nth-child(3)::before{content:"Status"}.delivery-history td:nth-child(4)::before{content:"Detalhe"}
}


/* Identidade do grupo e configuração da descrição. */
.group-profile-row{gap:14px;padding:12px 0;align-items:center}
.group-profile-label{display:flex;align-items:center;gap:12px;min-width:0}
.group-profile-label b{overflow-wrap:anywhere}
.group-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;flex:none;border:1px solid #edd98c}
.group-avatar-fallback{display:grid;place-items:center;background:#ffedac;color:#6e4c00;font-size:15px;font-weight:800}
.group-sync-state{display:inline-block;font-size:12px;margin-top:3px;color:#615f5a}
.group-sync-synced{color:#176c44}.group-sync-error{color:#a90a19}.group-sync-pending{color:#785700}
.group-profile-dialog{border:1px solid #dedbd3;border-radius:18px;width:min(640px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:hidden;padding:0;color:#272522;background:#fff}
.group-profile-dialog::backdrop{background:#16151288}
#group-profile-form{display:flex;flex-direction:column;max-height:inherit}
.group-profile-head,.group-profile-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;background:#faf8f2;flex:none}
.group-profile-head{border-bottom:1px solid #eee9df}
.group-profile-head h2,.group-profile-head p{margin:3px 0;overflow-wrap:anywhere}
.group-profile-head p{color:#605d56}
.group-profile-actions{justify-content:flex-end;border-top:1px solid #eee9df}
.group-profile-body{padding:16px 22px;display:grid;gap:14px;overflow:auto;overscroll-behavior:contain;min-height:0}
.group-profile-body p,.group-profile-body h3{margin:0}
.gp-current{display:flex;gap:6px;flex-wrap:wrap;font-size:.875rem}
.gp-setting,.gp-note,.gp-sync-problem,.gp-preview-box{border:1px solid #e8e3d7;border-radius:10px;padding:12px}
.gp-setting{background:#fffbeb}
.gp-setting>p{margin:4px 0 0 28px}
.gp-option{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:6px 0;cursor:pointer}
.gp-option input{width:18px;height:18px;margin:2px 0 0;flex:none;accent-color:#8f6100}
.gp-option span{min-width:0;overflow-wrap:anywhere}
.gp-option small{display:block;color:#605d56;margin-top:3px;font-size:.875rem}
.gp-note,.gp-preview-box{background:#f8f7f3}
.gp-enabled-fields{display:grid;gap:14px;min-width:0}
.group-profile-body [hidden]{display:none}
.gp-enabled-fields fieldset{border:1px solid #e8e3d7;border-radius:10px;min-width:0;margin:0;padding:8px 12px 10px}
.gp-enabled-fields legend{padding:0 5px;font-weight:700}
.gp-selection .gp-option+.gp-option{border-top:1px solid #eee9df}
.gp-preview-box h3{font-size:1rem;margin-bottom:4px}
#gp-preview{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.45;background:#fff;padding:10px;border-radius:8px;margin:8px 0 0}
#gp-preview-message{margin-top:8px}
.gp-sync-problem{background:#fff7f6;border-color:#f2d8d6;color:#931524}
.gp-sync-problem button{margin-top:8px}
#gp-error{color:#a90a19}
@media(max-width:540px){
 .group-profile-row{align-items:flex-start;flex-direction:column}
 .group-profile-buttons{padding-left:60px;flex-wrap:wrap}
 .group-profile-head,.group-profile-actions,.group-profile-body{padding:12px 14px}
 .group-profile-actions button,#gp-close{min-height:44px}
}
