:root{--ink:#1c2228;--muted:#76808a;--paper:#f4f5f2;--line:#e1e5df;--white:#fff;--lime:#d2f29a;--green:#1b6748;--soft:#eef7df;--red:#ac3e3e;--amber:#946415;--radius:18px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.sidebar{background:#1b2127;color:#aeb8c0;padding:32px 21px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{font-size:23px;letter-spacing:1px;font-weight:800;color:#fff}.brand span{color:var(--lime);font-weight:500}.brand-sub{font-size:10px;letter-spacing:2px;margin:5px 0 37px;color:#81909a;text-transform:uppercase}.nav-label{font-size:10px;letter-spacing:1.8px;color:#71808c;margin:25px 12px 8px}.nav a{display:flex;align-items:center;gap:12px;border-radius:10px;padding:12px 13px;margin:4px 0;color:#bac3cc;font-size:13px}.nav a:hover{background:#2d353d;color:#fff}.nav a.active{background:var(--lime);color:#23301e;font-weight:650}.nav-icon{width:20px;font-size:16px;text-align:center}.count{margin-left:auto;background:#39454e;color:#fff;border-radius:5px;font-size:10px;padding:2px 6px}.active .count{background:#b4d680;color:#28351b}.sidebar-footer{margin-top:auto;border-top:1px solid #333e47;padding:22px 9px 0}.avatar{display:inline-grid;place-items:center;border-radius:10px;background:#354049;color:#dae4eb;width:34px;height:34px;font-weight:650;margin-right:9px}.side-account{display:flex;align-items:center;font-size:12px;color:#fff}.side-account small{display:block;color:#7e8c97;font-size:10px}.logout{background:none;color:#8f9ca8;border:0;padding:12px 0;font-size:12px}.workspace{padding:0 40px 48px;max-width:1650px;width:100%;margin:auto}.topbar{height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);margin-bottom:34px}.tag{display:inline-flex;align-items:center;gap:7px;font-size:10px;border:1px solid var(--line);padding:5px 9px;border-radius:99px;background:#fff;color:#5c6862;white-space:nowrap}.dot{height:6px;width:6px;border-radius:50%;background:#77a43f}.page-heading{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:1.9px;text-transform:uppercase;color:var(--muted);margin:0 0 9px}h1{font-size:31px;line-height:1.16;letter-spacing:-.8px;font-weight:650;margin:0 0 12px}h2{font-size:17px;letter-spacing:-.3px;line-height:1.3;margin:0}h3{font-size:14px;margin:0 0 12px}p{margin:8px 0 14px}.sub{color:var(--muted);font-size:13px;max-width:740px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 16px;background:var(--ink);color:#fff;border:1px solid var(--ink);border-radius:9px;font-size:12px;font-weight:600;white-space:nowrap}.btn:hover{filter:brightness(1.13)}.btn.primary{background:var(--lime);border-color:var(--lime);color:#243519}.btn.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.btn.danger{background:#fff1f0;color:var(--red);border-color:#efc9c6}.btn.small{padding:5px 11px;min-height:32px;font-size:11px}.notice{background:var(--soft);border:1px solid #d0e6ba;border-radius:10px;padding:13px 17px;color:#42652e;margin-bottom:22px}.warning{background:#fff6e7;border:1px solid #eddfc5;border-radius:12px;padding:16px 19px;color:#7d632f;font-size:12px;margin-bottom:20px}.warning b{display:block;margin-bottom:3px}.error{background:#fceeee;border:1px solid #f1d2d2;color:#873e3e;border-radius:10px;padding:13px 17px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 25px}.stat{border:1px solid var(--line);background:#fff;border-radius:var(--radius);padding:20px 22px;position:relative;overflow:hidden}.stat.highlight{background:#e5efda}.stat-label{font-size:11px;color:#6f7a71}.stat-number{font-size:38px;font-weight:650;line-height:1.1;letter-spacing:-1px;margin:15px 0 10px}.stat-foot{font-size:10px;color:#89928b}.stat-glyph{position:absolute;right:20px;top:18px;color:#a8b3a3;font-size:17px}.grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:23px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--white);margin-bottom:23px;overflow:hidden}.panel-head{padding:21px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #edf0eb}.panel-body{padding:24px}.panel-foot{padding:13px 24px;border-top:1px solid #edf0eb;font-size:11px;color:var(--muted)}.muted{color:var(--muted)}.tiny{font-size:11px}.strong{font-weight:600}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;font-size:10px;color:var(--muted);font-weight:500;padding:12px 22px;background:#fbfcf9;letter-spacing:.3px;white-space:nowrap}td{border-top:1px solid #f0f2ee;padding:16px 22px;vertical-align:middle}tr:hover td{background:#fbfcf9}td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}td a{font-weight:600}td a:hover{text-decoration:underline}.badge{display:inline-flex;align-items:center;padding:4px 8px;line-height:1.2;border-radius:6px;background:#edf1f3;color:#6b7780;font-size:10px;white-space:nowrap}.badge.active,.badge.sent{background:#e9f5de;color:#547736}.badge.pending,.badge.queued,.badge.needs_review{background:#fff2d9;color:#947124}.badge.blocked,.badge.failed,.badge.rejected{background:#fcebea;color:#a54a46}.empty{padding:35px 26px;text-align:center;color:var(--muted);font-size:12px}.module{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid #eef0eb}.module:last-child{border:0}.module-symbol{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#f0f3eb;font-size:17px;color:#6d7c67}.module-name{font-size:12px;font-weight:600}.module small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.module .badge{margin-left:auto}.status-card{padding:17px;border-radius:12px;border:1px solid #e8ecdf;background:#f9fbf5;font-size:12px;line-height:1.7}.status-card .status-value{display:block;font-size:13px;font-weight:600;margin-top:7px}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:17px 22px;border-bottom:1px solid var(--line)}.toolbar input{flex:1;min-width:180px}.toolbar select{max-width:190px}input,select,textarea{background:#fff;border:1px solid #dce2d8;border-radius:8px;color:var(--ink);padding:10px 12px;width:100%;font-size:12px}textarea{min-height:90px;resize:vertical}input:focus,textarea:focus,select:focus{outline:2px solid #b9d598;outline-offset:0;border-color:#b9d598}label.field{display:block;font-size:11px;font-weight:550;margin-bottom:18px}label.field>input,label.field>select,label.field>textarea{margin-top:7px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.field.full{grid-column:1/-1}.check{display:flex;gap:11px;align-items:flex-start;font-size:12px;margin:13px 0}.check input{width:17px;height:17px;margin:1px 0 0;accent-color:#547731}.check small{font-weight:400;display:block;color:var(--muted);margin-top:3px;font-size:11px}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:21px}.space{height:20px}.data-list{display:grid;grid-template-columns:170px 1fr;font-size:12px;gap:12px 16px}.data-list dt{color:var(--muted)}.data-list dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.mono,code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}code{font-size:12px}.secret{background:#1c252e;color:#d4eeaa;border-radius:12px;padding:24px;word-break:break-all;letter-spacing:1px;font-family:ui-monospace,monospace;font-size:21px;user-select:all}.split{display:grid;grid-template-columns:1fr 1fr;gap:20px}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:25px;background:#1b2127}.login-card{background:var(--paper);border-radius:22px;width:100%;max-width:430px;padding:39px}.login-brand{font-size:25px;letter-spacing:1px;font-weight:750;margin-bottom:25px}.login-brand span{color:#728d4a}.login-card h1{font-size:25px;margin-bottom:10px}.login-card .btn{width:100%}.login-card .sub{margin-bottom:25px}.login-foot{font-size:10px;color:#83908b;margin-top:22px}.account-width{max-width:700px}.link{font-size:11px;font-weight:550;color:#536945}.text-wrap{white-space:pre-wrap;overflow-wrap:anywhere}.member-pill{display:inline-flex;background:#f0f2ee;border-radius:6px;padding:3px 9px;font-size:10px}.help-list{padding-left:20px;font-size:12px;color:#67736a}.help-list li{margin:10px 0}details summary{cursor:pointer;font-size:12px;font-weight:600}details[open] summary{margin-bottom:15px}.inline-form{display:flex;gap:8px;align-items:center}.inline-form input{min-width:130px}.hint{font-size:11px;color:var(--muted);margin-top:8px}.topbar-right{display:flex;align-items:center;gap:12px}.status-line{display:flex;align-items:center;gap:7px;font-size:11px;color:#7b897c}.footer-note{color:#969e96;font-size:10px;margin-top:25px}.login-alert{margin-bottom:20px}.single-center{max-width:850px;margin:50px auto;padding:25px}.declared{border-left:3px solid #d8bd82;padding:13px 16px;background:#fff9ed;border-radius:0 8px 8px 0;font-size:12px;margin:0 0 20px}.declared p{margin:3px 0}.tabs{display:flex;gap:8px;margin:20px 0}.tabs a{padding:7px 13px;border:1px solid var(--line);border-radius:7px;font-size:11px;background:#fff}.tabs a.active{background:var(--ink);border-color:var(--ink);color:#fff}
@media(min-width:1550px){.workspace{padding-left:55px;padding-right:55px}}@media(max-width:1150px){.workspace{padding:0 25px 35px}.shell{grid-template-columns:215px minmax(0,1fr)}.sidebar{padding:25px 16px}.stats{gap:10px}.stat{padding:18px 15px}.stat-number{font-size:32px}.grid{grid-template-columns:1fr}.split{grid-template-columns:1fr}.topbar{height:75px}}@media(max-width:720px){.shell{display:block}.sidebar{position:static;height:auto;padding:18px 18px 12px}.brand{font-size:19px}.brand-sub,.nav-label,.sidebar-footer{display:none}.nav{display:flex;gap:5px;overflow:auto;margin-top:10px}.nav a{white-space:nowrap;font-size:11px;padding:8px 9px}.nav-icon{display:none}.workspace{padding:0 17px 28px}.topbar{height:59px;margin-bottom:24px}.topbar-right>span:first-child{display:none}.stats{grid-template-columns:1fr 1fr}.page-heading{display:block}h1{font-size:26px}.page-heading>.btn{margin-top:12px}.fields{grid-template-columns:1fr}.data-list{grid-template-columns:1fr;gap:4px}.data-list dd{margin-bottom:13px}.panel-head,.panel-body{padding:19px}.toolbar{padding:14px}th,td{padding:13px 16px}.nav a.active .count{display:none}.login-card{padding:28px}}
.grid>*{min-width:0}.workspace{min-width:0}@media(max-width:1150px){.grid{grid-template-columns:minmax(0,1fr)}}

/* v0.2 navigation and published service material */
.permission-group{border:1px solid var(--line,#dde3da);border-radius:12px;padding:14px 16px;margin:20px 0;min-width:0}.permission-group legend{font-weight:700;font-size:13px;padding:0 8px}.permission-group .check{margin:10px 0}.rules-preview{background:#f1f5f3;border-radius:12px;padding:20px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.tree-children{margin:0 0 16px 23px;padding:2px 0 2px 26px;border-left:2px solid #d9e5d1}.tree-children>div{padding:10px 0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.tree-children small{display:block;color:#7b8792;font-size:11px;margin-top:3px}.tree-profile{border-top:1px solid #e7ece5;padding:16px 4px;font-size:14px;font-weight:600}.tree-branch .module{align-items:flex-start}.tree-branch .badge{flex-shrink:0}.menu-tree .module-name{min-width:0;overflow-wrap:anywhere}

/* HOFMANN HUB v0.3 · routing controls */
.row-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:12px}.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.route-card{margin:14px 0}.topic-card{margin:12px 0;border-color:#edf0eb;border-radius:12px}.topic-card>.panel-body{padding:18px}.notification-row{border-radius:12px;margin:12px 0}.notification-row .panel-body{padding:18px}.badge.not_configured{background:#fcebea;color:#a54a46}.badge.sending{background:#eaf0f8;color:#496a8e}.route-card>summary{padding:18px 24px}.route-card>summary .badge{margin-left:8px}.topic-card>summary{padding:14px 16px}

/* v0.4: long navigation, archived items and readonly event history. */
.sidebar{overflow-y:auto}.badge.closed{background:#edf0f4;color:#657080}.badge.suppressed,.badge.cancelled{background:#f0f1f3;color:#6c7680}.badge.not_configured{background:#fff2d9;color:#947124}.notification-row details{margin:12px 0}.notification-row .row-between{display:block}.tabs{flex-wrap:wrap}

/* Keep short admin pages aligned to the top of the workspace. */
.workspace{margin:0 auto;align-self:start}

/* v0.5 archived identity and explicit destructive action */
.badge.deleted{background:#edf0f3;color:#67727d}.danger-zone{border-color:#e9d0ca}.danger-zone .panel-head{background:#fff9f7}.danger-zone summary{color:#94423b}.danger-zone details[open]{padding-bottom:12px}

/* Temporary event register, scoped to this table. */
.event-excerpt{max-width:400px;white-space:pre-wrap;overflow-wrap:anywhere}

/* v0.14: event filters share one baseline; isolated from global toolbar rules. */
.event-filters{display:grid;grid-template-columns:minmax(190px,1.4fr) minmax(190px,1.2fr) minmax(140px,.8fr) minmax(140px,.8fr) auto;align-items:end;gap:12px;padding:20px 24px;border-bottom:1px solid var(--line)}
.event-filters label.field{display:flex;flex-direction:column;gap:7px;margin:0;min-width:0}
.event-filters label.field>input,.event-filters label.field>select{margin:0;height:42px;min-height:42px;box-sizing:border-box;min-width:0;width:100%;max-width:100%}
.event-filters input[type=date]{min-width:0;max-width:100%}
.event-filter-actions{display:flex;align-items:end;gap:8px;margin:0}
.event-filter-actions .btn{height:42px;min-height:42px;box-sizing:border-box;white-space:nowrap}
.job-title-group{margin:10px 0 20px!important;border:1px solid var(--line);border-radius:10px;padding:14px 16px;min-width:0}
.job-title-group legend{padding:0 6px;font-weight:600}
.job-title-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.job-title-options .check{margin:0;min-height:32px;align-items:center}
.job-title-options .check span{overflow-wrap:anywhere}
@media(max-width:1250px){.event-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.event-filter-actions{grid-column:1/-1}}
@media(max-width:620px){.event-filters{padding:18px;grid-template-columns:minmax(0,1fr)}.event-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.event-filter-actions .btn{width:100%}.job-title-options{grid-template-columns:minmax(0,1fr)}}
