/* HelpDesk visual system: a calm, task-focused interface inspired by Toss. */
@layer design {
    :root {
        --bg: light-dark(#f4f6f8, #14171c);
        --surface: light-dark(#fff, #1b1f26);
        --surface-2: light-dark(#f2f4f6, #222831);
        --surface-3: light-dark(#e5e8eb, #222831);
        --ink: light-dark(#191f28, #dde1e6);
        --muted: light-dark(#4e5968, #8b94a0);
        --faint: light-dark(#626d7b, #8b94a0);
        --line: light-dark(#e8ebef, #2a303a);
        --brand: light-dark(#1b64da, #6ea1ff);
        --brand-ink: #fff;
        --action: light-dark(#1b64da, #3a74e0);
        --accent-soft: light-dark(#e8f3ff, #1b2d46);
        --focus: var(--brand);
        --danger: light-dark(#c83649, #eaa9a9);
        --danger-soft: light-dark(#fff0f2, #382027);
        --radius-s: 10px;
        --radius-m: 16px;
        --radius-l: 24px;
        --shadow: 0 8px 32px -12px
            light-dark(rgb(25 31 40 / .14), rgb(0 0 0 / .55));
        --step--1: .875rem;
        --step-0: .9375rem;
        --step-1: 1.125rem;
        --step-2: 1.5rem;
        --step-3: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
    }

    :root,
    .home-page,
    .board-page {
        --s-req: light-dark(#c83649, #eaa9a9);
        --s-recv: light-dark(#9e5600, #8fcfa8);
        --s-prog: var(--brand);
        --s-review: light-dark(#7447c8, #c2b5ef);
        --s-long: light-dark(#087d63, #e2c27e);
        --s-done: light-dark(#5e6b7a, #b0b8c1);
    }

    body {
        font-size: 15px;
        line-height: 1.6;
        letter-spacing: -.015em;
    }

    h1,
    h2,
    h3 {
        color: var(--ink);
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    h1 {
        font-size: var(--step-3);
        line-height: 1.35;
        font-weight: 750;
        letter-spacing: -.04em;
    }

    h2 {
        font-size: 23px;
        font-weight: 700;
        letter-spacing: -.03em;
    }

    h3 {
        font-size: 17px;
        font-weight: 650;
    }

    a {
        color: var(--brand);
    }

    :focus-visible {
        outline: 3px solid var(--brand);
        outline-offset: 3px;
    }

    button,
    .button,
    input,
    select,
    textarea,
    summary,
    .gnav a,
    .sidebar a {
        transition:
            background-color .15s ease,
            border-color .15s ease,
            box-shadow .15s ease,
            color .15s ease;
    }

    button,
    .button {
        min-height: 44px;
        padding: 11px 18px;
        border: 1px solid transparent;
        border-radius: 12px;
        background: var(--action);
        color: #fff;
        font-size: 14px;
        font-weight: 650;
        line-height: 1.4;
    }

    button:hover,
    .button:hover {
        filter: none;
        background: light-dark(#1555bd, #1555bd);
        color: #fff;
    }

    button:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

    button.secondary,
    .button.secondary {
        background: var(--surface-2);
        color: var(--muted);
        border-color: transparent;
    }

    button.secondary:hover,
    .button.secondary:hover {
        background: var(--surface-3);
        color: var(--ink);
    }

    .actions > a:not(.button),
    .search-grid > a {
        min-height: 44px;
        padding: 11px 18px;
        border: 1px solid transparent;
        border-radius: 12px;
        background: var(--surface-2);
        color: var(--muted);
        font-size: 14px;
        font-weight: 650;
        line-height: 1.4;
    }

    .actions > a:not(.button):hover,
    .search-grid > a:hover {
        background: var(--surface-3);
        border-color: transparent;
        color: var(--ink);
    }

    button.button-sm,
    .button.button-sm,
    td .actions > a,
    td .actions button,
    .post-detail .post-owner-actions > a,
    .post-detail .post-owner-actions button {
        height: 36px;
        min-height: 36px;
        padding: 7px 12px;
        font-size: 13px;
        line-height: 1.4;
        font-weight: 650;
        border-radius: 10px;
    }

    label {
        margin-bottom: 8px;
        color: var(--muted);
        font-size: 14px;
        font-weight: 600;
    }

    input:not([type='checkbox']):not([type='radio']):not([type='file']),
    select,
    textarea {
        min-height: 48px;
        padding: 11px 14px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--surface-2);
        color: var(--ink);
        font-size: 15px;
        line-height: 1.5;
    }

    input:not([type='checkbox']):not([type='radio']):not([type='file']),
    select {
        height: 48px;
    }

    input::placeholder,
    textarea::placeholder {
        color: var(--faint);
        opacity: 1;
    }

    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: var(--brand);
        box-shadow: 0 0 0 3px var(--accent-soft);
        background: var(--surface);
    }

    input:read-only,
    input:disabled,
    select:disabled {
        background: var(--surface-2);
        color: var(--faint);
    }

    input[type='checkbox'],
    input[type='radio'] {
        width: 18px;
        height: 18px;
        accent-color: var(--action);
    }

    .hint,
    small {
        color: var(--faint);
    }

    .required {
        color: var(--danger);
        font-size: 12px;
    }

    .workspace,
    .workspace:has(.board-page),
    .topbar .wrap,
    .company-footer > .wrap {
        width: min(1280px, calc(100% - 64px));
    }

    .workspace,
    .workspace:has(.board-page) {
        padding-block: 40px 72px;
    }

    .page-heading {
        gap: 20px;
        margin-bottom: 28px;
    }

    .page-heading .hint {
        margin-top: 8px;
        font-size: 14px;
    }

    .eyebrow {
        color: var(--brand);
        font-size: 13px;
        letter-spacing: 0;
        font-weight: 600;
    }

    .topbar {
        border-bottom: 1px solid var(--line);
        background: color-mix(in oklab, var(--surface) 94%, transparent);
        backdrop-filter: blur(16px);
    }

    .topbar .wrap {
        min-height: 72px;
        padding-block: 12px;
        gap: 24px;
    }

    .brand {
        gap: 14px;
    }

    .brand .company-logo {
        width: 94px;
        max-height: 40px;
        padding: 3px;
        border-radius: 8px;
        background: #fff;
    }

    :root[data-theme='dark']
    :is(.company-logo, .region-logo, .footer-logo, .login-company-logo) {
        filter: grayscale(1) invert(1);
        mix-blend-mode: screen;
        background: transparent;
        border-radius: 0;
    }
    @media (prefers-color-scheme: dark) {
        :root:not([data-theme='light']):not([data-theme='dark'])
        :is(.company-logo, .region-logo, .footer-logo, .login-company-logo) {
            filter: grayscale(1) invert(1);
            mix-blend-mode: screen;
            background: transparent;
            border-radius: 0;
        }
    }

    .brand .brand-text {
        padding-left: 14px;
        border-left-color: var(--line);
    }

    .brand .brand-text strong {
        font-size: 16px;
        font-weight: 750;
        color: var(--ink);
    }

    .brand .brand-text > span {
        margin-top: 2px;
        color: var(--faint);
        font-size: 11px;
    }

    .topbar .gnav ul {
        gap: 4px;
    }

    .topbar .gnav a {
        display: block;
        max-width: 240px;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 40px;
        padding: 9px 12px;
        border-radius: 12px;
        color: var(--muted);
        font-size: 15px;
        font-weight: 650;
    }

    .topbar .gnav a:hover {
        background: var(--surface-2);
        color: var(--ink);
    }

    .topbar .gnav a[aria-current='page'] {
        background: var(--accent-soft);
        color: var(--brand);
        font-weight: 650;
    }

    .topbar .gnav .nav-new {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        margin-left: 6px;
        padding: 2px 4px;
        border-radius: 4px;
        background: var(--accent-soft);
        color: var(--brand);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0;
        vertical-align: middle;
    }

    .topbar .gnav .nav-new[hidden] {
        display: none;
    }

    .top-actions {
        gap: 8px;
    }

    .top-actions .icon-btn,
    #notification-toggle {
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: var(--muted);
    }

    .top-actions .icon-btn:hover {
        background: var(--surface-2);
        color: var(--ink);
    }

    .theme-menu {
        position: relative;
    }

    .theme-menu > summary {
        list-style: none;
        cursor: pointer;
    }

    .theme-menu > summary::-webkit-details-marker {
        display: none;
    }

    .theme-options {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 100;
        width: 168px;
        padding: 6px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .theme-options > button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 40px;
        padding: 9px 12px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--ink);
        text-align: left;
        font-size: 14px;
    }

    .theme-options > button:hover {
        background: var(--surface-2);
    }

    .theme-options > button[aria-pressed='true'] {
        background: var(--surface-2);
        color: var(--brand);
    }

    .theme-options > button[aria-pressed='true']::after {
        content: '✓';
    }

    .theme-icon {
        width: 20px;
        height: 20px;
    }

    .theme-icon-dark,
    .theme-icon-auto {
        display: none;
    }

    :root[data-theme='dark'] .theme-icon-light,
    :root[data-theme='auto'] .theme-icon-light {
        display: none;
    }

    :root[data-theme='dark'] .theme-icon-dark,
    :root[data-theme='auto'] .theme-icon-auto {
        display: block;
    }

    .user-menu .user-chip {
        min-height: 40px;
        gap: 8px;
        padding: 4px 10px 4px 4px;
        border: 0;
        border-radius: 999px;
        background: var(--surface-2);
    }

    .user-menu .avatar {
        width: 30px;
        height: 30px;
        background: var(--accent-soft);
        color: var(--brand);
        font-size: 12px;
    }

    .user-menu .who {
        font-size: 14px;
    }

    .user-menu .who b {
        display: block;
        max-width: 120px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .profile-menu > strong {
        overflow-wrap: anywhere;
    }

    .profile-menu,
    .notification-dropdown {
        border: 1px solid var(--line);
        border-radius: 20px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .user-menu .profile-menu {
        width: 260px;
        padding: 16px;
        gap: 4px;
    }

    .profile-menu > strong {
        padding: 8px 10px 12px;
        font-size: 15px;
    }

    .profile-menu > a {
        padding: 10px;
        border-radius: 10px;
        color: var(--muted);
        font-size: 14px;
    }

    .profile-menu > a:hover {
        background: var(--surface-2);
        color: var(--ink);
    }

    .profile-menu form {
        margin-top: 8px;
    }

    .notification-dropdown {
        padding: 18px;
    }

    .notification-dropdown .actions button {
        min-height: 32px;
        padding: 5px 10px;
        font-size: 12px;
    }

    .notification-item,
    .notification-link {
        background: transparent;
        color: var(--ink);
        border: 0;
        border-radius: 10px;
        text-align: left;
        white-space: normal;
        font-weight: 500;
    }

    .notification-item:hover,
    .notification-link:hover {
        background: var(--surface-2);
        color: var(--ink);
    }

    .notification-count {
        background: var(--danger);
        color: var(--surface);
        font-size: 10px;
    }

    .notification-item-heading {
        display: flex;
        align-items: center;
        gap: 4px;
        min-width: 0;
    }

    .notification-item-title {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .notification-new {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
        border: 1px solid var(--danger);
        border-radius: 50%;
        color: var(--danger);
        font-size: 11px;
        line-height: 1;
        font-weight: 600;
    }

    .notification-item-detail {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 2px;
        color: var(--faint);
        font-size: 12px;
        font-weight: 400;
    }

    .notification-item-separator {
        flex: 0 0 2px;
        width: 2px;
        height: 2px;
        border-radius: 50%;
        background: currentColor;
    }

    #notification-message:empty {
        display: none;
    }

    .panel,
    .search-grid,
    .home-recent-card,
    .board-results-card,
    .table-scroll,
    .full-post-card,
    .auth-card {
        border: 1px solid var(--line);
        border-radius: 20px;
        background: var(--surface);
        box-shadow: none;
    }

    .panel {
        padding: 28px;
    }

    .form-grid {
        gap: 22px 24px;
    }

    fieldset {
        min-width: 0;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 14px;
    }

    legend {
        padding-inline: 6px;
        color: var(--muted);
        font-size: 14px;
        font-weight: 600;
    }

    .notice,
    [role='alert'] {
        border-radius: 12px;
        font-size: 14px;
    }

    .notice {
        --notice-ink: light-dark(#254a77, #b9d6ff);
        --notice-surface: light-dark(#f0f5fc, #1b2c43);
        --notice-line: light-dark(#d8e4f4, #35516f);
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 13px 16px;
        margin: 0 0 20px;
        border: 1px solid var(--notice-line);
        border-radius: 8px;
        background: var(--notice-surface);
        color: var(--notice-ink);
        font-size: 14px;
        font-weight: 500;
        line-height: 22px;
        overflow-wrap: anywhere;
    }

    .notice::before {
        content: '';
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        margin-top: 1px;
        background: url(../../images/figma/8401d.svg) center / contain no-repeat;
    }

    .notice--success {
        --notice-ink: light-dark(#236638, #b1dfbc);
        --notice-surface: light-dark(#f0f8f2, #1b3023);
        --notice-line: light-dark(#cee5d4, #365741);
    }

    .notice--success::before {
        background-image: url(../../images/figma/03f60.svg);
    }

    .notice--warning {
        --notice-ink: light-dark(#795710, #f0d18e);
        --notice-surface: light-dark(#fffaef, #362c18);
        --notice-line: light-dark(#efdfb7, #63512b);
    }

    .notice--error,
    .notice[role='alert'] {
        --notice-ink: light-dark(#a12a22, #ffb6b0);
        --notice-surface: light-dark(#fff2f1, #391f20);
        --notice-line: light-dark(#efcfcc, #70403e);
        color: var(--notice-ink);
    }

    .notice--error::before,
    .notice[role='alert']::before {
        background-image: url(../../images/figma/dd3d9.svg);
    }

    [role='alert'] {
        color: var(--danger);
    }

    .notice-band {
        padding: 10px 24px;
        background: var(--accent-soft);
        color: var(--brand);
        border: 0;
        font-size: 14px;
    }

    .notice-band a {
        color: inherit;
    }

    .notice-band button {
        min-height: 30px;
        padding: 4px 10px;
        font-size: 12px;
    }

    .workspace.management-shell {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 36px;
    }

    .sidebar {
        position: sticky;
        top: 96px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .nav-title {
        padding-inline: 12px;
        color: var(--faint);
        font-size: 12px;
        font-weight: 600;
    }

    .sidebar a {
        padding: 11px 12px;
        border-radius: 12px;
        color: var(--muted);
        font-size: 14px;
        font-weight: 600;
    }

    .sidebar a:hover {
        background: var(--surface-2);
        color: var(--ink);
    }

    .sidebar a[aria-current='page'] {
        background: var(--accent-soft);
        color: var(--brand);
        font-weight: 600;
    }

    .tabs {
        gap: 6px;
        padding: 4px;
        border: 0;
        border-radius: 12px;
        background: var(--surface-2);
    }

    .tabs a {
        padding: 8px 14px;
        border-radius: 10px;
        color: var(--muted);
        font-size: 14px;
    }

    .tabs a[aria-current='page'] {
        background: var(--surface);
        color: var(--ink);
    }

    .table-scroll {
        overflow-x: auto;
    }

    table {
        background: var(--surface);
    }

    th {
        padding: 14px 20px;
        background: var(--surface-2);
        color: var(--faint);
        font-size: 12px;
        font-weight: 600;
        border-bottom: 1px solid var(--line);
    }

    td {
        padding: 18px 20px;
        border-bottom: 1px solid var(--line);
        color: var(--muted);
        font-size: 14px;
        vertical-align: middle;
    }

    tbody tr:last-child td {
        border-bottom: 0;
    }

    tbody tr:hover {
        background: color-mix(in oklab, var(--surface-2) 65%, var(--surface));
    }

    td strong {
        color: var(--ink);
        font-weight: 600;
    }

    td .actions {
        align-items: center;
        gap: 8px;
    }

    .account-actions {
        width: 264px;
        min-width: 264px;
    }

    .badge,
    .home-state {
        padding: 4px 8px;
        border: 0;
        border-radius: 8px;
        font-size: 12px;
        line-height: 1.4;
        font-weight: 600;
    }

    .role-badge {
        border-radius: 8px;
        padding: 4px 8px;
    }

    .home-heading {
        margin-block: 4px 32px;
    }

    .home-heading h1 {
        font-size: clamp(26px, 2.5vw, 34px);
        line-height: 1.35;
        font-weight: 750;
    }

    .home-heading .hint {
        font-size: 14px;
    }

    .home-heading .button,
    .board-heading-actions > .button {
        min-height: 48px;
        padding: 12px 20px;
        border-radius: 14px;
        font-size: 14px;
    }

    .home-page .home-status-grid {
        gap: 12px;
        margin-bottom: 36px;
    }

    .home-page .home-status-grid a {
        min-height: 116px;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: var(--surface);
    }

    .home-status-label {
        color: var(--muted);
        font-size: 14px;
    }

    .home-page .home-status-grid .is-zero,
    .board-page .status-tabs .is-zero {
        color: var(--faint);
    }

    .home-page .home-status-grid strong {
        font-size: 32px;
        line-height: 1.2;
        font-weight: 700;
    }

    .home-work-grid {
        gap: 32px;
    }

    .home-section-heading {
        margin-bottom: 14px;
    }

    .home-section-heading h2 {
        font-size: 21px;
        font-weight: 700;
    }

    .home-section-heading > a {
        font-size: 13px;
        font-weight: 500;
    }

    .home-ticket-row {
        padding: 20px 22px;
        border-bottom-color: var(--line);
    }

    .home-ticket-heading > a,
    .home-ticket-heading > strong {
        font-size: 15px;
        font-weight: 650;
    }

    .home-ticket-meta {
        color: var(--faint);
        font-size: 12px;
    }

    .answerer-kpis {
        gap: 16px;
        margin-block: 0 28px;
    }

    .answerer-kpis > a,
    .answerer-kpis > .panel {
        margin: 0;
        padding: 24px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: var(--surface);
    }

    .answerer-kpis > a > span,
    .answerer-kpis > .panel > span {
        color: var(--muted);
        font-size: 14px;
    }

    .answerer-kpis strong,
    .answerer-kpis h2 {
        color: var(--ink);
        font-size: 32px;
        font-weight: 700;
    }

    .answerer-kpis small {
        color: var(--faint);
        font-size: 12px;
    }

    .board-page .eyebrow {
        display: none;
    }

    .board-page h1 {
        font-size: 32px;
    }

    .board-page .page-heading {
        align-items: center;
        margin-bottom: 26px;
    }

    .board-heading-actions {
        gap: 12px;
    }

    .board-help-group > span {
        color: var(--faint);
        font-size: 12px;
    }

    .board-help summary {
        min-height: 34px;
        padding: 7px 10px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--faint);
        font-size: 12px;
    }

    .board-help summary:hover,
    .board-help[open] summary {
        background: var(--surface-2);
        color: var(--ink);
    }

    .board-help-content,
    .status-history-popup {
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 18px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .board-page .status-tabs {
        grid-template-columns: repeat(7, minmax(76px, 1fr));
        overflow-x: auto;
        padding: 8px;
        gap: 4px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: var(--surface);
    }

    .board-page .status-tabs a {
        min-width: 82px;
        padding: 12px 8px;
        border-radius: 14px;
    }

    .board-page .status-tabs a[aria-current='page'] {
        background: var(--accent-soft);
    }

    .board-page .status-tabs strong {
        font-size: 26px;
        font-weight: 700;
    }

    .status-tab-label {
        font-size: 13px;
    }

    .board-search {
        padding: 16px;
        border-radius: 18px;
    }

    .search-grid {
        padding: 18px;
    }

    .board-search
    input:not([type='checkbox']):not([type='radio']):not([type='file']),
    .board-search select,
    .search-grid input:not([type='checkbox']):not([type='radio']),
    .search-grid select {
        min-height: 44px;
        height: 44px;
        padding-block: 9px;
        font-size: 14px;
    }

    .board-search .search-input-wrap input[type='search'] {
        padding-left: 42px;
    }

    .board-search .detail-filter-toggle,
    .board-search .search-submit,
    .search-grid > button,
    .search-grid > a {
        min-height: 44px;
        height: 44px;
        padding: 9px 14px;
        font-size: 14px;
    }

    .advanced-filters {
        gap: 16px;
        margin-top: 18px;
        padding-top: 18px;
    }

    .advanced-filters label {
        font-size: 12px;
    }

    .board-search .filter-chip {
        min-height: 30px;
        height: auto;
        padding: 5px 10px;
        border: 0;
        border-radius: 8px;
        background: var(--accent-soft);
        color: var(--brand);
        font-size: 12px;
    }

    .filter-count {
        background: var(--action);
        color: #fff;
        font-size: 11px;
    }

    .applied-filters {
        margin-top: 14px;
        gap: 6px;
        font-size: 12px;
    }

    .board-results-card .table-scroll {
        border: 0;
        border-radius: 0;
    }

    .board-results-card .search-results-heading {
        padding: 18px 22px;
        font-size: 14px;
    }

    .result-sort label {
        font-size: 12px;
    }

    .result-sort select {
        width: 150px;
        min-height: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .post-table .post-link {
        color: var(--ink);
        font-size: 15px;
        font-weight: 600;
    }

    .post-table .cell-org strong {
        font-size: 13px;
    }

    .post-table small {
        font-size: 12px;
        color: var(--faint);
    }

    .pagination,
    .board-page .board-pagination {
        gap: 6px;
        padding: 18px;
    }

    .pagination > a,
    .board-page .board-pagination a,
    .board-pagination .page-empty,
    .board-pagination .page-disabled {
        min-width: 36px;
        min-height: 36px;
        padding: 7px 11px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--muted);
        font-size: 14px;
        font-weight: 600;
    }

    .pagination > a:hover {
        background: var(--surface-2);
        color: var(--ink);
    }

    .board-page .board-pagination [aria-current='page'] {
        background: var(--action);
        color: #fff;
    }

    .panel-backdrop {
        min-height: 100dvh;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgb(0 0 0 / .35);
        backdrop-filter: blur(4px);
    }

    .panel-backdrop:hover {
        background: rgb(0 0 0 / .35);
        color: inherit;
        filter: none;
    }

    .detail-panel {
        top: 16px;
        right: 16px;
        bottom: 16px;
        width: min(680px, calc(100vw - 72px));
        height: calc(100dvh - 32px);
        border: 1px solid var(--line);
        border-radius: 24px;
        background: var(--surface);
        box-shadow: 0 20px 80px rgb(0 0 0 / .2);
    }

    .detail-panel .panel-toolbar {
        min-height: 64px;
        padding: 14px 20px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
    }

    .panel-toolbar .panel-icon-button,
    .panel-nav .panel-icon-button {
        min-height: 34px;
        height: 34px;
        width: 34px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: var(--surface-2);
        color: var(--muted);
    }

    .panel-toolbar .expand-post,
    .full-post-toolbar > .button {
        min-height: 34px;
        padding: 7px 10px;
        border-radius: 10px;
        font-size: 12px;
    }

    .detail-panel .post-detail {
        padding: 26px;
        min-height: calc(100dvh - 96px);
        background: var(--surface);
    }

    .full-post-card {
        border-radius: 24px;
    }

    .full-post-toolbar {
        padding: 16px 26px;
        border-bottom-color: var(--line);
    }

    .full-post-card .post-detail {
        padding: 32px;
        background: var(--surface);
    }

    .full-post-heading h1 {
        color: var(--faint);
        font-size: 16px;
    }

    .post-detail .post-title {
        font-size: 24px;
        font-weight: 750;
        line-height: 1.45;
    }

    .post-category {
        color: var(--faint);
        font-size: 12px;
    }

    .post-meta-row,
    .post-byline {
        color: var(--faint);
        font-size: 12px;
    }

    .status-history > summary {
        padding: 6px 9px;
        border-radius: 9px;
        border-color: transparent;
        background: color-mix(in oklab, var(--c) 9%, var(--surface));
    }

    .status-history-popup {
        padding: 16px;
    }

    .post-body {
        padding-block: 26px;
    }

    .post-body .content {
        font-size: 15px;
        line-height: 1.8;
    }

    .post-owner-actions {
        gap: 8px;
    }

    .detail-tool {
        margin-bottom: 10px;
        border: 0;
        border-radius: 14px;
        background: var(--surface-2);
    }

    .detail-tool > summary {
        padding: 14px 16px;
        color: var(--muted);
        font-size: 13px;
    }

    .detail-tool > form {
        padding: 0 16px 18px;
    }

    .detail-tool input:not([type='checkbox']),
    .detail-tool select {
        min-height: 42px;
        height: 42px;
        font-size: 14px;
    }

    .detail-tool button {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .detail-tool textarea {
        min-height: 90px;
        background: var(--surface);
        font-size: 14px;
    }

    .conversation-section {
        padding-top: 24px;
        border-top-color: var(--line);
    }

    .conversation-heading {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .conversation-list {
        gap: 24px;
    }

    .conversation-byline {
        gap: 5px 8px;
        font-size: 12px;
    }

    .conversation-team,
    .conversation-byline time {
        color: var(--faint);
        font-size: 11px;
    }

    .conversation-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .is-staff .conversation-avatar {
        background: var(--action);
        color: #fff;
    }

    .is-writer .conversation-avatar {
        background: color-mix(in oklab, var(--s-recv) 12%, var(--surface));
        color: var(--s-recv);
    }

    .conversation-bubble {
        padding: 13px 16px;
        border: 0;
        border-radius: 4px 16px 16px 16px;
        background: var(--surface-2);
        color: var(--ink);
        font-size: 14px;
        line-height: 1.7;
    }

    .is-staff .conversation-bubble {
        background: var(--accent-soft);
    }

    .conversation-delete-form {
        display: flex;
        justify-content: flex-end;
        margin: 8px 0 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .conversation-composer {
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--surface);
    }

    .conversation-composer:focus-within {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

    .conversation-composer textarea {
        min-height: 80px;
        height: 80px;
        padding: 14px 16px;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        background: transparent;
        font-size: 14px;
    }

    .conversation-composer textarea:focus {
        box-shadow: none;
    }

    .conversation-composer .composer-files {
        padding: 10px 14px;
    }

    .composer-file-trigger {
        color: var(--muted);
        font-size: 12px;
    }

    .composer-file-hint {
        color: var(--faint);
        font-size: 10px;
    }

    .conversation-submit {
        padding: 10px 14px;
    }

    .conversation-submit select {
        width: 112px;
        height: 36px;
        min-height: 36px;
        padding: 6px 8px;
        font-size: 12px;
        border: 0;
    }

    .conversation-submit button {
        min-height: 36px;
        padding: 8px 13px;
        font-size: 12px;
    }

    .attachment-chips .file-chip {
        padding: 7px 10px;
        border: 0;
        border-radius: 10px;
        background: var(--surface-2);
        color: var(--brand);
        font-size: 12px;
    }

    .attachment-item > button,
    .attachment-chips .attachment-item > button,
    .file-selection button {
        min-height: 32px;
        padding: 6px 10px;
        border-radius: 9px;
        font-size: 12px;
    }

    .attachment-image-preview img,
    .pending-file-preview img,
    .pending-file-preview video {
        border-radius: 14px;
        background: var(--surface-2);
    }

    .file-selection li {
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--surface);
        font-size: 13px;
    }

    .upload-picker input[type='file']::file-selector-button {
        min-height: 40px;
        padding: 9px 13px;
        border: 0;
        border-radius: 10px;
        background: var(--surface-2);
        color: var(--muted);
        font: inherit;
        font-size: 13px;
    }

    .notice-popup {
        padding: 28px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: var(--surface);
        box-shadow: 0 24px 80px rgb(0 0 0 / .2);
    }

    .notice-popup::backdrop {
        background: rgb(0 0 0 / .35);
        backdrop-filter: blur(4px);
    }

    .notice-popup > h2 {
        font-size: 22px;
        font-weight: 750;
        line-height: 1.45;
        margin-bottom: 18px;
    }

    .notice-popup-content {
        color: var(--muted);
        font-size: 15px;
        line-height: 1.75;
    }

    .notice-popup .notice-confirm {
        margin: 24px -28px -28px;
    }

    .notice-popup-footer {
        padding: 16px 22px;
        border-top-color: var(--line);
    }

    .notice-popup .notice-today {
        color: var(--faint);
        font-size: 12px;
    }

    .notice-popup-buttons .button,
    .notice-popup-buttons button {
        min-height: 36px;
        padding: 8px 13px;
        font-size: 12px;
    }

    .notifications-page > h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .notification-tabs {
        padding: 4px;
        border-radius: 12px;
        background: var(--surface-2);
    }

    .notification-tabs a {
        padding: 7px 12px;
        border-radius: 9px;
        color: var(--muted);
        font-size: 13px;
    }

    .notification-tabs a[aria-current='page'] {
        background: var(--surface);
        color: var(--ink);
        box-shadow: 0 1px 3px rgb(0 0 0 / .05);
    }

    .notification-tab-count {
        background: var(--action);
        color: #fff;
    }

    .notification-toolbar button {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .notification-timeline,
    .notification-empty {
        border: 1px solid var(--line);
        border-radius: 20px;
        background: var(--surface);
    }

    .notification-date {
        padding: 12px 20px;
        background: var(--surface-2);
        color: var(--faint);
        font-size: 12px;
    }

    .notification-row-link {
        height: auto;
        min-height: 76px;
        padding: 18px 20px;
        border: 0;
        border-radius: 0;
        background: var(--surface);
        color: var(--ink);
        font-weight: 500;
        text-align: left;
        white-space: normal;
    }

    .notification-row.is-unread .notification-row-link {
        background: color-mix(in oklab, var(--accent-soft) 40%, var(--surface));
    }

    .notification-row-link:hover {
        background: var(--surface-2);
        color: var(--ink);
    }

    .notification-kind-icon {
        border-radius: 12px;
        background: var(--surface-2);
        color: var(--muted);
    }

    .notification-kind-icon.is-answer {
        background: var(--accent-soft);
        color: var(--brand);
    }

    .notification-kind-icon.is-warning {
        background: color-mix(in oklab, var(--s-recv) 10%, var(--surface));
        color: var(--s-recv);
    }

    .notification-empty {
        padding: 52px 24px;
    }

    .notification-empty h2 {
        font-size: 18px;
    }

    .notification-empty-icon {
        background: var(--surface-2);
        color: var(--faint);
    }

    .login {
        padding: 40px 24px;
        background: var(--bg);
    }

    .login-card {
        width: min(1000px, 100%);
        border: 1px solid var(--line);
        border-radius: 28px;
        background: var(--surface);
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .login-side {
        padding: 44px;
        background: var(--accent-soft);
        color: var(--muted);
    }

    .login-company-logo {
        width: 120px;
        height: auto;
        padding: 5px;
        border-radius: 10px;
        background: #fff;
    }

    .login-side h1 {
        color: var(--ink);
        font-size: 32px;
        font-weight: 750;
        line-height: 1.4;
    }

    .login-side p {
        color: var(--muted);
        font-size: 15px;
    }

    .login-side ul {
        gap: 14px;
        color: var(--muted);
        font-size: 14px;
    }

    .login-side li::before {
        width: 6px;
        height: 6px;
        background: var(--brand);
        opacity: 1;
    }

    .login-form {
        padding: 44px;
        gap: 20px;
    }

    .login-form h2 {
        font-size: 26px;
        font-weight: 750;
    }

    .login-form .lead {
        font-size: 14px;
    }

    .login-form form label {
        margin-top: 14px;
    }

    .login-form form button {
        min-height: 48px;
        margin-top: 20px;
        border-radius: 14px;
    }

    .auth-card {
        padding: 32px;
        border-radius: 24px;
    }

    .auth-card h1 {
        margin: 12px 0;
        font-size: 28px;
    }

    .auth-card p:not(.eyebrow) {
        color: var(--muted);
        font-size: 14px;
    }

    .auth-card > a {
        display: inline-flex;
        margin-top: 20px;
        padding: 9px 12px;
        border-radius: 10px;
        background: var(--surface-2);
        color: var(--muted);
        font-size: 13px;
    }

    .pw-rules {
        padding: 16px;
        border-radius: 14px;
        background: var(--surface-2);
    }

    .company-footer {
        padding-block: 30px;
        border-top: 1px solid var(--line);
        background: var(--surface);
    }

    .company-footer > .wrap {
        gap: 24px;
        align-items: flex-start;
    }

    .footer-company {
        color: var(--faint);
        font-size: 12px;
        line-height: 1.85;
    }

    .footer-company p:first-child {
        color: var(--muted);
        font-weight: 600;
    }

    .footer-company address {
        margin-top: 4px;
    }

    .footer-company small {
        display: block;
        margin-top: 6px;
        color: var(--faint);
        font-size: 11px;
    }

    .footer-logo {
        width: 70px;
        padding: 4px;
        border-radius: 7px;
        background: #fff;
    }
    @media (max-width: 1100px) {
        .topbar .wrap {
            flex-wrap: wrap;
            gap: 12px 20px;
        }

        .topbar .gnav {
            order: 3;
            flex-basis: 100%;
        }

        .workspace.management-shell {
            grid-template-columns: 1fr;
            gap: 24px;
        }

        .sidebar {
            position: static;
        }

        .sidebar nav {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }

        .sidebar .nav-title {
            display: none;
        }
    }
    @media (max-width: 859px) {
        .workspace,
        .workspace:has(.board-page),
        .topbar .wrap,
        .company-footer > .wrap {
            width: calc(100% - 40px);
        }

        .workspace,
        .workspace:has(.board-page) {
            padding-block: 28px 48px;
        }

        .home-work-grid {
            grid-template-columns: 1fr;
            gap: 28px;
        }

        .home-page .home-status-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .page-heading {
            flex-wrap: wrap;
            align-items: flex-start;
        }

        .board-heading-actions {
            justify-content: flex-start;
        }

        .board-page .post-table td {
            padding: 0;
            border: 0;
            font-size: 14px;
        }

        .board-page .post-table tbody tr {
            height: auto;
        }

        .board-page .post-table .cell-title {
            padding-block: 4px;
        }

        .board-page .post-table .cell-date {
            font-size: 12px;
        }

        .form-grid {
            gap: 20px;
        }
    }
    @media (max-width: 600px) {
        .workspace,
        .workspace:has(.board-page),
        .topbar .wrap,
        .company-footer > .wrap {
            width: calc(100% - 32px);
        }

        .topbar .wrap {
            gap: 10px 8px;
            padding-block: 10px;
        }

        .brand {
            gap: 8px;
        }

        .brand .company-logo {
            width: 58px;
            max-height: 34px;
            padding: 2px;
        }

        .brand .brand-text {
            padding-left: 8px;
        }

        .brand .brand-text strong {
            font-size: 14px;
        }

        .brand .brand-text > span {
            font-size: 10px;
        }

        .top-actions {
            gap: 4px;
        }

        .top-actions .icon-btn,
        #notification-toggle {
            width: 32px;
            height: 32px;
            min-height: 32px;
            border-radius: 10px;
        }

        .topbar .user-menu .who {
            display: none;
        }

        .topbar .user-menu .user-chip {
            min-height: 34px;
            padding: 3px;
        }

        .topbar .user-menu .avatar {
            width: 28px;
            height: 28px;
        }

        .topbar .gnav a {
            min-height: 36px;
            padding: 8px 10px;
            font-size: 13px;
        }

        h1,
        .board-page h1 {
            font-size: 27px;
        }

        .home-heading h1 {
            font-size: 27px;
        }

        .panel,
        .auth-card {
            padding: 22px;
            border-radius: 18px;
        }

        .home-page .home-status-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .home-page .home-status-grid a {
            min-height: 98px;
            padding: 16px;
            border-radius: 18px;
        }

        .home-page .home-status-grid strong {
            font-size: 28px;
        }

        .home-ticket-row {
            padding: 18px;
        }

        .home-section-heading h2 {
            font-size: 19px;
        }

        .answerer-kpis {
            grid-template-columns: 1fr;
        }

        .answerer-kpis > a,
        .answerer-kpis > .panel {
            padding: 20px;
        }

        .form-grid,
        .advanced-filters {
            grid-template-columns: 1fr;
        }

        .full-width {
            grid-column: 1;
        }

        .board-search {
            padding: 14px;
        }

        .search-top {
            grid-template-columns: minmax(0, 1fr) auto;
        }

        .search-input-wrap,
        .search-top .search-submit {
            grid-column: 1 / -1;
        }

        .board-page .status-tabs {
            overflow-x: auto;
            justify-content: flex-start;
        }

        .board-page .status-tabs a {
            min-width: 76px;
        }

        .board-results-card .search-results-heading {
            padding: 16px;
        }

        input:not([type='checkbox']):not([type='radio']):not([type='file']),
        select,
        textarea {
            font-size: 16px;
        }

        .full-post-card .post-detail {
            padding: 22px;
        }

        .post-detail .post-title {
            font-size: 22px;
        }

        .conversation-composer .composer-files,
        .conversation-submit {
            grid-column: 1 / -1;
        }

        .conversation-composer textarea {
            font-size: 16px;
        }

        .conversation-submit {
            padding-top: 0;
        }

        .notice-popup {
            padding: 24px;
            border-radius: 22px;
        }

        .notice-popup .notice-confirm {
            margin: 24px -24px -24px;
        }

        .notice-popup-footer {
            padding: 14px 18px;
            gap: 10px;
        }

        .notice-popup .notice-today {
            font-size: 11px;
        }

        .notice-popup-buttons .button,
        .notice-popup-buttons button {
            min-height: 34px;
            padding: 7px 10px;
            font-size: 12px;
        }

        .login {
            padding: 24px 16px;
        }

        .login-card {
            grid-template-columns: 1fr;
            border-radius: 24px;
        }

        .login-side {
            padding: 28px;
            gap: 22px;
        }

        .login-side h1 {
            font-size: 26px;
        }

        .login-side ul {
            display: none;
        }

        .login-form {
            padding: 28px;
        }

        .company-footer > .wrap {
            gap: 14px;
        }

        .footer-logo {
            width: 54px;
        }

        .footer-company p > span {
            display: block;
            margin: 0;
        }
    }
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            transition: none;
        }
    }
}
