:root{font-family:Inter,Segoe UI,Arial,sans-serif;font-size:15px;color-scheme:light;--bg:#f5f5f5;--surface:#fff;--text:#171717;--muted:#626262;--border:#e2e2e2;--field:#fff;--nav:#303030;--log:#141414;--log-text:#e4e4e4}
html[data-theme="dark"]{color-scheme:dark;--bg:#101010;--surface:#1b1b1b;--text:#f4f4f4;--muted:#b5b5b5;--border:#3b3b3b;--field:#171717;--nav:#e4e4e4;--log:#080808;--log-text:#e4e4e4}
@media(prefers-color-scheme:dark){html[data-theme="system"]{color-scheme:dark;--bg:#101010;--surface:#1b1b1b;--text:#f4f4f4;--muted:#b5b5b5;--border:#3b3b3b;--field:#171717;--nav:#e4e4e4;--log:#080808;--log-text:#e4e4e4}}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}
header{min-height:64px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:10px max(24px,calc((100% - 1180px)/2));gap:20px}.brand{font-size:19px;font-weight:750;color:#202020;text-decoration:none;display:flex;align-items:center;gap:10px;white-space:nowrap}.brand img{width:34px;height:34px}nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}nav form{margin:0}nav a,.link-button{color:var(--nav);text-decoration:none;background:none;border:0;padding:0;font:inherit;cursor:pointer}
.app-toolbar{max-width:1180px;margin:14px auto 0;padding:0 22px;display:flex;justify-content:space-between;gap:16px;align-items:center}.history-controls,.preference-controls{display:flex;align-items:center;gap:9px}.icon-button{background:var(--surface);color:var(--text);border:1px solid var(--border);font-size:20px;padding:6px 12px;min-width:46px;height:38px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.inline-control{display:flex;align-items:center;grid-auto-flow:column;gap:7px;font-size:13px}.inline-control select{padding:7px 9px;width:auto}
main{max-width:1180px;margin:24px auto;padding:0 22px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:18px}h1{font-size:28px;margin:0 0 7px}h2{font-size:19px;margin:0 0 18px}p{color:var(--muted)}.card,.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:24px;margin-bottom:22px;box-shadow:0 2px 8px rgba(0,0,0,.08)}.auth-card{max-width:420px;margin:70px auto}.narrow{max-width:560px;margin:40px auto}.stack{display:grid;gap:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.form-grid>label{min-width:0}.form-grid>label>input,.form-grid>label>select{min-height:46px}.wide{grid-column:1/-1}
label{display:grid;gap:7px;font-weight:650;color:var(--text)}label small{font-weight:400;color:var(--muted);line-height:1.35}input,select{width:100%;padding:11px 12px;border:1px solid #919191;border-radius:7px;background:var(--field);color:var(--text);font:inherit}input:focus,select:focus{outline:2px solid #b5b5b5;border-color:#202020}button{background:#171717;color:#fff;border:0;border-radius:7px;padding:11px 17px;font-weight:700;cursor:pointer}button.secondary{background:#ededed;color:#333333;padding:7px 12px}.protected{color:var(--muted);font-weight:650}
.notice{padding:13px 16px;border-radius:8px;margin-bottom:18px}.notice.error{background:#fff0f0;color:#a51e27;border:1px solid #f1b8bc}.notice.success{background:#ecf9f1;color:#17653b;border:1px solid #aaddbd}.notice.warning{background:#fff8e8;color:#775000;border:1px solid #f0d493}.badge{border-radius:999px;padding:7px 12px;font-weight:750;background:#ededed;color:#333333}.badge.ready,.badge.completed{background:#e5f7eb;color:#17653b}.badge.waiting,.badge.failed,.badge.blocked{background:#fff0f0;color:#a51e27}.badge.running,.badge.queued{background:#fff6df;color:#8a5a00}.warning{padding:12px;background:#fff8e8;border:1px solid #f0d493;border-radius:7px;color:#775000}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:11px;border-bottom:1px solid var(--border);vertical-align:top}th{color:var(--muted);font-size:13px}.job-meta{display:flex;gap:24px;flex-wrap:wrap;margin-bottom:16px;color:var(--muted)}.log{background:var(--log);color:var(--log-text);border-radius:8px;padding:18px;white-space:pre-wrap;word-break:break-word;max-height:65vh;overflow:auto;font:13px/1.55 Consolas,monospace}.hidden{display:none}
.home-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.action-card{text-decoration:none;color:var(--text);transition:transform .15s,border-color .15s}.action-card:hover{transform:translateY(-2px);border-color:#202020}.about-card{max-width:800px}.about-card dl{display:grid;grid-template-columns:130px 1fr;gap:12px}.about-card dt{font-weight:750}.about-card dd{margin:0}.action-stack{display:grid;gap:8px;min-width:190px}.action-stack form{margin:0}.inline-reset{display:flex;gap:7px;margin-top:8px}.inline-reset input{min-width:150px;padding:7px}.inline-reset button{padding:7px 10px}details summary{cursor:pointer;color:#171717}hr{border:0;border-top:1px solid var(--border);margin:22px 0}
.date-combo{position:relative;display:block}.date-combo>input[type="text"]{min-height:46px;padding-right:55px}.date-combo>input.suggested-date{color:var(--muted)}.native-date{position:absolute;right:0;bottom:0;width:1px;height:1px;opacity:0}.calendar-button{display:flex;align-items:center;justify-content:center;background:transparent;color:var(--text);border:0;border-left:1px solid var(--border);border-radius:0 7px 7px 0}.calendar-button svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.connection-panel{display:grid;justify-items:end;gap:6px}.connection-panel small{color:var(--muted)}.connection-action{display:grid;justify-items:end;gap:7px;padding:0;background:transparent;color:inherit}.connection-action small{text-decoration:none;font-weight:400}.connection-action:hover small{text-decoration:underline}.connection-badge{text-decoration:none}.connection-renew{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:-10px 0 18px;color:var(--muted)}.connection-renew form{margin:0}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.section-heading h2{margin-bottom:5px}.section-heading p{margin-top:0}.permission-box{border:1px solid var(--border);border-radius:8px;padding:14px;display:flex;gap:20px;flex-wrap:wrap}.permission-box legend{font-weight:750;padding:0 6px}.checkbox{display:flex;align-items:center;gap:8px}.checkbox input{width:auto}.access-form{display:grid;gap:8px;min-width:220px}.session-dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:7px}.session-dot.online{background:#20a05a}.session-dot.offline{background:#a3a3a3}.small-help{font-size:12px;margin:5px 0}
@media(max-width:850px){nav{gap:11px}.home-grid{grid-template-columns:1fr}.app-toolbar{align-items:flex-start}.preference-controls{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:700px){.form-grid{grid-template-columns:1fr}.wide{grid-column:1}.page-heading{align-items:flex-start;gap:15px;flex-direction:column}.connection-panel{justify-items:start}header{padding:12px 15px;align-items:flex-start;flex-direction:column}main,.app-toolbar{padding-left:12px;padding-right:12px}nav{justify-content:flex-start}nav span{display:none}.app-toolbar{flex-direction:column}.preference-controls{justify-content:flex-start}.about-card dl{grid-template-columns:1fr;gap:4px}.section-heading,.connection-renew{align-items:flex-start;flex-direction:column}.card{padding:17px}.brand img{width:30px;height:30px}}

/* v1.1 navigation, profile, direct date-picker target and connection action */
.user-menu{position:relative}.user-menu>summary{list-style:none;display:flex;align-items:center;gap:8px;color:var(--nav);font-weight:650;cursor:pointer}.user-menu>summary::-webkit-details-marker{display:none}.user-menu>summary::after{content:'▾';font-size:19px;line-height:1;margin-left:3px;color:#171717}.avatar{width:32px;height:32px;border-radius:50%;display:inline-grid!important;place-items:center;background:#e6e6e6;color:#171717;font-size:13px}.avatar-photo{object-fit:cover}.user-menu-popover{position:absolute;z-index:20;right:0;top:calc(100% + 10px);min-width:245px;background:var(--surface);border:1px solid var(--border);border-radius:11px;box-shadow:0 10px 28px rgba(0,0,0,.18);padding:10px}.user-menu-popover a,.user-menu-popover .link-button{display:block;width:100%;padding:13px 14px;text-align:left;border-radius:7px;font-size:15px}.user-menu-popover a:hover,.user-menu-popover .link-button:hover{background:var(--bg)}
.calendar-control{position:absolute;right:1px;top:1px;display:block;width:50px;height:44px}.calendar-control .native-date{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2}.calendar-control .calendar-button{position:absolute;inset:0;padding:6px;width:50px;height:44px}.calendar-control .calendar-button svg{width:28px;height:28px}.connection-panel{margin:0}.connection-badge{border:0;font:inherit;cursor:pointer}.profile-card{max-width:720px}.profile-heading{display:flex;align-items:center;gap:16px;margin-bottom:22px}.profile-heading h1,.profile-heading p{margin:0}.profile-avatar{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#171717;color:#fff;font-size:23px;font-weight:800}.profile-card dl{display:grid;grid-template-columns:150px 1fr;gap:13px;margin-bottom:24px}.profile-card dt{font-weight:750}.profile-card dd{margin:0}.button-link{display:inline-block;background:#171717;color:#fff;text-decoration:none;border-radius:7px;padding:11px 17px;font-weight:700}.profile-editor{margin:0 0 18px;padding:14px;border:1px solid var(--border);border-radius:8px}.profile-editor summary{font-weight:750}.profile-editor form{margin-top:16px}.brand-copy{display:flex;flex-direction:column;line-height:1.15}.brand-copy small{font-size:11px;color:var(--muted);font-weight:500;margin-top:3px}.job-actions{display:flex;gap:10px;align-items:center}.batch-label{display:inline-block;background:#ededed;color:#333333;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:750}.version-history{display:grid;gap:10px}.version-history>div{border-left:3px solid #202020;padding-left:12px}.version-history span{color:var(--muted);margin-left:10px}.version-history p{margin:4px 0}.multi-client-field select{min-height:220px}
@media(max-width:700px){.user-menu>summary>span:not(.avatar){display:none}.user-menu-popover{left:0;right:auto}.profile-card dl{grid-template-columns:1fr;gap:4px}}
.pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:18px}.secondary-link{background:#ededed;color:#333333;text-decoration:none;border-radius:7px;padding:8px 13px;font-weight:700}.pagination span{color:var(--muted);font-weight:650}
.profile-photo{width:72px;height:72px;border-radius:50%;object-fit:cover;border:2px solid #e6e6e6}.password-field{position:relative;display:block}.password-field input{padding-right:72px}.password-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);padding:6px 10px;background:#ededed;color:#333333;font-size:12px;min-width:55px}.password-hint{display:grid;gap:5px;padding:12px 14px;border:1px solid #cccccc;background:#f6f6f6;border-radius:8px;color:var(--text);font-weight:400}.password-hint.compact{font-size:12px;padding:9px;margin:8px 0}.reset-password-form{display:grid;gap:10px;margin-top:8px;min-width:280px}.reset-password-form label{font-size:12px}
.compact-picker{display:grid;gap:9px}.selected-chips{display:flex;flex-wrap:wrap;gap:7px;min-height:8px}.client-chip{background:#ededed;color:#333333;padding:7px 10px;border:1px solid #d5d5d5;border-radius:999px;font-weight:650}.client-chip:hover{background:#e6e6e6}.month-search{min-height:46px}.job-actions{flex-wrap:wrap;justify-content:flex-end}.profile-photo-button{position:relative;padding:0;background:transparent;border-radius:50%;display:grid;place-items:center}.profile-photo-button:hover{transform:scale(1.03)}.photo-edit-mark{position:absolute;right:-2px;bottom:1px;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#171717;color:#fff;border:2px solid var(--surface);font-size:18px}.profile-image-history{margin:22px 0}.profile-image-history h2{margin-bottom:4px}.profile-image-grid{display:flex;flex-wrap:wrap;gap:12px}.profile-image-grid form{margin:0}.profile-history-button{display:grid;gap:6px;background:transparent;color:var(--muted);padding:6px;border:2px solid transparent}.profile-history-button.selected{border-color:#171717;background:#ededed}.profile-history-button img{width:76px;height:76px;border-radius:10px;object-fit:cover}.profile-history-button span{font-size:12px}

/* v1.3.1 searchable pickers, global token state and compact actions */
.search-picker{position:relative}.search-picker>input[type="search"]{min-height:46px;padding-right:48px}.picker-arrow{position:absolute;right:1px;top:1px;width:46px;height:44px;padding:0;border-radius:0 7px 7px 0;background:transparent;color:var(--text);font-size:17px}.picker-menu{display:none;position:absolute;z-index:35;left:0;right:0;top:calc(100% + 5px);max-height:300px;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 12px 28px rgba(0,0,0,.18);padding:6px}.picker-menu.open{display:grid}.picker-menu button{display:block;width:100%;padding:10px 12px;border-radius:5px;background:transparent;color:var(--text);text-align:left;font-weight:550}.picker-menu button:hover,.picker-menu button:focus{background:#ededed;color:#242424}.client-picker-menu{max-height:310px}.month-picker-menu{max-height:310px}.global-connection-panel{margin:0;display:flex;justify-content:center;flex:1}.global-connection-action{padding:0;background:transparent;color:inherit}.global-connection-action .badge{display:block;font-size:12px}.user-menu>summary{gap:6px}.user-menu>summary::after{margin-left:-1px}.job-meta{align-items:center}.close-log-icon{margin-left:-12px;width:28px;height:28px;display:inline-grid;place-items:center;border-radius:50%;background:#ededed;color:#333333;text-decoration:none;font-size:21px;font-weight:700;line-height:1}.close-log-icon:hover{background:#e6e6e6}.input-prefix{display:flex;align-items:center;border:1px solid #919191;border-radius:7px;background:var(--field);overflow:hidden}.input-prefix>span{padding:0 0 0 12px;color:var(--muted);font-weight:750}.input-prefix input{border:0;border-radius:0;min-height:44px;padding-left:3px}.input-prefix:focus-within{outline:2px solid #b5b5b5;border-color:#202020}.input-prefix input:focus{outline:0}
@media(max-width:850px){.app-toolbar{flex-wrap:wrap}.global-connection-panel{order:3;flex-basis:100%}}
.picker-menu button.hidden{display:none}
.connect-card{background:#ecf9f1;border-color:#aaddbd;box-shadow:0 2px 8px rgba(23,101,59,.1)}.connect-card h2{color:#17653b;margin-bottom:8px}.connect-card p{color:#276b49;margin:0 0 16px}.connect-card form{margin:0}.connect-card button{background:#1c7c49}
@media(max-width:700px){.connect-card button{width:100%}}
/* v1.3.4 monochrome branding; semantic connection/result colours are retained. */
:root{--accent:#171717;--primary-bg:#171717;--primary-text:#fff;--soft-bg:#ededed;--soft-text:#333;--focus:#696969}
html[data-theme="dark"]{--accent:#f2f2f2;--primary-bg:#ededed;--primary-text:#171717;--soft-bg:#303030;--soft-text:#ededed;--focus:#c9c9c9}
@media(prefers-color-scheme:dark){html[data-theme="system"]{--accent:#f2f2f2;--primary-bg:#ededed;--primary-text:#171717;--soft-bg:#303030;--soft-text:#ededed;--focus:#c9c9c9}}
a{color:var(--nav)}.brand,details summary,.user-menu>summary::after{color:var(--accent)}
button,.button-link,.profile-avatar,.photo-edit-mark{background:var(--primary-bg);color:var(--primary-text)}
button.secondary,.badge:not(.ready):not(.completed):not(.waiting):not(.failed):not(.blocked):not(.running):not(.queued),.avatar,.batch-label,.secondary-link,.password-toggle,.client-chip,.close-log-icon{background:var(--soft-bg);color:var(--soft-text)}
input[type="checkbox"],input[type="radio"]{accent-color:var(--accent)}
input:focus,select:focus,.input-prefix:focus-within{outline-color:var(--focus);border-color:var(--accent)}
.action-card:hover,.profile-history-button.selected{border-color:var(--accent)}
.version-history>div{border-left-color:var(--accent)}.profile-photo{border-color:var(--border)}
.password-hint,.profile-history-button.selected{background:var(--soft-bg);border-color:var(--border);color:var(--text)}
.picker-menu button:hover,.picker-menu button:focus,.client-chip:hover,.close-log-icon:hover{background:var(--soft-bg);color:var(--soft-text)}
.icon-button{background:var(--surface);color:var(--text)}.calendar-button,.picker-arrow,.profile-photo-button,.global-connection-action,.connection-action,.profile-history-button{background:transparent;color:var(--text)}
.link-button{background:transparent;color:var(--nav)}.connect-card button{background:#1c7c49;color:#fff}
.parser-tabs a[aria-current="page"]{border:2px solid var(--text);font-weight:750}.parser-tabs a{white-space:nowrap}
.picker-menu button.keyboard-active{background:var(--soft-bg,#ededed);color:var(--soft-text,#171717);outline:1px solid var(--muted);outline-offset:-1px}
.custom-calendar .native-date{pointer-events:none;width:1px;height:1px;z-index:-1}.custom-calendar .calendar-button{z-index:3;cursor:pointer}
.portal-calendar{position:absolute;top:calc(100% + 5px);right:0;z-index:40;width:294px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 8px 24px #0003;color:var(--text)}
.portal-calendar-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.portal-calendar button{background:var(--surface);color:var(--text);padding:7px;min-width:30px}.portal-calendar button:hover,.portal-calendar button:focus{background:var(--text);color:var(--surface)}.portal-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center}.portal-calendar-grid span{font-size:12px;color:var(--muted);padding:4px}.portal-calendar-grid [aria-current="date"]{background:var(--text);color:var(--surface);outline:2px solid var(--muted)}
.notification-count{display:inline-block;min-width:1.5em;padding:2px 6px;border-radius:20px;background:var(--text);color:var(--surface);font-size:12px;text-align:center;font-weight:750}.notification-card.unread{border-inline-start:4px solid var(--text)}.notification-body{white-space:pre-wrap;overflow-wrap:anywhere}.notification-card form{margin-top:14px}#outcome-summary{margin:18px 0;font:inherit}.summary-line{min-height:1.4em;white-space:pre-wrap;overflow-wrap:anywhere}.summary-line strong{font-weight:750}.summary-line.existing-entry{white-space:pre;overflow-x:auto;overflow-wrap:normal;padding-bottom:3px;font-size:.94em}
.account-controls{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;flex-shrink:0;margin-left:4px}
.notification-menu{position:relative;flex-shrink:0}.notification-bell{position:relative;display:flex;align-items:center;justify-content:center;width:38px;height:38px;list-style:none;cursor:pointer;border-radius:50%;color:var(--nav)}.notification-bell::-webkit-details-marker{display:none}.notification-bell:hover,.notification-menu[open]>.notification-bell{background:var(--bg)}.notification-bell:focus-visible{outline:2px solid currentColor;outline-offset:3px}.bell-icon{width:23px;height:23px}.notification-bell .bell-count{position:absolute;top:0;right:-3px;display:inline-block;min-width:17px;padding:1px 4px;border:2px solid var(--surface);border-radius:12px;background:#dc503b;color:white;font-size:10px;line-height:14px;text-align:center;font-weight:750}.notification-popover{position:absolute;z-index:60;right:0;top:calc(100% + 10px);width:380px;max-width:calc(100vw - 24px);border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 14px 38px #0003;overflow:hidden;color:var(--text)}.notification-popover-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid var(--border)}.notification-popover .notification-mark-all{padding:0;background:transparent;color:var(--muted);font-size:12px;font-weight:500;cursor:pointer}.notification-mark-all:hover{text-decoration:underline}.notification-preview-list{max-height:370px;overflow:auto}.notification-preview-list form{margin:0}.notification-popover .notification-preview{display:flex;flex-direction:column;align-items:flex-start;gap:7px;width:100%;padding:15px 16px;border:0;border-bottom:1px solid var(--border);border-radius:0;background:var(--surface);color:var(--text);text-align:left;white-space:normal;font-weight:400;line-height:1.4;cursor:pointer}.notification-popover .notification-preview.unread{border-inline-start:3px solid var(--text);background:var(--bg)}.notification-preview:hover{filter:brightness(.96)}.notification-preview strong{font-size:14px}.notification-popover .notification-preview span{display:block;color:var(--muted);font-size:13px;overflow-wrap:anywhere}.notification-preview small{font-size:11px;color:var(--muted)}.notification-popover .notification-view-all{display:block;padding:14px 16px;text-align:center;font-weight:650}.notification-empty{padding:14px 16px;margin:0;color:var(--muted);font-size:14px}@media(max-width:700px){.notification-popover{position:fixed;top:116px;right:12px;left:12px;width:auto;max-width:none}}




