
.personal-shell{max-width:430px;min-height:100dvh;margin:0 auto;background:var(--surface-canvas,#f5f6f9);color:var(--text-strong,#1c2330);padding-bottom:84px;box-sizing:border-box}
.personal-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;padding:16px;background:white;border-bottom:1px solid var(--border-subtle,#e0e4ec);min-height:80px;box-sizing:border-box}
.personal-heading{flex:1;min-width:0}.personal-company{display:flex;align-items:center;gap:5px;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted,#778296);text-decoration:none;min-height:24px;overflow-wrap:anywhere}
.personal-title{margin:0;overflow-wrap:anywhere;font-size:21px;font-weight:600;line-height:1.3}.personal-avatar{width:44px;height:44px;border-radius:50%;background:var(--navy-900,#1c2330);color:white;display:flex;align-items:center;justify-content:center;flex:none}.personal-back{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:inherit}
.personal-main{padding:20px 16px 28px}.personal-greeting{font-size:21px;letter-spacing:-.01em;line-height:1.25;margin:0 0 8px;font-weight:600}.personal-lead{font-size:14px;line-height:1.6;color:var(--text-muted,#778296);margin:0 0 24px}
.personal-position{font-size:13px;line-height:1.4;color:var(--text-muted,#778296);margin:-4px 0 12px}
.personal-eyebrow{font-family:var(--font-mono,monospace);font-size:11px;text-transform:uppercase;letter-spacing:.11em;color:var(--text-muted,#778296);margin:26px 0 9px;font-weight:600}.personal-eyebrow span{background:#e4e7ef;border-radius:20px;padding:2px 7px;letter-spacing:normal}
.personal-card{background:white;border:1px solid var(--border-subtle,#e0e4ec);border-radius:14px;box-shadow:0 1px 3px #1c233010;overflow:hidden}.personal-tasks{border-color:var(--warning-500,#e8952e)}
.personal-task{display:flex;align-items:center;gap:10px;padding:14px 12px;color:inherit;text-decoration:none;min-height:64px;box-sizing:border-box}.personal-task+.personal-task,.personal-document+.personal-document{border-top:1px solid var(--border-subtle,#e0e4ec)}.personal-task>span:nth-child(2){flex:1}.personal-task strong{font-size:14px;font-weight:600}.personal-task small{display:block;color:var(--text-muted,#778296);font-size:12px;margin-top:4px}.personal-task-icon{background:#fff4df;color:#9e5b08;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%;flex:none}
.personal-document{display:flex;gap:11px;padding:15px 12px}.personal-document-icon{background:#f1f3f7;border-radius:9px;color:#8993a4;width:34px;height:34px;display:flex;align-items:center;justify-content:center;flex:none}.personal-document-main{flex:1;min-width:0}.personal-document-heading{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.personal-document-heading strong{font-size:14px;font-weight:600}.personal-document p{font-size:12px;line-height:1.5;color:var(--text-muted,#778296);margin:5px 0 0}.personal-status{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;padding:3px 9px;border-radius:999px;background:var(--gray-100,#f1f3f7);color:var(--text-subtle,#536078);white-space:nowrap}.personal-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}.personal-status-valid{background:#e0f5eb;color:#176948}.personal-status-expiring,.personal-status-open,.personal-status-rejected,.personal-status-expired{background:#fff1dc;color:#995807}.personal-status-in_review,.personal-status-in-review{background:#e4f4fb;color:#14617e}.personal-hint{display:block;font-size:11px;color:var(--text-muted,#778296);margin-top:6px}.personal-upload-link{margin-top:10px}.personal-document p.personal-rejection{color:#995807}
.personal-shell .btn-secondary,.personal-shell .btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;box-sizing:border-box;text-align:center;text-decoration:none;font-size:14px;border-radius:10px;padding:10px 14px}.personal-shell .btn-primary{background:#1c2330;color:white;border:1px solid #1c2330}.personal-shell .btn-secondary{background:white;color:#30394b;border:1px solid #cbd1df}
.personal-tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:430px;background:white;border-top:1px solid #dce1eb;display:flex;z-index:10;padding:8px 0 calc(8px + env(safe-area-inset-bottom));box-sizing:border-box}.personal-tabs a{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;color:#788397;font-size:12px;text-decoration:none;min-height:48px;justify-content:center}.personal-tabs a[aria-current=page]{color:#1c2330;font-weight:600}.personal-count{position:absolute;top:0;left:calc(50% + 5px);background:#dc4257;color:white;border-radius:20px;padding:0 5px;font-size:10px;min-width:14px;text-align:center}
.personal-notice{display:flex;align-items:flex-start;gap:10px;background:#e9f5ee;border-radius:12px;padding:14px;font-size:14px;margin-bottom:20px;line-height:1.5}.personal-notice svg{flex:none}.personal-notice p{margin:5px 0 0}.personal-empty{padding:8px 15px;color:#778296;font-size:14px}.personal-footnote{font-size:12px;line-height:1.6;color:var(--text-muted,#778296);margin:16px 0}
.personal-preview{min-height:220px;border:1px solid #dce1eb;border-radius:14px;background:#edf0f5;color:#929daf;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;padding:14px;box-sizing:border-box;margin-bottom:14px}.personal-preview img{max-height:360px;max-width:100%;object-fit:contain}.personal-preview p{overflow-wrap:anywhere}.personal-file-choice{display:grid;gap:10px}.personal-file-label{position:relative;overflow:hidden;cursor:pointer}.personal-file-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.personal-file-label:focus-within{outline:2px solid #ffca61;outline-offset:3px}
.personal-fields{padding:16px;margin:20px 0}.personal-fields h2{font-size:17px;margin:0 0 9px}.personal-fields p{font-size:13px;line-height:1.6;color:#778296}.personal-fields .btn-secondary{margin:5px 5px 0 0}.personal-field{display:flex;flex-direction:column;gap:6px;font-size:13px;margin:16px 0 0}.personal-field input{min-height:44px;max-width:100%;min-width:0;width:100%;box-sizing:border-box;font:inherit;border:1px solid #cbd1df;border-radius:9px;padding:10px;background:white;color:#1c2330}.personal-field input[type=file]{font-size:12px}.personal-submit{width:100%}.personal-error{color:#a43041;background:#fdebed;border-radius:10px;padding:12px;font-size:14px}.personal-shell progress{width:100%;accent-color:#1c2330}.personal-profile-actions{display:grid;gap:12px}.personal-shell [hidden]{display:none!important}.personal-shell a:focus-visible,.personal-shell button:focus-visible{outline:2px solid #ffca61;outline-offset:3px}.personal-shell button:disabled{opacity:.6;cursor:wait}
@media(min-width:431px){.personal-shell{border-left:1px solid #e0e4ec;border-right:1px solid #e0e4ec;box-shadow:0 2px 18px #1c233008}}
.personal-chip{display:inline-block;font-size:10px;font-weight:600;border-radius:999px;padding:2px 7px;margin-left:6px;background:#f1f3f7;color:#536078;vertical-align:middle}
.personal-carrier{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e0e4ec;padding-top:13px;margin-top:18px;font-size:12.5px;color:#778296}
.personal-kind-choice{display:grid;gap:12px;margin-top:14px}.personal-kind-choice .btn-secondary{margin:0}.personal-side-label{font-size:14px;font-weight:600;color:#1c2330;margin:0 0 8px}
.personal-blur{display:flex;gap:9px;align-items:flex-start;background:#fff1dc;color:#7a4705;border-radius:10px;padding:11px 13px;font-size:13px;line-height:1.5;margin:10px 0}.personal-blur[hidden]{display:none}.personal-blur svg{flex:none;margin-top:1px}

/* Front and back of an ID card stand one under the other, each the same (INGO-321). */
.personal-upload-side+.personal-upload-side{margin-top:22px;padding-top:18px;border-top:1px solid #dce1eb}
.personal-camera-hint{background:#fff1dc;color:#7a4705;border-radius:10px;padding:11px 13px;font-size:13px;line-height:1.5;margin:10px 0 0}
/* The live view of the camera on a computer (INGO-318). */
.personal-camera{border:none;border-radius:14px;padding:16px;width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);box-sizing:border-box;background:white;color:#1c2330}
.personal-camera::backdrop{background:rgba(28,35,48,.72)}
.personal-camera-frame{background:#1c2330;border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center;min-height:200px}
.personal-camera-video,.personal-camera-shot{display:block;width:100%;max-height:calc(100vh - 200px);object-fit:contain}
.personal-camera-mirrored{transform:scaleX(-1)}
.personal-camera-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.personal-camera-actions button{flex:1 1 160px}
.personal-camera [hidden]{display:none!important}

/* ==========================================================================
   The employee app's frame after the A kit (ui_kits/nachunternehmer-neu,
   Muster C, E-256; PersonalLayout, PersonalHead, PersonalTabBar,
   PersonalMenu). It wears the site channel's pattern-C classes - head
   (site-topbar), tab bar (site-tabs), sections (site-block), sheet
   (site-sheet) - and the mobile building blocks (css/mobile.css), and sets
   here only what the A kit draws differently from the B kit's build. The
   personal-* rules above stay for the pages not redrawn yet; the status
   page without an account (/me) wears WithoutAccountLayout now.
   ========================================================================== */

/* The screen is fixed and only its middle scrolls, as the kit builds the
   phone: the head and the tabs stay put. The work surface is navy-50. */
.personal-app {
    background: var(--navy-50);
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    position: relative;
}

.personal-app > .personal-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px 18px;
}

/* The foot bar (SiteFooterBar, the kits' .bc-foot) works in the app as in the site channel: the last
   thing of the page, sticking to the foot of the scrolling content, 12px over the tabs and 26px over
   the home bar without them. A page puts it last in its body. */
.personal-app > .personal-main:has(> .site-footbar) {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.personal-app > .personal-main:has(> .site-footbar) > * {
    flex-shrink: 0;
}

.personal-app > .personal-main > .site-footbar {
    margin: auto -16px 0;
}

.personal-app:has(> .site-tabs) .site-footbar {
    padding-bottom: var(--space-3);
}

/* The head (MobileTopBar): the amber line in wide capitals, the white title,
   the back tile 34px (its hit area 44px), the initials in navy-700. */
.personal-topbar {
    min-height: 0;
    padding: 14px 18px 16px;
}

.personal-topbar .site-topbar-heading {
    gap: 3px;
}

.personal-topbar .site-topbar-eyebrow {
    font-size: 11px;
    letter-spacing: .14em;
    line-height: 1.2;
}

.personal-topbar .site-topbar-title {
    letter-spacing: -.005em;
    line-height: 1.25;
}

.personal-topbar .site-back {
    height: 34px;
    position: relative;
    width: 34px;
}

.personal-topbar .site-back::after {
    content: "";
    inset: -5px;
    position: absolute;
}

.personal-topbar .site-me-initials {
    background: var(--navy-700);
    color: var(--white);
    font: var(--fw-semibold) 12.5px var(--font-sans);
    letter-spacing: 0;
}

.personal-topbar .site-me:hover .site-me-initials {
    background: var(--navy-600);
}

/* Without an account (A6, A10): the logo over the title, the language pill on the right. The logo keeps
   to the left edge of the heading, which would otherwise stretch it and centre the mark. */
.personal-topbar-logo {
    align-self: flex-start;
    display: block;
    height: 22px;
    margin-bottom: 3px;
    width: auto;
}

.personal-language-pill {
    align-items: center;
    border: 1px solid var(--navy-600);
    border-radius: var(--radius-pill);
    color: var(--white);
    display: inline-flex;
    flex: none;
    font: var(--fw-semibold) 12.5px var(--font-sans);
    gap: 5px;
    height: 34px;
    padding: 0 10px;
    position: relative;
    text-decoration: none;
}

.personal-language-pill::after {
    content: "";
    inset: -5px;
    position: absolute;
}

.personal-language-pill:hover {
    background: var(--navy-700);
    color: var(--white);
    text-decoration: none;
}

/* The tabs (MobileTabBar): navy-400 at rest, the label always semibold, a red count on the capsule. */
.personal-tabbar {
    padding: 6px 6px max(20px, env(safe-area-inset-bottom));
}

.personal-tabbar .site-tab {
    color: var(--navy-400);
    gap: 3px;
    padding: 2px 0;
}

.personal-tabbar .site-tab-active {
    color: var(--navy-900);
}

.personal-tabbar .site-tab-icon {
    position: relative;
}

.personal-tabbar .site-tab-label {
    font-weight: var(--fw-semibold);
}

.personal-tab-count {
    background: var(--danger-500);
    border-radius: var(--radius-pill);
    box-sizing: border-box;
    color: var(--white);
    font: var(--fw-bold) 10px/16px var(--font-sans);
    height: 16px;
    min-width: 16px;
    padding: 0 3px;
    position: absolute;
    right: 0;
    text-align: center;
    top: -4px;
}

/* Sections (b-abschnitt.css): 16px titles, the count in the sans face, amber as the dark #98590f. */
.personal-app .site-block {
    margin-bottom: 10px;
}

.personal-app .site-block-head {
    font: var(--fw-semibold) 16px/1.25 var(--font-sans);
    gap: 8px;
    margin: 0;
    padding: 8px 2px;
}

.personal-app .site-count {
    box-sizing: border-box;
    font: var(--fw-semibold) 11.5px/20px var(--font-sans);
    height: 20px;
    min-width: 22px;
    padding: 0 7px;
}

.personal-app .site-count-warning {
    background: var(--site-soon);
    color: var(--white);
}

.personal-app .site-count-danger {
    background: var(--site-bad);
}

.personal-app .site-count-neutral {
    background: var(--site-np);
}

.personal-app .row-card + .row-card {
    margin-top: 10px;
}

/* A grey addition beside a section's title stands at its right edge, as the kit's note does
   ("Lichtbild ... freiwillig", b-abschnitt.css .bc-note). */
.personal-app .site-block-suffix {
    font-size: 12.5px;
    margin-left: auto;
    text-align: right;
}

/* A form in the app (A kit, a-huelle.css .ap-field; A7): each field a row of
   its card - the card draws the rule between them -, the label small and
   muted over the input. The input keeps 16px text and 44px height on the
   phone (E-171 (6)) where the kit draws 15px and 40px; a select keeps the
   app's drawn chevron. */
.personal-form-row {
    display: block;
    margin: 0;
    padding: 11px 14px;
}

/* Two fields side by side in one row - first and last name, as the passport sets them. */
.personal-form-pair {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.personal-form-pair > label {
    display: block;
    min-width: 0;
}

.personal-form-label {
    color: var(--text-muted);
    display: block;
    font: var(--fw-regular) 12.5px/1.3 var(--font-sans);
    margin-bottom: 5px;
}

.personal-form-input,
.personal-form-row .date-field {
    background-color: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    color: var(--text-strong);
    display: block;
    font: var(--fw-regular) 16px/1.3 var(--font-sans);
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

select.personal-form-input {
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 36px;
}

.personal-form-input::placeholder,
.personal-form-row .date-field::placeholder {
    color: var(--text-subtle);
}

.personal-form-input[readonly],
.personal-form-row .date-field[readonly] {
    background-color: var(--navy-50);
    color: var(--text-muted);
}

.personal-form-input:focus-visible,
.personal-form-row .date-field:focus-visible {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--ring);
    outline: none;
}

/* A line in place of a field, such as why the mobile number is needed. */
.personal-form-note {
    color: var(--text-muted);
    font: var(--fw-regular) 13px/1.45 var(--font-sans);
}

/* A principal's refusal under the document (V109) reads like the kit's sub line, muted. */
.personal-app .personal-rejection-line strong {
    color: var(--text-body);
    font-weight: var(--fw-semibold);
}

/* The minimum-wage row stands as a card of its own under the documents. */
.personal-wage-row {
    margin-bottom: 10px;
}

/* The round button at the end of a contact row (a call, else a mail). */
.personal-reach {
    align-items: center;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--navy-900);
    display: flex;
    flex: none;
    height: 38px;
    justify-content: center;
    position: relative;
    width: 38px;
}

.personal-reach::after {
    content: "";
    inset: -3px;
    position: absolute;
}

.personal-reach:hover {
    background: var(--navy-50);
    color: var(--navy-900);
}

/* The menu sheet behind the initials (MobileTopBar): who, then one bordered
   item each, the two lists opening in place, "Schließen" as a text button. */
.personal-app .site-sheet {
    border-radius: 22px 22px 0 0;
    gap: 0;
    max-width: 430px;
    padding: 10px 16px max(30px, env(safe-area-inset-bottom));
}

.personal-app .site-sheet-grip {
    background: var(--navy-200);
    margin: 0 auto 14px;
}

.personal-app .site-sheet-close-text {
    margin-top: 8px;
}

.personal-menu-who {
    align-items: center;
    display: flex;
    gap: var(--space-3);
    margin: 0 2px 16px;
}

.personal-menu-initials {
    align-items: center;
    background: var(--navy-900);
    border-radius: var(--radius-pill);
    color: var(--amber-500);
    display: flex;
    flex: none;
    font: var(--fw-semibold) 15px var(--font-sans);
    height: 44px;
    justify-content: center;
    width: 44px;
}

.personal-menu-who-text {
    min-width: 0;
}

.personal-menu-name {
    color: var(--navy-900);
    font: var(--fw-semibold) 16px/1.3 var(--font-sans);
    margin: 0;
    overflow-wrap: anywhere;
}

.personal-menu-role {
    color: var(--text-muted);
    font: var(--fw-regular) 13px/1.35 var(--font-sans);
    margin: 1px 0 0;
}

.personal-menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.personal-menu-item {
    align-items: center;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    color: var(--navy-900);
    cursor: pointer;
    display: flex;
    font: var(--fw-semibold) 15px var(--font-sans);
    gap: var(--space-3);
    min-height: 52px;
    padding: 14px 12px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.personal-menu-item:hover {
    background: var(--navy-50);
    color: var(--navy-900);
    text-decoration: none;
}

/* Inside the item's own edge, as the site menu draws it: the sheet focuses its first item when it opens,
   and a card or a list clips whatever is drawn outside its rounded edge. Scoped to the app, so it
   outweighs the older ".personal-shell a:focus-visible" ring above, which sits 3px outside. */
.personal-app .personal-menu-item:focus-visible,
.personal-app .personal-menu-option:focus-visible,
.personal-app a.card-row:focus-visible,
.personal-app button.card-row:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: -2px;
}

.personal-menu-item > .icon {
    color: var(--navy-700);
    flex: none;
}

summary.personal-menu-item {
    list-style: none;
}

summary.personal-menu-item::-webkit-details-marker {
    display: none;
}

.personal-menu-value {
    color: var(--text-muted);
    font: var(--fw-regular) 13.5px var(--font-sans);
    margin-left: auto;
}

.personal-menu-form {
    margin: 0;
}

.personal-menu-sub {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin: 6px 0 2px;
    overflow: hidden;
}

.personal-menu-option {
    align-items: center;
    background: var(--surface-card);
    border: 0;
    border-bottom: 1px solid var(--border-subtle);
    box-sizing: border-box;
    color: var(--navy-900);
    cursor: pointer;
    display: flex;
    font: var(--fw-semibold) 14.5px var(--font-sans);
    justify-content: space-between;
    min-height: 44px;
    padding: 12px 14px;
    text-align: left;
    width: 100%;
}

.personal-menu-option:last-child {
    border-bottom: 0;
}

.personal-menu-option:hover {
    background: var(--navy-50);
}

.personal-menu-option-on {
    background: #fffaf0;
}

.personal-menu-check {
    color: var(--status-fg);
    display: flex;
}

.personal-menu-check .status-glyph {
    height: 17px;
    width: 17px;
}

.personal-menu-contact {
    border-bottom: 1px solid var(--border-subtle);
    padding: 11px 14px;
}

.personal-menu-contact:last-child {
    border-bottom: 0;
}

.personal-menu-contact-name {
    color: var(--navy-900);
    font: var(--fw-semibold) 14.5px var(--font-sans);
    margin: 0;
}

.personal-menu-contact-role {
    color: var(--text-muted);
    font: var(--fw-regular) 12.5px var(--font-sans);
    margin: 1px 0 0;
}

.personal-menu-contact-links {
    display: flex;
    flex-wrap: wrap;
    font: var(--fw-semibold) 13px var(--font-sans);
    gap: 14px;
    margin: 6px 0 0;
}

.personal-menu-contact-links a {
    color: var(--navy-700);
    text-decoration: underline;
}

.personal-menu-contact-none {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    padding: 11px 14px;
}

.personal-app .personal-menu .form-error,
.personal-app [data-personal-menu] .form-error {
    margin: 0 0 12px;
}

/* The title of a sheet that names its list (the language sheet without an account). */
.personal-sheet-title {
    color: var(--navy-900);
    font: var(--fw-semibold) 17px/1.3 var(--font-sans);
    margin: 0 2px 12px;
}

/* ==========================================================================
   A5 Unterweisungen (A kit A5-unterweisungen): the list is sections per site
   (SiteSection, folding) of briefing rows (PersonalBriefingRow, CardRow); the
   reading page puts what is settled on top, then "Dokument" - the language
   chips over the file to open (.a5-chips, .a5-doc) -, the card "Lesezeit"
   (.a5-zeit) and the foot bar.
   ========================================================================== */

/* What is settled - "Bestätigt", or "Unterschrift vor Ort bei der Bauleitung" - as a card over
   "Dokument" (.a5-stat: 14px all round, the section title 6px further down). */
.personal-briefing-state {
    margin-bottom: 6px;
}

.personal-briefing-state > .card-row {
    padding: 14px;
}

/* The languages the document is in (.a5-chips): sans 13px capsules, the shown one navy. Each
   draws as the kit's and reaches a 44px hit area (ABWEICHUNGEN 148 (7)). */
.personal-briefing-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 14px;
}

.personal-briefing-language {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-pill);
    color: var(--navy-900);
    font: var(--fw-semibold) 13px/1.2 var(--font-sans);
    padding: 6px 12px;
    position: relative;
    text-decoration: none;
}

.personal-briefing-language::after {
    content: "";
    inset: -7px -3px;
    position: absolute;
}

.personal-briefing-language:hover {
    background: var(--navy-50);
    color: var(--navy-900);
    text-decoration: none;
}

.personal-briefing-language[aria-current=true],
.personal-briefing-language[aria-current=true]:hover {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--white);
}

.personal-app .personal-briefing-language:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* The file to open (.a5-doc): a 40 × 48 tile naming its kind, 14px all round. */
.personal-app .personal-briefing-document .card-row {
    gap: 12px;
    padding: 14px;
}

.personal-briefing-file {
    align-items: center;
    background: var(--navy-100);
    border-radius: 8px;
    color: var(--navy-700);
    display: flex;
    flex: none;
    font: var(--fw-bold) 10px var(--font-sans);
    height: 48px;
    justify-content: center;
    width: 40px;
}

/* The reading time (.a5-zeit): "Lesezeit" and the seconds left in mono, a 6px amber bar filling. */
.personal-briefing-reading {
    margin-bottom: 10px;
    padding: 13px 14px;
}

.personal-briefing-reading-head {
    color: var(--text-muted);
    display: flex;
    font: var(--fw-regular) 13px var(--font-sans);
    justify-content: space-between;
    margin-bottom: 8px;
}

.personal-briefing-reading-head b {
    color: var(--navy-900);
    font: var(--fw-medium) 13px var(--font-mono);
}

.personal-briefing-reading-bar {
    background: var(--navy-100);
    border-radius: 3px;
    height: 6px;
    overflow: hidden;
}

.personal-briefing-reading-bar i {
    background: var(--amber-500);
    display: block;
    height: 100%;
    width: 0;
}

.personal-briefing-error {
    margin: 0 0 10px;
}

/* The person confirms an evidence type itself (V249, E-358 (2)): the fixed sentence on its sheet, and
   "oder Dokument hochladen" small under the row's button. */
.personal-self-confirm-sheet {
    padding: 18px 16px;
}

.personal-self-confirm-sentence {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.personal-self-confirm-upload {
    display: block;
    margin-top: 6px;
    text-decoration: underline;
}

/* "Gelesen und bestätigen" while the reading time runs: dimmed as the kit's .is-off, over the
   app's older disabled look (.personal-shell button:disabled). */
.personal-app .site-footbar-main.is-off,
.personal-app .site-footbar-main.is-off:hover {
    background: var(--amber-500);
    cursor: default;
    opacity: .45;
}

/* ==========================================================================
   "Mein Profil" and "Meldungen" (A kit A8, A9) and the sheets over them.
   The facts are the kit's rows with the label over the value (A8 .a8-lbl,
   .a8-val); a sheet's form is grouped like the kit's - a label over a
   bordered box of choices or fields (.a8-sheet-l, .a8-box, a-huelle.css
   .ap-radio, .ap-field, .ap-input, .ap-cal) -, chips choose among stages
   (.a8-chip), and the switches are the kit's green ones (.a8-sw).
   ========================================================================== */

/* A fact: the label with its lock over the value, the action on the right. */
.profile-fact {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    gap: 11px;
    padding: 12px 12px 12px 13px;
}

.profile-fact-main {
    flex: 1;
    min-width: 0;
}

.profile-fact-label {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font: var(--fw-regular) 12.5px/1.3 var(--font-sans);
    gap: 5px;
}

.profile-fact-label > .icon {
    flex: none;
}

.profile-fact-value {
    color: var(--text-strong);
    display: block;
    font: var(--fw-semibold) 14.5px/1.3 var(--font-sans);
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.profile-fact-pending {
    color: var(--info-text);
    display: block;
    font: var(--fw-regular) 12.5px/1.35 var(--font-sans);
    margin-top: 3px;
    overflow-wrap: anywhere;
}

/* While a request waits for the firm: one line in the colour of "eingereicht". */
.profile-requested {
    align-items: center;
    color: var(--status-fg);
    display: flex;
    font: var(--fw-regular) 13px/1.35 var(--font-sans);
    gap: 6px;
    margin: 0 2px 8px;
}

.profile-requested .status-glyph {
    height: 15px;
    width: 15px;
}

/* A notice at the top of a page of the app (the portrait stored or deleted). */
.personal-app .personal-notice {
    align-items: center;
    margin-bottom: 10px;
}

.personal-app .personal-notice p {
    margin: 0;
}

/* ---- The sheets' form pieces ---------------------------------------------- */
.personal-app .site-sheet .personal-sheet-title {
    margin: 0 2px 4px;
}

.personal-sheet-lead {
    color: var(--text-muted);
    font: var(--fw-regular) 13px/1.45 var(--font-sans);
    margin: 0 2px 12px;
}

.personal-sheet-note {
    color: var(--text-muted);
    font: var(--fw-regular) 12.5px/1.45 var(--font-sans);
    margin: 0 2px 8px;
}

.personal-sheet-form {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.personal-sheet-form > .site-footbar-main,
.personal-portrait-form > .site-footbar-main {
    margin-top: 10px;
}

.personal-sheet-group {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.personal-sheet-label {
    color: var(--navy-700);
    display: block;
    font: var(--fw-semibold) 13px/1.3 var(--font-sans);
    margin: 12px 2px 8px;
    padding: 0;
}

/* A legend takes its margins only when it floats; what follows it starts under it. */
legend.personal-sheet-label {
    float: left;
    width: calc(100% - 4px);
}

legend.personal-sheet-label + * {
    clear: both;
}

.personal-choice-box {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-sizing: border-box;
    overflow: hidden;
}

.personal-choice-box > * + * {
    border-top: 1px solid var(--border-subtle);
}

/* A choice in the box (.ap-radio): the kit's dot, the row cream once chosen. */
.personal-choice {
    align-items: flex-start;
    box-sizing: border-box;
    color: var(--navy-900);
    cursor: pointer;
    display: flex;
    font: var(--fw-semibold) 14.5px/1.3 var(--font-sans);
    gap: 12px;
    min-height: 48px;
    padding: 13px 14px;
}

.personal-choice:has(input:checked) {
    background: #fffaf0;
}

.personal-choice input[type=radio] {
    appearance: none;
    background: var(--surface-card);
    border: 2px solid var(--navy-200);
    border-radius: 50%;
    box-sizing: border-box;
    cursor: pointer;
    flex: none;
    height: 18px;
    margin: 1px 0 0;
    width: 18px;
}

.personal-choice input[type=radio]:checked {
    background: radial-gradient(var(--navy-900) 0 4px, transparent 5px);
    border-color: var(--navy-900);
}

.personal-choice input[type=radio]:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.personal-choice-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.personal-choice-text small {
    color: var(--text-muted);
    display: block;
    font: var(--fw-regular) 12.5px/1.35 var(--font-sans);
    margin-top: 2px;
}

/* A field in the box (.ap-field, .ap-input): 16px text and 44px high on the phone (E-171 (6)). */
.personal-sheet-field {
    box-sizing: border-box;
    display: block;
    padding: 11px 14px;
}

.personal-sheet-field-label {
    color: var(--text-muted);
    display: block;
    font: var(--fw-regular) 12.5px/1.3 var(--font-sans);
    margin-bottom: 5px;
}

.personal-sheet-input {
    background-color: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    box-sizing: border-box;
    color: var(--text-strong);
    font: var(--fw-regular) 16px var(--font-sans);
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.personal-sheet-field input[type=file] {
    font-size: 13px;
    max-width: 100%;
}

/* The date with the kit's calendar button beside it (.ap-input-cal, .ap-cal). */
.personal-sheet-date .date-field-wrap {
    display: block;
}

.personal-sheet-date .date-field-box {
    align-items: center;
    display: flex;
    gap: 8px;
    position: static;
}

.personal-sheet-date .date-field-box > .date-field {
    border-radius: 10px;
    color: var(--text-strong);
    flex: 1;
    font: var(--fw-regular) 16px var(--font-sans);
    min-height: 44px;
    min-width: 0;
    padding: 10px 12px;
    width: auto;
}

.personal-sheet-date .date-field-open {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    color: var(--navy-700);
    flex: none;
    height: 44px;
    position: static;
    width: 44px;
}

/* A new document's kind, sides and validity open once it is chosen; a reason that brings a new
   document lets the one on file step aside (E-224 (3)). The server holds the same rule. */
.personal-change-files {
    display: none;
}

.personal-change-proof:has([data-proof-new] input:checked) .personal-change-files,
.personal-sheet-form:has(input[data-new-document]:checked) .personal-change-files {
    display: block;
}

.personal-sheet-form:has(input[data-new-document]:checked) [data-proof-on-file] {
    display: none;
}

/* Chips (.a8-chip): a stage of a qualification, the kind of an identity document. */
.personal-option-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
}

.personal-option-chip {
    cursor: pointer;
    display: inline-flex;
    position: relative;
}

.personal-option-chip input {
    cursor: pointer;
    inset: -5px 0;
    margin: 0;
    opacity: 0;
    position: absolute;
}

.personal-option-chip span {
    align-items: center;
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-pill);
    box-sizing: border-box;
    color: var(--navy-900);
    display: inline-flex;
    font: var(--fw-semibold) 13.5px/1.2 var(--font-sans);
    min-height: 34px;
    padding: 8px 14px;
}

.personal-option-chip input:checked + span {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--white);
}

.personal-option-chip input:focus-visible + span {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* A text button in a sheet (.bc-textbtn): "Zurück", "Später", "Lichtbild löschen". */
.personal-sheet-textbutton {
    align-items: center;
    background: transparent;
    border: 0;
    box-sizing: border-box;
    color: var(--navy-700);
    cursor: pointer;
    display: flex;
    font: var(--fw-semibold) 13.5px var(--font-sans);
    justify-content: center;
    margin-top: 8px;
    min-height: 44px;
    padding: 0 var(--space-4);
    text-decoration: none;
    width: 100%;
}

.personal-sheet-textbutton:hover {
    color: var(--navy-900);
    text-decoration: underline;
}

.personal-sheet-textbutton-danger,
.personal-sheet-textbutton-danger:hover {
    color: var(--site-bad);
}

.personal-portrait-form,
.personal-portrait-withdraw {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.personal-portrait-preview {
    margin-bottom: 12px;
    min-height: 150px;
}

.personal-portrait-preview img {
    max-height: 220px;
}

/* ---- Meldungen (A9 .a9-*): the disc at the head, the day beside the title, one sentence, a navy dot while unread. */
.personal-message-row {
    align-items: flex-start;
}

.personal-message-row > .status-disc {
    margin-top: 1px;
}

.personal-message-top {
    align-items: baseline;
    display: flex;
    gap: 8px;
}

.personal-message-top > .card-row-title {
    flex: 1;
    min-width: 0;
}

.personal-message-when {
    color: var(--text-subtle);
    flex: none;
    font: var(--fw-medium) 11.5px var(--font-mono);
    white-space: nowrap;
}

.personal-message-text {
    color: var(--text-body);
    display: block;
    font: var(--fw-regular) 13px/1.45 var(--font-sans);
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.personal-message-dot {
    background: transparent;
    border-radius: var(--radius-pill);
    flex: none;
    height: 8px;
    margin-top: 6px;
    width: 8px;
}

[data-notification-unread] .personal-message-dot {
    background: var(--navy-900);
}

.personal-message-empty {
    align-items: center;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 26px 18px;
    text-align: center;
}

.personal-message-empty strong {
    color: var(--text-strong);
    font: var(--fw-semibold) 15px var(--font-sans);
}

.personal-message-empty span {
    font: var(--fw-regular) 13.5px/1.45 var(--font-sans);
    max-width: 260px;
}

.personal-message-more {
    margin-top: 0;
}

/* ---- Benachrichtigungen (A8 .a8-sw): the first line names where the messages go; the switches are green,
   a kind that always goes out shows its switch on and locked. The button keeps a 44px target. */
.profile-channel-lead {
    color: var(--text-body);
    font: var(--fw-regular) 13px/1.45 var(--font-sans);
    margin: 0;
    overflow-wrap: anywhere;
    padding: 12px 12px 12px 13px;
}

/* E-Mail or SMS (A8 .a8-kanal): two buttons over the switches, the chosen one navy. */
.profile-channel-choice {
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 12px 13px;
}

.profile-channel-option {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    color: var(--navy-900);
    cursor: pointer;
    flex: 1;
    font: var(--fw-semibold) 13px var(--font-sans);
    min-height: 44px;
    padding: 8px;
}

.profile-channel-option.is-on {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: #fff;
}

.profile-channel-option:disabled {
    cursor: default;
    opacity: .45;
}

.profile-channel-note {
    color: var(--text-muted);
    font: var(--fw-regular) 12.5px/1.4 var(--font-sans);
    margin: 0;
    padding: 8px 13px 0;
}

.profile-channel .profile-fact-main .card-row-title {
    font-size: 14.5px;
}

.profile-channel form {
    margin: 0;
}

.personal-switch {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: block;
    flex: none;
    height: 44px;
    padding: 0;
    position: relative;
    width: 52px;
}

.personal-switch-track {
    background: var(--navy-200);
    border-radius: var(--radius-pill);
    height: 26px;
    left: 4px;
    position: absolute;
    top: 9px;
    transition: background .15s;
    width: 44px;
}

.personal-switch-knob {
    background: var(--white);
    border-radius: var(--radius-pill);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    height: 20px;
    left: 7px;
    position: absolute;
    top: 12px;
    transition: left .15s;
    width: 20px;
}

.personal-switch-on .personal-switch-track {
    background: var(--success-600);
}

.personal-switch-on .personal-switch-knob {
    left: 25px;
}

.personal-switch-locked {
    cursor: default;
    opacity: .5;
}

.personal-switch:focus-visible {
    border-radius: var(--radius-pill);
    outline: 2px solid var(--border-focus);
    outline-offset: 0;
}

/* ---- Dokumente zu Anliegen (A8 .a8-dok): the kind of file as a tile at the head of the row. */
.profile-file {
    align-items: center;
    background: var(--navy-100);
    border-radius: 7px;
    color: var(--navy-700);
    display: flex;
    flex: none;
    font: var(--fw-bold) 9.5px var(--font-sans);
    height: 40px;
    justify-content: center;
    width: 34px;
}

/* ---- Qualifikationen (A8): the stages with their signs, the reason, the upload, and the dashed "Qualifikation angeben". */
.profile-stages {
    display: flex;
    flex-wrap: wrap;
    font: var(--fw-medium) 12.5px/1.35 var(--font-sans);
    gap: 4px 12px;
    margin-top: 5px;
}

.profile-stage {
    align-items: center;
    color: var(--status-fg);
    display: inline-flex;
    gap: 4px;
}

.profile-stage .status-glyph {
    height: 13px;
    width: 13px;
}

.profile-qualification-reason {
    color: var(--text-muted);
    display: block;
    font: var(--fw-regular) 12.5px/1.4 var(--font-sans);
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.profile-qualification-upload {
    margin-top: 8px;
}

.profile-add {
    align-items: center;
    background: var(--surface-card);
    border: 1.5px dashed var(--navy-200);
    border-radius: 12px;
    box-sizing: border-box;
    color: var(--navy-700);
    display: flex;
    font: var(--fw-semibold) 14px var(--font-sans);
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
    min-height: 44px;
    padding: 12px;
    text-decoration: none;
    width: 100%;
}

.profile-add:hover {
    border-color: var(--navy-500);
    color: var(--navy-900);
    text-decoration: none;
}

/* ---- The steps of "Qualifikation angeben" (A8 .a8-schritt, .a8-such, .a8-hinw, .a8-leer). */
.personal-sheet-step {
    color: var(--text-muted);
    font: var(--fw-medium) 12px var(--font-mono);
    margin: 4px 2px 10px;
}

.personal-sheet-search {
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 11px 13px;
}

.personal-qualification-search {
    margin: 0;
}

.personal-qualification-list {
    max-height: 46dvh;
    overflow-y: auto;
}

.personal-sheet-empty,
.personal-sheet-done {
    color: var(--text-muted);
    font: var(--fw-regular) 13.5px/1.45 var(--font-sans);
    margin: 0;
    padding: 14px 13px;
}

.personal-sheet-done {
    color: var(--text-strong);
}

.personal-stage-hint {
    color: var(--site-soon);
    display: none;
    font: var(--fw-medium) 12.5px/1.4 var(--font-sans);
    padding: 0 12px 12px;
}

.personal-choice-box > .personal-stage-hint {
    border-top: 0;
}

/* "Weiter" and "Angeben" stay dim until there is something to go on with (.bc-btn.is-off); the browser holds the choice. */
[data-qualification-pick]:not(:has(input[type=radio]:checked)) .site-footbar-main,
[data-qualification-stages]:not(:has(input[type=checkbox]:checked)) .site-footbar-main {
    opacity: .45;
}

.personal-sheet-main {
    margin-top: 10px;
}

.personal-sheet-boxed {
    margin-top: 8px;
}

/* "Anderer Grund" in the change sheet opens its text field; without a script the page shows it only while that
   reason is chosen (E-273 (2)). */
[data-change-reasons] .personal-change-other {
    display: none;
}

[data-change-reasons]:has(input[value=other]:checked) .personal-change-other {
    display: block;
}

[data-change-reasons] .personal-change-other textarea {
    resize: vertical;
}

/* ==========================================================================
   Mindestlohn (A3, ui_kits/nachunternehmer-neu/A3-mindestlohn): the month as
   a section with its state, one card with the rate and the declaration
   (MinimumWageMonthCard), the history (MinimumWageHistory), "Anderen Monat
   öffnen", the foot (MinimumWageFoot) and signing or paper in a sheet from
   below (MinimumWageSignSheet, MinimumWagePaperSheet). The page stands in the
   app's frame or in the frame without an account; both are .personal-app.
   ========================================================================== */

/* A paper form waiting for its review: the capsule in the colour of "eingereicht". */
.personal-app .site-count-submitted {
    background: var(--info-text);
}

.wage-month .site-block-suffix {
    font-size: 12.5px;
}

/* The month's card (.bc-card.a3-hero): the rate, then the declaration. */
.wage-month-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    padding: 16px;
}

/* "13,90 €" with "pro Stunde · Gewerk" on its baseline (.a3-satz). */
.wage-rate {
    align-items: baseline;
    display: flex;
    gap: 8px;
    margin: 0;
}

.wage-rate + .wage-rate {
    margin-top: 10px;
}

.wage-rate strong {
    color: var(--navy-900);
    flex: none;
    font: var(--fw-bold) 30px/1 var(--font-sans);
    white-space: nowrap;
}

.wage-rate span {
    color: var(--text-muted);
    font: var(--fw-semibold) 12.5px/1.35 var(--font-sans);
    min-width: 0;
    overflow-wrap: anywhere;
}

/* The declaration in the reader's words (.a3-txt), the binding German under a rule (.a3-de). */
.wage-declaration {
    color: var(--text-body);
    font: var(--fw-regular) 14px/1.5 var(--font-sans);
    margin: 12px 0 0;
}

.wage-declaration-binding {
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font: var(--fw-regular) 12.5px/1.45 var(--font-sans);
    margin: 10px 0 0;
    padding-top: 10px;
}

.wage-declaration-binding b {
    color: var(--navy-700);
    font-weight: var(--fw-semibold);
}

.wage-month-reason,
.wage-unavailable {
    color: var(--text-body);
    font: var(--fw-regular) 14px/1.5 var(--font-sans);
    margin: 0;
}

.wage-month-note {
    border-top: 1px solid var(--border-subtle);
    color: var(--site-bad);
    font: var(--fw-regular) 13px/1.45 var(--font-sans);
    margin: 12px 0 0;
    padding-top: 10px;
}

.personal-app .wage-error {
    margin: 0 0 10px;
}

/* Behind an e-mailed link: whose month it is, over the month. */
.wage-whose {
    color: var(--text-muted);
    font: var(--fw-semibold) 12.5px/1.35 var(--font-sans);
    margin: 2px 2px 0;
}

/* "Anderen Monat öffnen": a text button under the history that opens the month field in place. */
.wage-other {
    margin: 0 0 10px;
}

.wage-other-summary {
    align-items: center;
    color: var(--navy-700);
    cursor: pointer;
    display: flex;
    font: var(--fw-semibold) 13.5px var(--font-sans);
    justify-content: center;
    list-style: none;
    min-height: 44px;
}

.wage-other-summary::-webkit-details-marker {
    display: none;
}

.wage-other-summary:hover {
    color: var(--navy-900);
    text-decoration: underline;
}

.wage-other-summary:focus-visible {
    border-radius: var(--radius-sm);
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.wage-other-form {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin: 0;
    padding: 11px 14px 14px;
}

.wage-other-label {
    color: var(--text-muted);
    display: block;
    font: var(--fw-regular) 12.5px var(--font-sans);
    margin-bottom: 5px;
}

.wage-other-row {
    align-items: center;
    display: flex;
    gap: 8px;
}

.wage-other-input {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    color: var(--text-strong);
    flex: 1;
    font: var(--fw-regular) 15px var(--font-sans);
    min-height: 44px;
    min-width: 0;
    padding: 9px 12px;
}

.wage-other-show {
    cursor: pointer;
    font-family: var(--font-sans);
    min-height: 44px;
}

/* The foot's form lays its two buttons out as the bar's own (SiteFooterBar). */
.wage-start {
    display: contents;
}

/* A foot button that cannot act yet is dimmed as the kit draws it (.bc-btn.is-off), not as a busy one. */
.personal-app .site-footbar-main.is-off,
.personal-app .site-footbar-main.is-off:hover {
    background: var(--amber-500);
    cursor: default;
    opacity: .45;
}

/* The sheets: the title close over what follows (.bc-sheet-t), a line of guidance (.bc-sheet-s). */
.site-sheet[data-wage-sheet] .personal-sheet-title,
.site-sheet[data-wage-paper-sheet] .personal-sheet-title {
    margin-bottom: 4px;
}

.wage-sheet-text {
    color: var(--text-muted);
    font: var(--fw-regular) 13px/1.45 var(--font-sans);
    margin: 4px 2px 14px;
}

.wage-sign {
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* The area to sign on (.a3-sig): 170px, dashed, the line and the hint behind the drawing. */
.wage-sign-pad {
    gap: 0;
    margin: 4px 0 12px;
    position: relative;
}

.wage-sign-pad .signature-pad-area {
    background: var(--navy-50);
    border-radius: 14px;
}

.wage-sign-pad .signature-pad-canvas {
    border: 1.5px dashed var(--navy-200);
    border-radius: 14px;
    height: 170px;
}

/* "Neu unterschreiben" in the area's corner, once something is drawn. */
.wage-sign-pad .signature-pad-actions {
    position: absolute;
    right: 6px;
    top: 6px;
    z-index: 2;
}

.personal-app .wage-sign-pad [data-signature-clear] {
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--navy-700);
    font: var(--fw-semibold) 12.5px var(--font-sans);
    min-height: 32px;
    padding: 6px 8px;
    position: relative;
}

.wage-sign-pad [data-signature-clear]::after {
    content: "";
    inset: -6px;
    position: absolute;
}

.wage-sign-pad:not([data-drawn="1"]) [data-signature-clear] {
    visibility: hidden;
}

.wage-sign-noscript {
    color: var(--site-bad);
    font: var(--fw-regular) 13px/1.45 var(--font-sans);
    margin: -4px 2px 12px;
}

.wage-paper-print {
    margin-bottom: 14px;
}

.wage-paper-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

/* The signed form to choose: a row like the print row above it (.card-row), the browser's own field
   invisible over the whole row, so a tap anywhere opens the device's choice of camera, gallery or files. */
.wage-file-pick {
    margin-bottom: 6px;
}

.wage-file-pick .card-row {
    cursor: pointer;
    position: relative;
}

.wage-file-pick:focus-within {
    outline: 2px solid var(--amber-500);
    outline-offset: 2px;
}

.wage-file {
    cursor: pointer;
    height: 100%;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

/* Once a file is chosen, its name stands in the line and the sign turns into a green tick. */
.wage-file-sign-pick,
.wage-file-pick[data-chosen="1"] .wage-file-sign-chosen {
    display: flex;
}

.wage-file-sign-chosen,
.wage-file-pick[data-chosen="1"] .wage-file-sign-pick {
    display: none;
}

.wage-file-pick[data-chosen="1"] .wage-file-sign {
    background: var(--site-ok-bg);
    color: var(--site-ok);
}

.wage-file-pick[data-chosen="1"] [data-wage-file-name] {
    color: var(--text-strong);
}

/* The door of an e-mailed link: what the page is for, over the line that the link is the person's own. */
.wage-link-lead {
    color: var(--text-body);
    font: var(--fw-regular) 14px/1.5 var(--font-sans);
    margin: 0;
}

/* The pass prints alone (A4 "Als PDF speichern"): no head, no tabs, no sites, and the screen's fixed
   height gives way so the page is one sheet with the pass on it. */
@media print {
    .personal-app:has([data-personal-pass]) {
        height: auto;
        overflow: visible;
    }

    .personal-app:has([data-personal-pass]) > .site-topbar,
    .personal-app:has([data-personal-pass]) > .site-tabs,
    .personal-app:has([data-personal-pass]) [data-personal-sites],
    .personal-app:has([data-personal-pass]) [data-pass-pdf] {
        display: none;
    }

    .personal-app:has([data-personal-pass]) > .personal-main {
        overflow: visible;
    }

    [data-personal-pass] {
        break-inside: avoid;
        margin: 0 auto;
        max-width: 360px;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* The message a row of "Verwarnungen" on Start leads to (E-335): marked, so the eye lands on it. */
.personal-message-focused > .card-row {
    background: var(--navy-50);
    box-shadow: inset 3px 0 0 var(--navy-900);
}
