/* Task-first workspaces: compact identity, bounded editor and explicit next action. */
.journey-context{width:min(1180px,96vw);height:90dvh;max-height:90dvh;padding:0;border:1px solid var(--ui-border,#55585e);border-radius:18px;background:var(--ui-surface,#242529);color:var(--ui-text,#f4f4f5)}.journey-context[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}.journey-context header{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:12px}.journey-context h2{font-size:18px;margin:0}.journey-context iframe{width:100%;height:100%;border:0;background:var(--ui-surface,#18191b)}.journey-steps,.journey-footer{display:flex;gap:8px;align-items:center;justify-content:space-between;grid-column:1/-1}.journey-steps button{flex:1;font-size:12px;padding:9px}.journey-steps [aria-current=step]{border-color:var(--ui-danger-line,#ff5968);color:var(--ui-danger-text,#ff929d);background:var(--ui-surface,#422a30)}.journey-footer{margin-top:12px}.journey-person-path{font-size:12px;color:var(--ui-muted,#9ccbf1);padding:10px 0;border-bottom:1px solid var(--ui-border,#55585e)}
.profile-compact .profile-a-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:20px;align-items:start}.profile-compact .profile-a-identity{position:sticky;top:85px;display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px 16px;background:radial-gradient(ellipse at top right,var(--ui-raised,#4b323b),transparent 70%),linear-gradient(145deg,var(--ui-surface,#303238),var(--ui-surface,#202126));border:1px solid var(--ui-border,#66626c);border-top:4px solid var(--ui-danger-line,#ff5968);border-radius:20px;padding:22px;box-shadow:0 18px 40px #0005;overflow:hidden}.profile-a-identity::before{content:'ELEKTRO HARAMIA · OSOBNÁ KARTA';grid-column:1/-1;font-size:11px;letter-spacing:1.4px;color:var(--ui-text,#d8b8be);padding-bottom:14px}.profile-compact .profile-a-portrait{grid-column:1;grid-row:2/5;width:86px;height:108px;border-radius:12px}.profile-compact .profile-a-identity h2{grid-column:2;grid-row:2;font-size:21px;line-height:1.2;overflow-wrap:anywhere}.profile-compact .profile-a-identity>p{grid-column:2;grid-row:3;font-size:12px}.profile-compact .profile-a-state{grid-column:2;grid-row:4}.profile-compact .profile-a-photo-form{grid-column:1/-1;grid-row:5}.profile-compact .profile-a-facts{grid-column:1/-1;grid-row:6;grid-template-columns:1fr;gap:12px;border-top:1px solid var(--ui-border,#ffffff20);padding-top:15px}.profile-compact .profile-a-facts dd{font-size:13px}.profile-compact .profile-a-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-compact .compact-profile-block{background:linear-gradient(145deg,var(--ui-surface,#303136),var(--ui-surface,#242529));border:1px solid var(--ui-border,#505159);border-radius:16px;padding:16px}.profile-compact .compact-profile-block>h2{font-size:17px;margin-bottom:10px}.profile-compact .compact-facts{gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}.profile-compact .compact-facts dd{font-size:12px}.profile-compact .compact-facts dt{font-size:11px}.profile-compact .compact-profile-details{margin-top:10px;padding-top:6px}.profile-compact .compact-profile-details>summary{color:var(--ui-muted,#9ed3fa)}.profile-compact .compact-document-row{border:1px solid var(--ui-border,#595b66);border-radius:10px;background:var(--ui-surface,#373940);margin:7px 0;padding:10px}.profile-compact .compact-document-row img{width:64px;height:48px}.profile-compact .compact-history-preview li{margin-bottom:8px}.profile-compact .compact-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-compact .compact-profile-block:has(>.compact-profile-details[open]){grid-column:1/-1}.profile-compact .profile-a-heading{margin-bottom:14px}.profile-compact .profile-a-heading h1{font-size:25px}
[data-person-dialog] .person-dialog-head,[data-person-dialog] [data-person-photo]{border-radius:14px;background:linear-gradient(145deg,var(--ui-surface,#303238),var(--ui-surface,#242529))}[data-person-dialog] [data-person-photo] img{max-width:120px;border-radius:12px}[data-person-dialog] [data-profile-tabs]{padding:10px;border:1px solid var(--ui-border,#565862);border-radius:12px;background:var(--ui-surface,#292a2e)}[data-person-dialog] [data-person-remote]>section{border:1px solid var(--ui-border,#55585e);border-radius:14px;background:var(--ui-surface,#292a2e)}
@media(max-width:1000px){.profile-compact .profile-a-layout{grid-template-columns:minmax(0,1fr)}.profile-compact .profile-a-identity{position:static;width:min(100%,500px);justify-self:center}.profile-compact .compact-detail-grid{grid-template-columns:1fr}}
@media(max-width:600px){.profile-compact .profile-a-content{grid-template-columns:1fr}.profile-compact .profile-a-identity{padding:16px}.journey-steps{flex-wrap:wrap}.journey-steps button{flex:1 1 100px}.journey-context header{flex-wrap:wrap}.journey-context header button{width:100%}.journey-person-path{line-height:1.7}.profile-compact .profile-a-facts{grid-template-columns:1fr}}

.journey-department{width:min(650px,94vw);max-height:90dvh;overflow:auto;background:var(--ui-surface,#292a2e);color:var(--ui-text,#fff);border:1px solid var(--ui-border,#55585e);border-radius:16px;padding:20px}.journey-department header{display:flex;gap:12px;align-items:center;justify-content:space-between}.journey-department h2{font-size:19px}.journey-department form{display:grid;gap:14px}.journey-department label{display:grid;gap:6px}.journey-department [role=status]{color:var(--ui-danger-text,#ffb3bd)}

.profile-task-dialog{width:min(1180px,96vw);max-height:90dvh;overflow:auto;background:var(--ui-surface,#242529);border:1px solid var(--ui-border,#5a5c66);border-radius:18px;padding:16px;color:var(--ui-text,#fff)}.profile-task-dialog::backdrop{background:var(--ui-backdrop,#101113c9);backdrop-filter:blur(5px)}.profile-task-back{position:sticky;top:0;z-index:2;padding:10px 16px;margin-bottom:10px;background:var(--ui-surface,#363840);color:var(--ui-text,#fff);border:1px solid var(--ui-border,#747682);border-radius:9px}.profile-task-dialog .compact-profile-details>summary{display:none}.profile-task-dialog .compact-profile-block{border:0!important;padding:4px!important}.profile-task-dialog .compact-profile-details{border:0;margin:0;padding:0}.profile-task-dialog .compact-facts,.profile-task-dialog .compact-document-preview,.profile-task-dialog .compact-history-preview{display:none}.journey-onboarding{padding:18px;border:1px solid var(--ui-border,#5a7865);background:var(--ui-surface,#243a2c);border-radius:12px}[data-person-form] .journey-steps,[data-person-form] .journey-footer{grid-column:1/-1}[data-journey] [hidden]{display:none!important}
@media(max-height:650px){.profile-compact .profile-a-identity{position:static}}
