:root {
    color-scheme: light;
    --navy: #0b2a58;
    --blue: #1683f7;
    --blue-dark: #0870e2;
    --blue-soft: #e8f3ff;
    --green: #0fbf79;
    --green-soft: #e3f9ef;
    --red: #ec4d50;
    --red-soft: #ffebec;
    --orange: #f4a620;
    --orange-soft: #fff3dc;
    --ink: #142033;
    --muted: #718198;
    --line: #e4ebf3;
    --surface: #ffffff;
    --page: #f4f8fc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--page);
    color: var(--ink);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--page);
}

::view-transition-old(root),
::view-transition-new(root) {
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    animation: pg-page-out 120ms ease-in both;
}

::view-transition-new(root) {
    animation: pg-page-in 210ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pg-page-out {
    to { opacity: 0.88; }
}

@keyframes pg-page-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
}

.turbo-progress-bar {
    z-index: 1000;
    height: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(90deg, #1683f7, #50a9ff);
    box-shadow: 0 0 0.8rem rgba(22, 131, 247, 0.5);
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--navy);
    font-weight: 850;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    width: 2.85rem;
    height: 2.85rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.8rem;
    background: linear-gradient(145deg, #2695ff, #1474ee);
    box-shadow: 0 0.6rem 1.5rem rgba(22, 131, 247, 0.22);
    color: #fff;
    font-size: 1.65rem;
    font-weight: 900;
    overflow: hidden;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.brand-mark-small {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    font-size: 1.2rem;
}

.brand-large {
    font-size: clamp(1.05rem, 2.3vw, 1.4rem);
}

.button {
    display: inline-flex;
    width: 100%;
    min-height: 3.15rem;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.2rem;
    border: 0;
    border-radius: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:active {
    transform: translateY(1px) scale(0.99);
}

.pg-submit-loading {
    cursor: wait;
}

.pg-submit-loading::after {
    width: 0.9rem;
    height: 0.9rem;
    margin-left: 0.55rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    opacity: 0.82;
    animation: pg-submit-spin 650ms linear infinite;
}

@keyframes pg-submit-spin {
    to { transform: rotate(360deg); }
}

.button-auto {
    width: auto;
}

.button-primary {
    background: linear-gradient(135deg, #1588fb, #1475ed);
    box-shadow: 0 0.7rem 1.5rem rgba(20, 117, 237, 0.22);
    color: #fff;
}

.button-primary:hover {
    background: linear-gradient(135deg, #087df0, #0869da);
}

.button-quiet {
    border: 1px solid #dce6f1;
    background: #fff;
    color: var(--navy);
}

.text-link,
.form-foot a {
    border: 0;
    background: transparent;
    color: var(--blue-dark);
    font-weight: 750;
    text-decoration: none;
}

.eyebrow {
    margin: 0;
    color: var(--blue-dark);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.green { color: var(--green) !important; }
.blue { color: var(--blue) !important; }
.red { color: var(--red) !important; }

/* Landing */

.landing-body {
    background:
        radial-gradient(circle at 76% 22%, rgba(62, 151, 255, 0.12), transparent 28rem),
        linear-gradient(180deg, #fff 0%, #f2f7fc 100%);
}

.landing-shell {
    width: min(100% - 2rem, 74rem);
    margin: 0 auto;
    padding: 1.25rem 0 4rem;
}

.landing-nav,
.nav-actions,
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-actions {
    justify-content: flex-end;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 27rem);
    gap: clamp(2.5rem, 8vw, 7rem);
    align-items: center;
    padding: clamp(4rem, 10vw, 8rem) 0 5rem;
}

.landing-copy h1 {
    max-width: 10ch;
    margin: 0.65rem 0 1.25rem;
    color: var(--navy);
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.lead {
    max-width: 38rem;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.hero-actions {
    justify-content: flex-start;
    margin-top: 2rem;
}

.hero-actions span {
    color: #8b99aa;
    font-size: 0.85rem;
}

.staff-invite-note {
    max-width: 34rem;
    margin: 1.15rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.staff-invite-note strong {
    color: var(--navy);
}

.dashboard-preview {
    padding: 1.5rem;
    border: 1px solid #e5edf6;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2rem 5rem rgba(35, 74, 115, 0.16);
    transform: rotate(1.2deg);
}

.preview-head,
.app-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preview-head div,
.app-brand div {
    display: grid;
}

.preview-head strong,
.app-brand strong {
    color: var(--navy);
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.preview-head span:not(.brand-mark),
.app-brand span:not(.brand-mark) {
    color: var(--muted);
    font-size: 0.72rem;
}

.preview-greeting {
    margin: 1.5rem 0 0.4rem;
    color: var(--navy);
    font-size: 1.15rem;
}

.dashboard-preview h2 {
    margin: 1.5rem 0 0.8rem;
    color: var(--navy);
    font-size: 1.65rem;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.preview-stats div {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem;
    border: 1px solid #e8eef5;
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 0.5rem 1.2rem rgba(23, 63, 102, 0.05);
}

.preview-stats span {
    color: var(--muted);
    font-size: 0.7rem;
}

.preview-stats strong {
    color: var(--navy);
    font-size: 1.35rem;
}

.preview-task,
.task-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.7rem;
    padding: 0.8rem;
    border: 1px solid #e8eef5;
    border-radius: 0.8rem;
    background: #fff;
}

.preview-task > div,
.task-main {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
    flex: 1;
}

.preview-task strong,
.task-main strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-task div span,
.task-main span {
    color: var(--muted);
    font-size: 0.68rem;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #dfe8f2;
}

.benefits div {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    color: var(--navy);
    text-align: center;
}

.benefits strong {
    color: var(--blue-dark);
    font-size: 1.55rem;
    letter-spacing: -0.2em;
}

.audience-section {
    padding: 4rem 0;
    border-top: 1px solid #dfe8f2;
}

.audience-heading {
    max-width: 44rem;
    margin-bottom: 1.5rem;
}

.audience-heading h2 {
    margin: 0.6rem 0 0;
    color: var(--navy);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.audience-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    min-height: 20rem;
    padding: clamp(1.35rem, 4vw, 2rem);
    border: 1px solid #dfe8f2;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 1rem 3rem rgba(35, 74, 115, 0.08);
}

.audience-manager {
    background: linear-gradient(145deg, #fff, #eef7ff);
}

.audience-staff {
    background: linear-gradient(145deg, #fff, #f1fbf7);
}

.audience-number {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border-radius: 0.8rem;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-weight: 850;
}

.audience-card h3 {
    margin: 0.55rem 0 0.8rem;
    color: var(--navy);
    font-size: 1.55rem;
    letter-spacing: -0.035em;
}

.audience-card p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.audience-card > .button,
.audience-help {
    grid-column: 2;
    align-self: end;
    justify-self: start;
}

.audience-help {
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    background: var(--green-soft);
    color: #08794e;
    font-size: 0.86rem;
    font-weight: 750;
}

.landing-mobile-cta {
    display: none;
}

/* Auth and setup */

.auth-shell {
    width: min(100% - 2rem, 29rem);
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
}

.form-card {
    margin-top: clamp(3rem, 10vw, 6rem);
    padding: clamp(1.25rem, 5vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 1.5rem 4rem rgba(34, 74, 116, 0.11);
}

.form-title {
    margin: 0.65rem 0;
    color: var(--navy);
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.form-intro,
.form-foot {
    color: var(--muted);
    line-height: 1.6;
}

.form-card form {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.form-card form > div {
    display: grid;
    gap: 0.4rem;
}

label {
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 750;
}

input:not([type="hidden"]),
select,
textarea {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.78rem 0.9rem;
    border: 1px solid #dce5ef;
    border-radius: 0.75rem;
    outline: none;
    background: #fbfdff;
    color: var(--ink);
}

textarea {
    resize: vertical;
    line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(22, 131, 247, 0.11);
}

/* PasajGörev custom selects */

.pg-select {
    position: relative;
    width: 100%;
}

.pg-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.pg-select-trigger {
    display: grid;
    width: 100%;
    min-height: 3.35rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border: 1px solid #dce5ef;
    border-radius: 0.85rem;
    outline: none;
    background: #fbfdff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pg-select-trigger:hover {
    border-color: #bcd8f6;
    background: #fff;
}

.pg-select-trigger:focus,
.pg-select.is-open .pg-select-trigger {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(22, 131, 247, 0.11);
    background: #fff;
}

.pg-select-trigger-text,
.pg-select-option-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-select-icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-size: 0.8rem;
    font-weight: 850;
}

.pg-select-priority .pg-select-icon {
    border-radius: 0.62rem;
    background: var(--orange-soft);
    color: #b56d00;
}

.pg-select-priority .tone-high {
    background: var(--red-soft);
    color: var(--red);
}

.pg-select-chevron {
    color: #718198;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.pg-select.is-open .pg-select-chevron {
    transform: rotate(180deg);
}

.pg-select-menu {
    position: absolute;
    z-index: 150;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    display: none;
    gap: 0.3rem;
    max-height: 17rem;
    padding: 0.5rem;
    overflow-y: auto;
    border: 1px solid #dce8f5;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 1rem 2.5rem rgba(23, 67, 111, 0.18);
}

.pg-select.is-open .pg-select-menu {
    display: grid;
}

.pg-select-option {
    display: grid;
    width: 100%;
    min-height: 3.1rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.5rem 0.6rem;
    border: 0;
    border-radius: 0.75rem;
    outline: none;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.pg-select-option:hover,
.pg-select-option:focus {
    background: #f0f7ff;
}

.pg-select-option.is-selected {
    background: var(--blue-soft);
    color: var(--navy);
    font-weight: 750;
}

.pg-select-option.is-placeholder {
    color: var(--muted);
}

.pg-select-check {
    visibility: hidden;
    color: var(--blue-dark);
    font-weight: 900;
}

.pg-select-option.is-selected .pg-select-check {
    visibility: visible;
}

.form-card ul {
    margin: 0.2rem 0 0;
    padding-left: 1.2rem;
    color: var(--red);
    font-size: 0.82rem;
}

.form-card small {
    color: #8a98aa;
}

.flash,
.dev-note {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border-radius: 0.8rem;
    line-height: 1.45;
}

.invite-link-box a {
    overflow-wrap: anywhere;
    color: var(--blue-dark);
    font-weight: 750;
}

.invite-share-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 0.9rem;
    margin: 1.25rem 0;
    padding: 1rem;
    border: 1px solid #bfe8d5;
    border-radius: 1rem;
    background: #f2fcf7;
}

.invite-share-icon {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-weight: 900;
}

.invite-share-card > div:nth-child(2) {
    display: grid;
    gap: 0.2rem;
}

.invite-share-card small {
    line-height: 1.45;
}

.invite-share-card label,
.invite-share-card > input,
.invite-share-actions,
.invite-open-link {
    grid-column: 1 / -1;
}

.invite-share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.button-whatsapp {
    background: #19b86a;
    color: #fff;
}

.invite-open-link {
    color: var(--blue-dark);
    font-size: 0.86rem;
    font-weight: 750;
    text-align: center;
}

.invitation-list {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.invitation-list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.invitation-list-heading h2 {
    margin: 0.4rem 0 0;
    color: var(--navy);
    font-size: 1.25rem;
}

.invitation-list-heading > span {
    color: var(--muted);
    font-size: 0.82rem;
}

.invitation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
}

.invitation-copy {
    display: grid;
    min-width: 0;
    gap: 0.25rem;
}

.invitation-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invitation-copy small {
    font-size: 0.72rem;
}

.invitation-status {
    align-self: start;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.status-pending { background: var(--orange-soft); color: #9a6507; }
.status-accepted { background: var(--green-soft); color: #08794e; }
.status-expired,
.status-cancelled { background: var(--red-soft); color: #b82f34; }

.invitation-actions {
    display: flex;
    grid-column: 1 / -1;
    gap: 1rem;
}

.invitation-actions form {
    display: inline;
    margin: 0;
}

.invitation-actions button {
    padding: 0;
    cursor: pointer;
}

.text-danger {
    color: var(--red);
}

.invitation-empty,
.staff-registration-help {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.staff-registration-help {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.back-link {
    display: inline-block;
    margin-top: 1.25rem;
    color: var(--blue-dark);
    font-weight: 750;
    text-decoration: none;
}

.compact-form-card {
    margin-top: 2.5rem;
}

/* Profile */

.profile-app {
    padding-bottom: 8rem;
}

.profile-brand-link {
    color: inherit;
    text-decoration: none;
}

.profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin: 1.5rem 0 1rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #0d7cf0, #2096ff);
    box-shadow: 0 1rem 2.5rem rgba(20, 117, 237, 0.22);
    color: #fff;
}

.profile-hero-avatar {
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.55rem;
    font-weight: 850;
}

.profile-hero span,
.profile-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.77rem;
}

.profile-hero h1 {
    margin: 0.15rem 0;
    overflow: hidden;
    font-size: 1.45rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-card {
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1rem 2.8rem rgba(34, 74, 116, 0.09);
}

.profile-card + .profile-card {
    margin-top: 1rem;
}

.profile-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.profile-section-heading span {
    color: var(--blue-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-section-heading h2 {
    margin: 0.15rem 0 0;
    color: var(--navy);
    font-size: 1.25rem;
}

.profile-section-heading .profile-safe-badge {
    flex: 0 0 auto;
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
    background: var(--green-soft);
    color: #08794e;
    letter-spacing: 0;
    text-transform: none;
}

.profile-section-heading .profile-owner-badge {
    flex: 0 0 auto;
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    letter-spacing: 0;
    text-transform: none;
}

.company-save-button {
    border-color: #bcd8f6;
    color: var(--blue-dark);
}

.profile-help {
    margin: 0.55rem 0 1rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.profile-card form {
    display: grid;
    gap: 0.85rem;
}

.profile-card form > div {
    display: grid;
    gap: 0.4rem;
}

.profile-readonly {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.18rem 0.75rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e3eaf2;
    border-radius: 0.85rem;
    background: #f8fbfe;
}

.profile-readonly span {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.7rem;
}

.profile-readonly strong {
    overflow: hidden;
    color: var(--navy);
    font-size: 0.86rem;
    text-overflow: ellipsis;
}

.profile-readonly small {
    color: var(--muted);
    font-size: 0.68rem;
}

.profile-logout {
    margin: 1rem 0;
}

.profile-logout button {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ffd0d2;
    border-radius: 0.85rem;
    background: #fff7f7;
    color: #c93439;
    font-weight: 750;
    cursor: pointer;
}

.task-row-link {
    text-decoration: none;
}

.task-problem-reason {
    color: var(--red) !important;
}

.small-empty-state {
    padding: 2rem 1rem;
}

.small-empty-state .button {
    margin-top: 1rem;
}

/* Quota */

.manager-quota {
    display: grid;
    gap: .55rem;
    margin-top: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #dce8f4;
    border-radius: .85rem;
    background: #fff;
}

.manager-quota > div:first-child,
.inline-quota {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.manager-quota span,
.manager-quota small,
.inline-quota span {
    color: var(--muted);
    font-size: .72rem;
}

.manager-quota strong,
.inline-quota strong {
    color: var(--navy);
    font-size: .78rem;
}

.quota-line {
    overflow: hidden;
    width: 100%;
    height: .45rem;
    border-radius: 99rem;
    background: #e9eff6;
}

.quota-line span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
}

.quota-warning .quota-line span { background: var(--orange); }
.quota-danger .quota-line span,
.quota-critical .quota-line span { background: var(--red); }

.inline-quota {
    margin: 1rem 0;
    padding: .75rem;
    border-radius: .7rem;
    background: var(--blue-soft);
}

/* Super admin */

.super-admin-body {
    background: #f1f5fa;
}

.super-admin-shell {
    width: min(100% - 2rem, 78rem);
    margin: 0 auto;
    padding: 1.25rem 0 4rem;
}

.super-admin-header,
.super-admin-header > div,
.company-analysis-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.super-admin-header form {
    margin: 0;
}

.super-admin-header button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.super-admin-badge {
    padding: .5rem .8rem;
    border-radius: 99rem;
    background: var(--navy);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.super-admin-hero,
.company-analysis-head {
    margin-top: 3rem;
}

.super-admin-hero h1,
.company-analysis-head h1 {
    margin: .35rem 0 .5rem;
    color: var(--navy);
    font-size: clamp(2.1rem, 5vw, 4rem);
    letter-spacing: -.055em;
}

.super-admin-hero p:last-child,
.company-analysis-head p:last-child {
    max-width: 48rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.admin-metrics,
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 2rem;
}

.admin-metrics article,
.analysis-grid article,
.admin-card {
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .5rem 1.5rem rgba(30, 69, 109, .05);
}

.admin-metrics article,
.analysis-grid article {
    display: grid;
    gap: .35rem;
}

.admin-metrics span,
.analysis-grid span {
    color: var(--muted);
    font-size: .76rem;
}

.admin-metrics strong,
.analysis-grid strong {
    color: var(--navy);
    font-size: 1.65rem;
}

.company-table-section {
    margin-top: 2.5rem;
}

.company-table-section .section-heading > div h2,
.admin-card h2 {
    margin: .25rem 0 0;
    color: var(--navy);
    font-size: 1.5rem;
}

.company-table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #fff;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: .9rem 1rem;
    border-bottom: 1px solid #edf1f5;
    color: var(--ink);
    font-size: .78rem;
    text-align: left;
    white-space: nowrap;
}

.company-table th {
    background: #f8fafc;
    color: var(--muted);
    font-size: .67rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.company-table td:first-child {
    display: grid;
    gap: .25rem;
}

.company-table td small {
    color: var(--muted);
    font-size: .65rem;
}

.company-table .quota-line {
    min-width: 7rem;
}

.health-pill {
    display: inline-flex;
    padding: .4rem .6rem;
    border-radius: 99rem;
    font-size: .68rem;
    font-weight: 800;
}

.health-good { background: var(--green-soft); color: #087a4d; }
.health-medium { background: var(--orange-soft); color: #9d6200; }
.health-risk { background: var(--red-soft); color: #b52d34; }

.row-arrow {
    color: var(--blue);
    font-size: 1.6rem;
    text-decoration: none;
}

.privacy-note {
    margin: 1.5rem 0 0;
    padding: .85rem 1rem;
    border: 1px solid #cae2f8;
    border-radius: .8rem;
    background: #edf7ff;
    color: #35617f;
    font-size: .78rem;
}

.health-score {
    display: grid;
    min-width: 8rem;
    justify-items: center;
    gap: .15rem;
    padding: 1.1rem;
    border-radius: 1rem;
}

.health-score strong { font-size: 2.25rem; }
.health-score span { font-size: .72rem; font-weight: 800; }

.analysis-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .7fr);
    gap: 1rem;
    margin-top: 1rem;
}

.usage-bars {
    display: grid;
    height: 11rem;
    grid-template-columns: repeat(14, 1fr);
    align-items: end;
    gap: .35rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-bottom: 1px solid var(--line);
}

.usage-bars > div {
    display: grid;
    height: 100%;
    grid-template-rows: 1fr auto;
    align-items: end;
    gap: .4rem;
}

.usage-bars > div > span {
    display: block;
    min-height: .45rem;
    border-radius: .35rem .35rem 0 0;
    background: linear-gradient(180deg, #42a5ff, #1475ed);
}

.usage-bars small,
.chart-caption {
    color: var(--muted);
    font-size: .62rem;
    text-align: center;
}

.quota-summary {
    display: grid;
    gap: .25rem;
    margin: 1.2rem 0 .65rem;
}

.quota-summary strong { color: var(--navy); font-size: 1.8rem; }
.quota-summary span { color: var(--muted); font-size: .75rem; }
.quota-line-large { height: .65rem; }

.plan-form {
    display: grid;
    gap: .65rem;
    margin-top: 1.5rem;
}

@media (max-width: 850px) {
    .admin-metrics { grid-template-columns: repeat(2, 1fr); }
    .analysis-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-two-column { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .super-admin-shell { width: min(100% - 1.25rem, 78rem); }
    .super-admin-header { align-items: flex-start; }
    .super-admin-header > div { align-items: flex-end; flex-direction: column; }
    .company-analysis-head { align-items: flex-start; flex-direction: column; }
    .health-score { width: 100%; }
}

.global-flash {
    width: min(100% - 2rem, 40rem);
    margin: 1rem auto;
}

.flash-error {
    border: 1px solid #ffd1d3;
    background: var(--red-soft);
    color: #b5222b;
}

.flash-success,
.dev-note {
    border: 1px solid #bfeeda;
    background: var(--green-soft);
    color: #08744a;
}

.dev-note {
    display: grid;
    gap: 0.3rem;
}

/* Mobile manager app */

.app-body {
    background: #e9f0f7;
}

.mobile-app {
    width: min(100%, 34rem);
    min-height: 100vh;
    margin: 0 auto;
    padding: 1.35rem 1.15rem calc(6rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
    box-shadow: 0 0 3rem rgba(28, 67, 108, 0.11);
}

.app-header,
.header-actions,
.section-heading,
.company-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-actions {
    justify-content: flex-end;
    gap: 0.6rem;
}

.icon-button,
.info-button {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--navy);
}

.icon-button svg {
    width: 1.55rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.info-button {
    background: #b9ddff;
    color: #0874df;
    font-size: 1.35rem;
    font-weight: 750;
    text-decoration: none;
}

.welcome-block {
    margin-top: 2.1rem;
}

.welcome-block h1 {
    margin: 0;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.welcome-block h1 strong {
    color: var(--navy);
}

.welcome-block p {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.today-section,
.featured-section {
    margin-top: 2rem;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.65rem;
    letter-spacing: -0.04em;
}

.section-heading time,
.section-link {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.8rem;
}

.section-link {
    color: var(--blue-dark);
    cursor: default;
}

.stats-primary,
.stats-secondary {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.stats-primary {
    grid-template-columns: repeat(2, 1fr);
}

.stats-secondary {
    grid-template-columns: repeat(3, 1fr);
}

.metric-card {
    display: flex;
    min-width: 0;
    min-height: 6rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid #e7edf4;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 0.55rem 1.5rem rgba(32, 73, 113, 0.065);
}

.metric-card > div {
    display: grid;
    min-width: 0;
    gap: 0.25rem;
}

.metric-card span:not(.metric-icon) {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.77rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-card strong {
    color: var(--navy);
    font-size: 1.85rem;
    line-height: 1;
}

.metric-small {
    min-height: 6.2rem;
    padding: 0.8rem;
}

.metric-small strong {
    font-size: 1.55rem;
}

.metric-icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 850;
}

.metric-blue { background: var(--blue-soft); color: var(--blue); }
.metric-green { background: var(--green-soft); color: var(--green); }
.metric-red { background: var(--red-soft); color: var(--red); }
.metric-gray { background: #eef2f6; color: #66778d; }

.onboarding-list {
    margin-top: 0.75rem;
}

.task-row {
    margin-top: 0.6rem;
    padding: 0.8rem 0.7rem;
    box-shadow: 0 0.45rem 1.1rem rgba(30, 69, 109, 0.045);
}

.task-symbol {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.65rem;
    font-style: normal;
    font-weight: 850;
}

.symbol-blue { background: var(--blue-soft); color: var(--blue); }
.symbol-green { background: var(--green-soft); color: var(--green); }
.symbol-orange { background: var(--orange-soft); color: var(--orange); }

.status {
    padding: 0.42rem 0.55rem;
    border-radius: 99rem;
    font-size: 0.65rem;
    font-style: normal;
    font-weight: 750;
    white-space: nowrap;
}

.status-done { background: var(--green-soft); color: #07935c; }
.status-progress { background: var(--blue-soft); color: #0875e4; }
.status-waiting { background: var(--orange-soft); color: #aa6b00; }

.company-strip {
    margin: 1.3rem 0 0;
    padding: 0.7rem 0.2rem;
    color: var(--muted);
    font-size: 0.76rem;
}

.company-strip span {
    overflow: hidden;
    color: var(--navy);
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-nav {
    position: fixed;
    z-index: 100;
    right: auto;
    bottom: 0;
    left: 50%;
    display: grid;
    width: min(100%, 34rem);
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0.7rem 0.65rem calc(0.7rem + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    border-top: 1px solid #e7edf4;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -0.5rem 1.5rem rgba(30, 69, 109, 0.08);
    backdrop-filter: blur(14px);
    view-transition-name: bottom-navigation;
}

.bottom-nav a,
.bottom-nav button {
    display: grid;
    justify-items: center;
    gap: 0.32rem;
    padding: 0.2rem;
    border: 0;
    background: transparent;
    color: #71829a;
    font-size: 0.67rem;
    text-decoration: none;
    transition: color 160ms ease, transform 140ms ease;
}

.bottom-nav a:active,
.bottom-nav button:active {
    transform: translateY(1px) scale(0.96);
}

.bottom-nav form {
    margin: 0;
}

.bottom-nav svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.bottom-nav .active {
    color: var(--blue);
    font-weight: 750;
}

.bottom-nav .active svg {
    fill: var(--blue);
    stroke: var(--blue);
}

/* Staff app */

.staff-app {
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
}

.profile-avatar {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 50%;
    background: #a9d5ff;
    color: #0875e4;
    font-size: 1.05rem;
    font-weight: 750;
}

.notification-button {
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 0.35rem;
    right: 0.25rem;
    width: 0.55rem;
    height: 0.55rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--red);
}

.preview-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0 -0.65rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cde4fb;
    border-radius: 0.7rem;
    background: #edf7ff;
    color: #30658f;
    font-size: 0.7rem;
}

.preview-notice strong {
    color: var(--blue-dark);
}

.staff-welcome {
    margin-top: 1.8rem;
}

.staff-tasks-section {
    margin-top: 2rem;
}

.staff-heading {
    align-items: flex-end;
}

.staff-heading h2 {
    font-size: 1.75rem;
}

.staff-heading time {
    max-width: 8rem;
    line-height: 1.35;
    text-align: right;
}

.staff-task-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.9rem;
}

.staff-task-card {
    padding: 0.9rem;
    border: 1px solid #e3ebf3;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.65rem 1.6rem rgba(31, 72, 113, 0.065);
    transition: transform 160ms ease, box-shadow 180ms ease;
}

@media (hover: hover) {
    .task-row-link:hover .task-row,
    .staff-task-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 0.8rem 1.8rem rgba(31, 72, 113, 0.085);
    }
}

.staff-task-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.staff-task-avatar {
    display: grid;
    width: 3.1rem;
    height: 3.1rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 650;
}

.staff-avatar-blue { background: #dfedff; color: #1478eb; }
.staff-avatar-orange { background: #fff0dd; color: #f08b00; }
.staff-avatar-coffee { background: #f3ece6; color: #795744; }

.staff-task-copy {
    display: grid;
    min-width: 0;
    gap: 0.3rem;
    flex: 1;
}

.staff-task-copy > strong {
    overflow: hidden;
    color: var(--navy);
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-task-copy > span {
    color: var(--muted);
    font-size: 0.76rem;
}

.calendar-icon {
    color: #5f7897;
}

.priority {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.3rem 0.6rem;
    border-radius: 99rem;
    font-style: normal;
}

.priority-normal {
    background: #f0f4f8;
    color: #52647a;
}

.priority-high {
    background: var(--red-soft);
    color: var(--red);
}

.task-chevron {
    padding: 0.2rem;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 2rem;
    line-height: 1;
}

.task-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-top: 0.85rem;
}

.task-actions form {
    margin: 0;
}

.task-actions form,
.task-actions .task-action {
    width: 100%;
    height: 100%;
}

.task-action {
    display: grid;
    min-height: 4.8rem;
    place-items: center;
    align-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.35rem;
    border: 0;
    border-radius: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}

.task-action.selected {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.staff-problem-note {
    margin: .75rem 0 0;
    padding: .65rem .75rem;
    border-radius: .65rem;
    background: var(--red-soft);
    color: #a9252c;
    font-size: .75rem;
    line-height: 1.45;
}

/* Task archive */

.archive-close {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-size: 1.6rem;
    text-decoration: none;
}

.archive-heading {
    margin-top: 2.2rem;
}

.archive-heading h1 {
    margin: .35rem 0;
    color: var(--navy);
    font-size: 2rem;
    letter-spacing: -.045em;
}

.archive-heading > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.5;
}

.archive-list {
    display: grid;
    gap: .7rem;
    margin-top: 1.3rem;
}

.archive-task {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: .85rem;
    background: #fff;
}

.archive-check {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 900;
}

.archive-task > div {
    display: grid;
    min-width: 0;
    gap: .2rem;
    flex: 1;
}

.archive-task strong {
    overflow: hidden;
    color: var(--navy);
    font-size: .85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-task div span {
    color: var(--muted);
    font-size: .68rem;
}

.archive-task em {
    padding: .38rem .55rem;
    border-radius: 99rem;
    background: var(--green-soft);
    color: #087c4e;
    font-size: .62rem;
    font-style: normal;
    font-weight: 800;
}

.archive-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.2rem 0;
    color: var(--muted);
    font-size: .75rem;
}

.archive-pagination a {
    color: var(--blue-dark);
    font-weight: 800;
    text-decoration: none;
}

.task-action span {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 850;
}

.task-action strong {
    font-size: 0.73rem;
}

.action-start { background: var(--blue-soft); color: #0874df; }
.action-start span { background: var(--blue); }
.action-done { background: var(--green-soft); color: #078852; }
.action-done span { background: var(--green); }
.action-problem { background: var(--red-soft); color: #c92f36; }
.action-problem span { background: var(--red); }

.staff-empty-state {
    display: grid;
    justify-items: center;
    margin-top: 1rem;
    padding: 3rem 1.25rem;
    border: 1px dashed #cedae7;
    border-radius: 1rem;
    background: #fff;
    text-align: center;
}

.empty-check {
    display: grid;
    width: 3.4rem;
    height: 3.4rem;
    place-items: center;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-size: 1.5rem;
    font-weight: 850;
}

.staff-empty-state h3 {
    margin: 1rem 0 0.3rem;
    color: var(--navy);
}

.staff-empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.staff-bottom-nav {
    grid-template-columns: repeat(3, 1fr);
}

.app-brand {
    min-width: 0;
}

.app-brand > div {
    min-width: 0;
}

.app-brand strong {
    white-space: nowrap;
}

@media (max-width: 360px) {
    .app-brand {
        gap: .55rem;
    }

    .app-brand .brand-mark {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1.3rem;
        border-radius: .75rem;
    }

    .app-brand strong {
        font-size: .82rem;
    }

    .app-brand span:not(.brand-mark) {
        font-size: .58rem;
    }

    .header-actions {
        gap: .2rem;
    }

    .icon-button,
    .info-button,
    .profile-avatar {
        width: 2.25rem;
        height: 2.25rem;
    }
}

@media (max-width: 820px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-preview {
        width: min(100%, 28rem);
        margin: 0 auto;
        transform: none;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .landing-shell {
        width: min(100% - 1.4rem, 74rem);
    }

    .landing-nav .brand span:last-child {
        font-size: 0.92rem;
    }

    .landing-nav .text-link {
        display: none;
    }

    .landing-nav .landing-how-link {
        display: none;
    }

    .landing-hero {
        padding-top: 3rem;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .benefits {
        gap: 0.4rem;
    }

    .benefits span {
        font-size: 0.78rem;
    }

    .audience-section {
        padding: 3rem 0;
    }

    .audience-card {
        min-height: 0;
    }

    .audience-card > .button,
    .audience-help {
        grid-column: 1 / -1;
        width: 100%;
    }

    .invite-share-actions {
        grid-template-columns: 1fr;
    }

    .landing-mobile-cta {
        position: fixed;
        z-index: 30;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 0.7rem max(0.8rem, env(safe-area-inset-right)) calc(0.7rem + env(safe-area-inset-bottom)) max(0.8rem, env(safe-area-inset-left));
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 -0.7rem 2rem rgba(34, 74, 116, 0.1);
        backdrop-filter: blur(12px);
    }

    .landing-mobile-cta .text-link {
        display: inline-flex;
    }

    .landing-body {
        padding-bottom: 5.2rem;
    }

    .mobile-app {
        box-shadow: none;
    }
}

@media (max-width: 380px) {
    .stats-secondary {
        gap: 0.45rem;
    }

    .metric-card,
    .metric-small {
        padding: 0.65rem;
    }

    .metric-icon {
        width: 2rem;
        height: 2rem;
    }

    .status {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root),
    ::view-transition-group(bottom-navigation) {
        animation-duration: 1ms;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* PWA, notifications and Super Admin branding */
.notification-button { position: relative; text-decoration: none; }
.notification-count { position: absolute; top: -.25rem; right: -.2rem; display: grid; min-width: 1.15rem; height: 1.15rem; padding: 0 .22rem; place-items: center; border: 2px solid #fff; border-radius: 99rem; background: var(--red); color: #fff; font-size: .58rem; font-weight: 900; }
.notifications-app { min-height: 100vh; padding-bottom: 3rem; }
.notification-read-all { border: 0; background: transparent; color: var(--blue-dark); font-size: .72rem; font-weight: 800; cursor: pointer; }
.notification-heading { padding: 1rem 1.4rem .4rem; }
.notification-heading h1 { margin: .2rem 0; color: var(--navy); font-size: 2rem; }
.notification-heading > p:last-child { margin: 0; color: var(--muted); font-size: .8rem; }
.notification-list { display: grid; gap: .65rem; padding: 1rem 1.4rem; }
.notification-item { position: relative; display: flex; align-items: flex-start; gap: .8rem; padding: .95rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; color: var(--navy); text-decoration: none; }
.notification-item.is-unread { border-color: #b9d9fb; background: #f5faff; box-shadow: 0 .7rem 1.8rem rgba(22, 92, 160, .08); }
.notification-symbol { display: grid; width: 2.35rem; height: 2.35rem; flex: 0 0 auto; place-items: center; border-radius: .75rem; background: var(--blue-soft); color: var(--blue-dark); font-weight: 900; }
.notification-item > span:nth-child(2) { display: grid; min-width: 0; gap: .2rem; }
.notification-item strong { font-size: .84rem; }
.notification-item small { color: var(--muted); line-height: 1.4; }
.notification-item time { color: #91a0b5; font-size: .65rem; }
.notification-item i { position: absolute; top: 1rem; right: 1rem; width: .48rem; height: .48rem; border-radius: 50%; background: var(--blue); }
.notification-empty { display: grid; justify-items: center; padding: 3rem 1rem; text-align: center; }
.notification-empty > span { display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 1.3rem; font-weight: 900; }
.notification-empty h2 { margin: .9rem 0 .2rem; color: var(--navy); }
.notification-empty p { margin: 0; color: var(--muted); font-size: .8rem; }

.pwa-profile-card { margin-bottom: 1rem; }
.pwa-profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.pwa-profile-actions .button { width: 100%; }
.pwa-install-help { margin: .7rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.pwa-install-help:empty { display: none; }
.pwa-update-toast { position: fixed; z-index: 100; right: 1rem; bottom: 1rem; display: grid; max-width: 21rem; gap: .3rem; padding: 1rem; border: 1px solid #b9d9fb; border-radius: 1rem; background: #fff; box-shadow: 0 1.2rem 3rem rgba(5, 38, 80, .18); color: var(--navy); }
.pwa-update-toast span { color: var(--muted); font-size: .75rem; }
.pwa-update-toast button { margin-top: .35rem; border: 0; border-radius: .65rem; background: var(--blue); color: #fff; padding: .65rem; font-weight: 800; cursor: pointer; }
.offline-card { width: min(30rem, calc(100% - 2rem)); margin: 12vh auto; padding: 2rem; border: 1px solid var(--line); border-radius: 1.4rem; background: #fff; box-shadow: 0 1.5rem 4rem rgba(11, 55, 104, .12); text-align: center; }
.offline-card .brand-mark { margin: auto; }
.offline-card h1 { color: var(--navy); }
.offline-card p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }

.pwa-admin-shell { padding-bottom: 4rem; }
.pwa-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pwa-admin-card { padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.2rem; background: #fff; box-shadow: 0 1rem 2.6rem rgba(24, 65, 105, .06); }
.pwa-admin-card h2 { margin: 0 0 .4rem; color: var(--navy); }
.pwa-admin-card > p { color: var(--muted); font-size: .82rem; }
.pwa-admin-card label { display: grid; gap: .4rem; margin-top: .85rem; color: var(--navy); font-size: .76rem; font-weight: 800; }
.pwa-admin-card input[type=text], .pwa-admin-card input:not([type]) { width: 100%; padding: .8rem; border: 1px solid var(--line); border-radius: .75rem; font: inherit; }
.pwa-color-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.pwa-color-row input { width: 100%; height: 3rem; padding: .25rem; border: 1px solid var(--line); border-radius: .7rem; background: #fff; }
.pwa-icon-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.pwa-icon-fields label { padding: .8rem; border: 1px dashed #a9c7e7; border-radius: .9rem; background: #f8fbff; }
.pwa-icon-fields img { width: 4rem; height: 4rem; border-radius: 1rem; object-fit: cover; }
.pwa-icon-fields input { max-width: 100%; color: var(--muted); font-size: .7rem; }
.pwa-ios-note { grid-column: 1 / -1; margin: 0; padding: .9rem 1rem; border: 1px solid #cfe3f8; border-radius: .9rem; background: #eef7ff; color: #315d8b; font-size: .84rem; line-height: 1.5; }
.pwa-admin-save { grid-column: 1 / -1; justify-self: end; min-width: 16rem; }

@media (max-width: 720px) {
    .pwa-admin-grid { grid-template-columns: 1fr; }
    .pwa-admin-save { grid-column: 1; width: 100%; }
}
@media (max-width: 420px) {
    .pwa-profile-actions, .pwa-color-row, .pwa-icon-fields { grid-template-columns: 1fr; }
}

/* Manager task lifecycle */
.manager-task-row { position: relative; padding-right: 2.2rem; }
.manager-task-arrow { position: absolute; right: .85rem; color: #91a0b5; font-size: 1.5rem; line-height: 1; }
.task-manage-shell { padding-bottom: 4rem; }
.task-manage-card { width: min(100%, 31rem); }
.task-manage-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.task-manage-heading .form-title { margin-bottom: 1.1rem; }
.task-state { flex: 0 0 auto; padding: .42rem .7rem; border-radius: 99rem; background: var(--blue-soft); color: var(--blue-dark); font-size: .68rem; font-weight: 900; }
.task-state.state-completed { background: var(--green-soft); color: var(--green); }
.task-state.state-blocked { background: #fff2d9; color: #9f6500; }
.task-state.state-cancelled { background: #fff0f0; color: #c9303b; }
.field-help { margin: -.45rem 0 .8rem; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.danger-panel { margin-top: 1rem; border: 1px solid #ffc8cc; border-radius: 1rem; background: #fffafa; overflow: hidden; }
.danger-panel summary { padding: .9rem 1rem; color: #c9303b; font-size: .8rem; font-weight: 900; cursor: pointer; }
.danger-panel > p { margin: 0; padding: 0 1rem .75rem; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.danger-panel form { display: grid; gap: .65rem; padding: 0 1rem 1rem; }
.danger-panel label { color: var(--navy); font-size: .72rem; font-weight: 800; }
.danger-panel textarea { min-height: 5rem; width: 100%; resize: vertical; padding: .75rem; border: 1px solid #efbdc1; border-radius: .75rem; background: #fff; color: var(--navy); font: inherit; }
.button-danger { border: 1px solid #ed6b74; background: #fff; color: #c9303b; }
.button-danger:hover { background: #fff0f0; }
.archived-task-summary { display: grid; gap: .35rem; margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: #f7faff; }
.archived-task-summary strong { color: var(--navy); font-size: 1rem; }
.archived-task-summary span { color: var(--muted); font-size: .72rem; }
.archived-task-summary p { margin: .35rem 0 0; color: #59718f; font-size: .75rem; line-height: 1.5; }
.task-history { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.task-history h2 { margin: 0 0 .85rem; color: var(--navy); font-size: 1rem; }
.task-history-list { display: grid; gap: .15rem; }
.task-history-list article { display: grid; grid-template-columns: .7rem 1fr; gap: .7rem; padding: .55rem 0; }
.task-history-list article > span { width: .58rem; height: .58rem; margin-top: .23rem; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px #9bc8f7; }
.task-history-list article > div { display: grid; gap: .13rem; }
.task-history-list strong { color: var(--navy); font-size: .75rem; }
.task-history-list small { color: var(--muted); font-size: .65rem; }
.task-history-list p { margin: .18rem 0 0; color: #536b87; font-size: .7rem; line-height: 1.4; }
.archive-task-link { color: inherit; text-decoration: none; }
.archive-task-link:hover { border-color: #a9cbed; box-shadow: 0 .6rem 1.5rem rgba(21, 78, 135, .08); }
.archive-task.archive-cancelled .archive-check { background: #fff0f0; color: #c9303b; }
.archive-task.archive-cancelled em { color: #c9303b; }
.archive-task small { display: block; margin-top: .2rem; color: var(--muted); font-size: .66rem; }

@media (max-width: 420px) {
    .task-manage-heading { align-items: center; }
    .task-state { max-width: 7.5rem; text-align: center; }
}
