:root {
    --bg: #edf7fb;
    --bg-alt: #f8fbfd;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #ffffff;
    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(15, 23, 42, 0.14);
    --text: #102033;
    --muted: #5f7287;
    --primary: #2d8fd8;
    --primary-strong: #1d6fac;
    --accent: #d5a456;
    --accent-soft: rgba(213, 164, 86, 0.14);
    --danger: #b94b46;
    --danger-soft: rgba(185, 75, 70, 0.1);
    --success: #1f8a5a;
    --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.06);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --font-display: "Georgia", "Times New Roman", serif;
    --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(90, 179, 236, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(126, 207, 184, 0.14), transparent 30%),
        linear-gradient(180deg, #eef8fb 0%, #f8fbfd 48%, #eef6fa 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    border: 0;
}

img {
    display: block;
    max-width: 100%;
}

.app-shell {
    min-height: 100vh;
}

.login-page,
.sender-dashboard,
.public-card-page,
.admin-page {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 18px 14px 32px;
}

.panel,
.card-panel,
.card-hero,
.login-hero-panel,
.login-form-panel,
.stat-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.panel,
.card-panel,
.login-hero-panel,
.login-form-panel {
    padding: 22px;
}

.hero-badge,
.section-eyebrow {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-head {
    display: grid;
    gap: 4px;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.section-head p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-head-split {
    grid-template-columns: 1fr;
}

.section-head-inline {
    position: relative;
    padding-right: 116px;
}

.section-head-chat {
    gap: 8px;
}

.section-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-head-row h2 {
    min-width: 0;
}

.compact-head h2 {
    font-size: 28px;
}

.hero-lead,
.hero-slogan,
.sender-topbar-copy p,
.summary-text,
.record-card p,
.contact-item small,
.slot-item small,
.login-footnote,
.empty-hint {
    line-height: 1.7;
}

.login-page {
    display: grid;
    gap: 16px;
    width: min(100%, 620px);
    padding-top: 20px;
}

.login-hero-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(11, 34, 66, 0.96), rgba(26, 63, 111, 0.94)),
        linear-gradient(180deg, #102745, #1a4071);
    color: #f8fbff;
}

.login-hero-panel::before {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(213, 164, 86, 0.2);
    filter: blur(4px);
}

.login-hero-panel .hero-badge {
    color: rgba(232, 240, 251, 0.78);
}

.login-hero-panel h1,
.sender-topbar h1,
.hero-copy h1,
.admin-header-copy h1 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.05;
}

.login-hero-panel h1 {
    font-size: clamp(34px, 10vw, 52px);
}

.hero-lead {
    margin: 16px 0 0;
    color: rgba(236, 243, 251, 0.88);
}

.hero-slogan {
    margin: 18px 0 0;
    font-size: 22px;
    color: #f5d29a;
    font-weight: 600;
}

.hero-note-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 22px;
    overflow-x: hidden;
}

.hero-note-row span,
.hero-chip,
.status-pill,
.record-status,
.card-item-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
}

.hero-note-row span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f7fafc;
    min-height: 30px;
    padding: 6px 12px;
    font-size: 11px;
    white-space: nowrap;
    flex: 0 1 auto;
}

.login-form-panel {
    background: rgba(255, 255, 255, 0.95);
}

.login-toggle-link {
    width: 100%;
    margin-top: 14px;
    padding: 8px 0 2px;
    color: var(--muted);
    background: transparent;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}

.login-toggle-link:hover {
    color: var(--primary);
}

.login-password-panel {
    display: none;
    margin-top: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
    box-shadow: var(--shadow-soft);
}

.login-password-panel.is-open {
    display: grid;
    gap: 14px;
}

.login-password-head h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.stack-form {
    display: grid;
    gap: 14px;
}

.stack-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.stack-form label.agreement-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: nowrap;
    color: var(--muted);
    line-height: 1.7;
}

.agreement-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 18px;
}

.agreement-check span {
    flex: 1 1 auto;
    min-width: 0;
}

.agreement-check a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.captcha-field {
    display: grid;
    gap: 10px;
}

.captcha-preview-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.captcha-image {
    width: 132px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f5f8fc;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.captcha-refresh-btn {
    min-height: 44px;
    padding: 10px 16px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"],
input[type="color"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    color: var(--text);
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(21, 58, 106, 0.32);
    box-shadow: 0 0 0 4px rgba(21, 58, 106, 0.08);
}

textarea {
    min-height: 96px;
    resize: vertical;
}

.primary-btn,
.secondary-btn,
.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.danger-btn:hover,
.action-button:hover {
    transform: translateY(-1px);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.danger-btn:disabled {
    opacity: 0.66;
    cursor: wait;
    transform: none;
}

.primary-btn {
    color: #fffdf9;
    background: linear-gradient(135deg, var(--primary) 0%, #23579a 100%);
    box-shadow: 0 12px 24px rgba(21, 58, 106, 0.22);
}

.secondary-btn {
    color: var(--primary);
    background: rgba(21, 58, 106, 0.06);
    border: 1px solid rgba(21, 58, 106, 0.1);
}

.danger-btn {
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid rgba(185, 75, 70, 0.16);
}

.full-btn {
    width: 100%;
}

.ghost-link {
    color: var(--muted);
}

.logout-form {
    display: inline-flex;
    margin: 0;
}

.logout-form button {
    border: 0;
    font: inherit;
}

.logout-form .ghost-link {
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.logout-form .home-logout-link,
.logout-form .secondary-btn {
    cursor: pointer;
}

.topbar-link {
    flex-shrink: 0;
    padding-top: 0;
    position: absolute;
    top: 4px;
    right: 2px;
    z-index: 2;
}

.form-error {
    margin: 0;
    color: var(--danger);
}

.form-success {
    margin: 0;
    color: var(--success);
}

.login-footnote {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.subtle-footnote {
    margin-top: 14px;
    padding-top: 14px;
}

.sender-dashboard {
    display: grid;
    gap: 16px;
    width: min(100%, 1120px);
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
}

.sender-topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 6px 2px 2px;
    position: relative;
}

.sender-topbar-copy {
    padding-right: 84px;
}

.sender-name-trigger,
.sender-name-static {
    margin: 0;
    padding: 0;
    color: var(--text);
    background: transparent;
    font-family: var(--font-display);
    font-size: clamp(30px, 6vw, 46px);
    line-height: 1.05;
    text-align: left;
    cursor: pointer;
}

.sender-name-static {
    cursor: default;
    font-weight: 400;
}

.sender-name-trigger:hover {
    color: var(--primary);
}

.sender-name-hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.sender-topbar h1 {
    font-size: clamp(30px, 6vw, 46px);
}

.sender-topbar-copy p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
}

.sender-profile-panel {
    margin-top: -4px;
}

.sender-profile-head h2 {
    font-size: 22px;
}

.profile-form-actions {
    justify-content: flex-start;
}

.sender-stats-grid {
    display: grid;
    gap: 12px;
}

.sender-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.stat-panel {
    padding: 18px;
}

.compact-stat-panel {
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 14px 12px;
    border-radius: 18px;
}

.balance-stat-panel {
    position: relative;
}

.stat-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.stat-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.stat-panel-head span {
    margin-bottom: 0;
}

.stat-plus-button {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    background: rgba(21, 58, 106, 0.08);
    border: 1px solid rgba(21, 58, 106, 0.12);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    padding: 0 0 2px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.stat-plus-button:hover {
    transform: translateY(-1px);
    background: rgba(21, 58, 106, 0.12);
    box-shadow: var(--shadow-soft);
}

.stat-panel span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
}

.stat-panel strong {
    display: block;
    font-size: 28px;
    line-height: 1.3;
}

.stat-panel[data-dashboard-jump] {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-panel[data-dashboard-jump]:hover,
.stat-panel[data-dashboard-jump]:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
    outline: none;
}

.stat-panel-wide strong {
    font-size: 18px;
}

.compact-stat-panel strong {
    font-size: 24px;
    line-height: 1;
}

.compact-stat-panel small {
    color: var(--muted);
    font-size: 11px;
}

.reminder-stat-panel {
    background:
        linear-gradient(135deg, rgba(21, 58, 106, 0.96), rgba(34, 87, 154, 0.92)),
        #153a6a;
    color: #f8fbff;
}

.reminder-stat-panel span,
.reminder-stat-panel small,
.reminder-stat-panel strong {
    color: inherit;
}

.floating-refresh-button {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(104px + env(safe-area-inset-bottom));
    z-index: 42;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(21, 58, 106, 0.14);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(21, 58, 106, 0.98), rgba(0, 116, 184, 0.96)),
        #153a6a;
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(21, 58, 106, 0.22);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    user-select: none;
}

.floating-refresh-button:active {
    transform: translateY(1px);
}

.floating-refresh-button.is-dragging {
    cursor: grabbing;
    transform: scale(1.03);
}

.work-report-floating-refresh {
    bottom: calc(28px + env(safe-area-inset-bottom));
}

.appointment-booked-notice {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(31, 138, 90, 0.22);
    border-radius: 8px;
    background: rgba(31, 138, 90, 0.08);
    color: var(--text);
}

.appointment-booked-notice strong {
    color: var(--success);
}

.appointment-booked-notice p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.appointment-modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    align-items: end;
    padding: 18px;
}

.appointment-modal.hidden {
    display: none;
}

.appointment-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(8px);
}

.appointment-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(86vh, 720px);
    margin: 0 auto;
    overflow: auto;
    padding: 18px;
    border-radius: 24px 24px 18px 18px;
    border: 1px solid rgba(197, 223, 250, 0.82);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.24);
}

.appointment-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.98);
}

.appointment-modal-head h2 {
    margin: 2px 0 0;
    color: var(--text);
    font-size: 24px;
    letter-spacing: 0;
}

.appointment-modal-close {
    position: sticky;
    top: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 50%;
    background: #f8fafc;
    color: var(--muted);
    font-size: 26px;
    line-height: 1;
}

.appointment-modal-status {
    display: inline-flex;
    margin-bottom: 12px;
}

.appointment-active-view {
    margin-top: 4px;
}

.appointment-cancel-btn {
    min-height: 42px;
    margin-top: 8px;
}

.appointment-modal-form {
    gap: 14px;
}

.appointment-calendar-wrap {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(173, 211, 255, 0.62);
    border-radius: 18px;
    background: rgba(241, 248, 255, 0.86);
}

.appointment-calendar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.appointment-calendar-title strong {
    color: var(--text);
    font-size: 15px;
}

.appointment-calendar-title span {
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}

.appointment-weekdays,
.appointment-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.appointment-weekdays span {
    text-align: center;
    color: #8a9aab;
    font-size: 12px;
    font-weight: 700;
}

.appointment-calendar-day {
    aspect-ratio: 1;
    min-width: 0;
    padding: 4px 2px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: #94a3b8;
    display: grid;
    place-items: center;
    gap: 1px;
}

.appointment-calendar-placeholder {
    aspect-ratio: 1;
}

.appointment-calendar-day span {
    font-size: 15px;
    font-weight: 800;
}

.appointment-calendar-day small {
    font-size: 10px;
    color: inherit;
}

.appointment-calendar-day.is-available {
    border-color: rgba(14, 139, 220, 0.32);
    background: #eaf6ff;
    color: #047dcc;
    box-shadow: inset 0 0 0 1px rgba(14, 139, 220, 0.08);
}

.appointment-calendar-day.is-selected {
    background: linear-gradient(135deg, #0d8bff, #0077e6);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 126, 231, 0.22);
}

.appointment-calendar-day.is-disabled {
    background: #f1f5f9;
    color: #c0cad6;
}

.appointment-slot-storage {
    display: none !important;
}

.appointment-selected-slot-summary {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(14, 139, 220, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.appointment-selected-slot-summary strong {
    color: var(--text);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.35;
}

.appointment-selected-slot-summary small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.dashboard-home-panel {
    display: grid;
    gap: 16px;
}

.home-welcome-card {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(186, 224, 245, 0.94), rgba(220, 242, 249, 0.96)),
        #d7edf7;
    border: 1px solid rgba(45, 143, 216, 0.12);
    box-shadow: 0 18px 40px rgba(45, 143, 216, 0.12);
}

.home-welcome-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(16, 32, 51, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.home-logout-link {
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    color: var(--primary-strong);
}

.home-welcome-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.home-user-avatar {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border-radius: 22px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.home-user-avatar img,
.home-user-avatar span {
    width: 100%;
    height: 100%;
    border-radius: 18px;
}

.home-user-avatar img {
    object-fit: cover;
}

.home-user-avatar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #e7f5fc);
    color: var(--primary-strong);
    font-size: 28px;
    font-weight: 800;
}

.home-welcome-copy {
    min-width: 0;
}

.home-welcome-copy p,
.home-welcome-copy h1,
.home-welcome-copy small {
    margin: 0;
}

.home-welcome-copy p {
    color: rgba(16, 32, 51, 0.72);
    font-size: 18px;
    font-weight: 700;
}

.home-welcome-copy h1 {
    margin-top: 2px;
    font-family: var(--font-body);
    font-size: clamp(28px, 7vw, 42px);
    line-height: 1.1;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.home-welcome-copy small {
    display: block;
    margin-top: 6px;
    color: rgba(16, 32, 51, 0.64);
}

.home-welcome-note {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
}

.home-welcome-note strong {
    font-size: 14px;
}

.home-welcome-note span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.home-app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-app-card {
    display: grid;
    align-content: space-between;
    min-height: 104px;
    padding: 14px;
    border-radius: 18px;
    color: #123047;
    text-align: left;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.home-app-card span {
    font-size: 13px;
    font-weight: 700;
}

.home-app-card strong {
    font-size: 20px;
    line-height: 1.15;
}

.home-app-card-cyan {
    background: linear-gradient(145deg, #c7eef4, #e8fbff);
}

.home-app-card-blue {
    background: linear-gradient(145deg, #cfe0ff, #edf5ff);
}

.home-app-card-green {
    background: linear-gradient(145deg, #ccefdc, #effbf4);
}

.home-dashboard-panel {
    display: grid;
    gap: 16px;
}

.home-dashboard-board {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
    gap: 14px;
    align-items: stretch;
}

.home-dashboard-ring-card,
.home-chart-card,
.home-dashboard-metric-grid,
.home-dashboard-kpi-grid,
.home-dashboard-action-grid,
.home-dashboard-mini-grid {
    min-width: 0;
}

.home-chart-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(45, 143, 216, 0.1);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
    box-shadow: var(--shadow-soft);
}

.home-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.home-chart-head div {
    display: grid;
    gap: 5px;
}

.home-chart-head span,
.home-chart-head small {
    color: var(--muted);
    font-size: 12px;
}

.home-chart-head strong {
    font-size: 28px;
    line-height: 1;
}

.home-bar-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    min-height: 152px;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.home-bar-item {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: center;
    gap: 7px;
    height: 132px;
}

.home-bar-item i {
    align-self: end;
    width: min(100%, 18px);
    height: var(--bar-height);
    min-height: 8px;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, #67b9ef, #2d8fd8);
    box-shadow: 0 8px 18px rgba(45, 143, 216, 0.18);
}

.home-bar-chart-green .home-bar-item i {
    background: linear-gradient(180deg, #7ed7ba, #31a978);
    box-shadow: 0 8px 18px rgba(49, 169, 120, 0.18);
}

.home-bar-item::before {
    content: attr(data-count);
    position: absolute;
    top: 0;
    color: var(--muted);
    font-size: 11px;
}

.home-bar-item em {
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    white-space: nowrap;
}

.home-dashboard-ring-card {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 253, 0.92));
    box-shadow: var(--shadow-soft);
}

.home-dashboard-ring {
    width: 136px;
    aspect-ratio: 1;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
        conic-gradient(var(--success) 0 38%, #1679b8 38% 72%, rgba(21, 58, 106, 0.16) 72% 100%);
    display: grid;
    place-items: center;
    align-content: center;
    box-shadow: inset 0 0 0 1px rgba(21, 58, 106, 0.08), 0 16px 32px rgba(21, 58, 106, 0.12);
}

.home-dashboard-ring span {
    color: var(--muted);
    font-size: 12px;
}

.home-dashboard-ring strong {
    font-size: 34px;
    line-height: 1;
}

.home-dashboard-ring-copy {
    display: grid;
    gap: 7px;
}

.home-dashboard-ring-copy strong {
    font-size: 18px;
}

.home-dashboard-ring-copy span,
.home-dashboard-ring-copy small {
    color: var(--muted);
    line-height: 1.5;
}

.home-dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.home-dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    grid-column: 1 / -1;
}

.home-kpi-tile,
.home-mini-metric {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 13px 12px;
    border: 1px solid rgba(21, 58, 106, 0.1);
    border-radius: 8px;
    background: rgba(248, 251, 253, 0.86);
    color: var(--text);
    text-align: left;
}

.home-kpi-tile span,
.home-kpi-tile small,
.home-mini-metric span {
    color: var(--muted);
    line-height: 1.35;
}

.home-kpi-tile strong {
    font-size: 28px;
    line-height: 1;
}

.home-dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    grid-column: 1 / -1;
}

.home-action-meter {
    display: grid;
    gap: 7px;
    min-width: 0;
    min-height: 98px;
    padding: 16px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(21, 58, 106, 0.98), rgba(0, 116, 184, 0.94)),
        #153a6a;
    color: #f8fbff;
    text-align: left;
    box-shadow: 0 16px 34px rgba(21, 58, 106, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-action-meter span,
.home-action-meter strong,
.home-action-meter small {
    color: inherit;
}

.home-action-meter strong {
    font-size: 34px;
    line-height: 1;
}

.home-action-meter:hover,
.home-action-meter:focus-visible,
.home-mini-metric:hover,
.home-mini-metric:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.home-dashboard-mini-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    grid-column: 1 / -1;
}

.home-mini-metric {
    cursor: default;
    transition: transform 0.2s ease, background 0.2s ease;
}

button.home-mini-metric {
    cursor: pointer;
}

.home-mini-metric strong {
    font-size: 20px;
    line-height: 1;
}

.dashboard-home-summary-panel {
    display: grid;
    gap: 14px;
}

.dashboard-home-data-panel {
    gap: 18px;
}

.home-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-stat-card {
    display: grid;
    align-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: 126px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
    box-shadow: var(--shadow-soft);
    color: var(--text);
    text-align: left;
}

button.home-stat-card {
    cursor: pointer;
}

.home-stat-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.home-stat-card strong {
    font-size: 34px;
    line-height: 1;
}

.home-stat-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.home-stat-action {
    border-color: rgba(21, 58, 106, 0.16);
    background:
        linear-gradient(135deg, rgba(21, 58, 106, 0.97), rgba(0, 116, 184, 0.94)),
        #153a6a;
    color: #f8fbff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-stat-action span,
.home-stat-action small,
.home-stat-action strong {
    color: inherit;
}

.home-stat-action:hover,
.home-stat-action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(21, 58, 106, 0.2);
    outline: none;
}

.dashboard-home-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-home-detail-panel {
    display: grid;
    gap: 12px;
}

.compact-dashboard-head {
    margin-bottom: 4px;
}

.compact-dashboard-head h2 {
    font-size: 20px;
}

.home-detail-list {
    display: grid;
    gap: 8px;
}

.home-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(248, 251, 253, 0.82);
    color: var(--text);
    text-align: left;
}

.home-detail-row span {
    color: var(--muted);
    line-height: 1.45;
}

.home-detail-row strong {
    font-size: 18px;
    line-height: 1;
}

.home-detail-button {
    width: 100%;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-detail-button:hover,
.home-detail-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(31, 138, 90, 0.08);
    color: var(--success);
    outline: none;
}

.dashboard-home-feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-home-feed-item,
.profile-center-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
    box-shadow: var(--shadow-soft);
}

.dashboard-home-feed-item span,
.profile-center-card span {
    color: var(--muted);
    font-size: 12px;
}

.dashboard-home-feed-item strong,
.profile-center-card strong {
    color: var(--text);
    font-size: 24px;
    line-height: 1.2;
    word-break: break-word;
}

.dashboard-home-feed-item[data-dashboard-jump] {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-home-feed-item[data-dashboard-jump]:hover,
.dashboard-home-feed-item[data-dashboard-jump]:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    outline: none;
}

.profile-center-card strong em {
    font-style: normal;
}

.profile-center-card small {
    color: var(--muted);
    line-height: 1.6;
}

.profile-center-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-name-action-card {
    align-content: center;
}

.profile-name-action-card .compact-action-btn {
    width: 100%;
}

.profile-name-editor {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
    box-shadow: var(--shadow-soft);
}

.profile-balance-card {
    background:
        linear-gradient(135deg, rgba(21, 58, 106, 0.96), rgba(34, 87, 154, 0.92)),
        #153a6a;
    color: #f8fbff;
}

.profile-balance-card span,
.profile-balance-card strong,
.profile-balance-card small {
    color: inherit;
}

.profile-balance-card .primary-btn {
    background: #ffffff;
    color: var(--primary);
    box-shadow: none;
}

.profile-exit-card .secondary-btn {
    justify-self: start;
}

.profile-recharge-record-card .compact-action-btn {
    justify-self: start;
}

.dashboard-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 38;
    padding: 8px max(12px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.dashboard-bottom-nav-inner {
    width: min(100%, 1120px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    align-items: end;
}

.dashboard-tab-menu-wrap {
    position: relative;
    min-width: 0;
}

.dashboard-tab-button,
.dashboard-subnav-button {
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dashboard-tab-button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 6px 2px;
    border-radius: 8px;
    background: transparent;
    color: #5f7287;
}

.dashboard-tab-button:hover,
.dashboard-tab-button:focus-visible,
.dashboard-tab-button.is-active {
    color: var(--success);
    outline: none;
}

.dashboard-tab-button:focus-visible {
    background: rgba(31, 138, 90, 0.08);
}

.dashboard-tab-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-tab-label {
    max-width: 100%;
    color: currentColor;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.dashboard-tab-menu {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%);
    width: min(220px, calc(100vw - 24px));
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.dashboard-tab-menu::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transform: translateX(-50%) rotate(45deg);
}

.dashboard-subnav-button {
    position: relative;
    z-index: 1;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    text-align: left;
}

.dashboard-subnav-button:hover,
.dashboard-subnav-button:focus-visible,
.dashboard-subnav-button.is-active {
    background: rgba(31, 138, 90, 0.08);
    color: var(--success);
    outline: none;
}

.card-management-panel {
    display: grid;
    gap: 16px;
}

.card-management-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(248, 251, 253, 0.84);
}

.card-management-tab-button {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.card-management-tab-button:hover,
.card-management-tab-button:focus-visible,
.card-management-tab-button.is-active {
    background: #ffffff;
    color: var(--success);
    box-shadow: var(--shadow-soft);
    outline: none;
}

.card-management-subpanel {
    display: grid;
    gap: 16px;
}

.card-feature-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(21, 58, 106, 0.12);
    border-radius: 8px;
    background: rgba(248, 251, 253, 0.76);
}

.card-feature-head {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.card-feature-head small {
    color: var(--muted);
    line-height: 1.35;
}

.feature-toggle-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--muted);
    white-space: nowrap;
    cursor: pointer;
}

.feature-toggle-chip input {
    width: 16px;
    height: 16px;
    accent-color: var(--success);
}

.feature-toggle-chip:has(input:checked) {
    border-color: rgba(31, 138, 90, 0.42);
    background: rgba(31, 138, 90, 0.08);
    color: var(--success);
}

.dashboard-collapse-panel {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dashboard-hidden-panel {
    display: none;
}

.style-picker-grid,
.toggle-grid,
.dashboard-card-list,
.accordion-list,
.record-list {
    display: grid;
    gap: 14px;
}

.upload-input-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
    box-shadow: var(--shadow-soft);
}

.compact-upload-card {
    padding: 14px;
    border-radius: 18px;
}

.upload-input-card small {
    display: block;
    color: var(--muted);
    line-height: 1.6;
    margin-top: -2px;
    margin-bottom: 2px;
}

.upload-file-input {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed rgba(21, 58, 106, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.upload-file-input::file-selector-button {
    margin-right: 10px;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    color: #fffdf9;
    background: linear-gradient(135deg, var(--primary) 0%, #23579a 100%);
    cursor: pointer;
    font-weight: 600;
}

.upload-file-input:hover {
    border-color: rgba(21, 58, 106, 0.3);
    background: #ffffff;
}

.upload-file-input:hover::file-selector-button {
    opacity: 0.96;
}

.style-option-card {
    display: block;
}

.style-option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.style-option-visual {
    display: block;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.style-option-visual strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.3;
    white-space: nowrap;
}

.style-option-visual small {
    display: block;
    line-height: 1.6;
    opacity: 0.9;
}

.style-option-card input:checked + .style-option-visual {
    transform: translateY(-2px);
    border-color: rgba(31, 138, 90, 0.94);
    box-shadow: 0 0 0 3px rgba(31, 138, 90, 0.22), 0 18px 36px rgba(15, 23, 42, 0.18);
}

.style-business {
    color: inherit;
}

.style-business .secondary-btn {
    color: var(--primary);
    background: rgba(45, 143, 216, 0.08);
    border-color: rgba(45, 143, 216, 0.12);
}

.style-business .danger-btn {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: rgba(185, 75, 70, 0.14);
}

.style-business .card-validity-editor summary,
.style-business .validity-form label {
    color: var(--text);
}

.style-relaxed {
    color: inherit;
}

.style-minimal {
    color: inherit;
}

.toggle-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "check title"
        "desc desc";
    column-gap: 10px;
    row-gap: 8px;
    align-items: flex-start;
    padding: 16px;
    background: rgba(248, 251, 253, 0.84);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.toggle-panel > span {
    display: contents;
}

.toggle-panel input {
    grid-area: check;
    width: 18px;
    height: 18px;
    margin: 2px 0 0 -2px;
}

.toggle-panel strong {
    grid-area: title;
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    line-height: 1.35;
    white-space: nowrap;
    color: var(--text);
}

.toggle-panel small {
    grid-area: desc;
    display: block;
    color: var(--muted);
    line-height: 1.6;
}

.dashboard-card-list {
    margin-top: 18px;
}

.card-group-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.card-group-section {
    display: grid;
    gap: 12px;
}

.card-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
}

.card-group-head h3,
.card-group-head span {
    margin: 0;
}

.card-group-head h3 {
    font-size: 17px;
    color: var(--text);
}

.card-group-head span {
    color: var(--muted);
    font-size: 12px;
}

.card-group-cards {
    margin-top: 0;
}

.card-item {
    padding: 14px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 253, 0.96)),
        #ffffff;
    box-shadow: var(--shadow-soft);
    color: var(--text);
}

.card-item.is-expired-card {
    filter: grayscale(0.42);
    opacity: 0.78;
}

.card-item-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.card-item-head img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.card-item-head-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.card-item-head h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.25;
}

.card-item-head p,
.card-item-meta,
.summary-copy small,
.summary-meta span,
.empty-hint,
.record-head span {
    margin: 0;
    color: var(--muted);
}

.style-minimal .card-item-head p,
.style-minimal .card-item-meta,
.style-minimal .summary-copy small,
.style-minimal .summary-meta span {
    color: var(--muted);
}

.style-relaxed .card-item-head p,
.style-relaxed .card-item-meta,
.style-relaxed .summary-copy small,
.style-relaxed .summary-meta span {
    color: var(--muted);
}

.card-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.card-item-tags span {
    background: rgba(45, 143, 216, 0.08);
    border: 1px solid rgba(45, 143, 216, 0.1);
    color: var(--primary-strong);
    min-height: 28px;
    padding: 5px 10px;
    font-size: 11px;
}

.style-minimal .card-item-tags span {
    background: rgba(32, 52, 71, 0.08);
    border-color: rgba(32, 52, 71, 0.08);
    color: #284156;
}

.style-relaxed .card-item-tags span {
    background: rgba(45, 143, 216, 0.08);
    border-color: rgba(45, 143, 216, 0.1);
    color: var(--primary-strong);
}

.card-style-description {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(126, 207, 184, 0.12);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.card-item-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
}

.card-validity-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.card-validity-pill,
.card-validity-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
}

.card-validity-pill {
    background: rgba(45, 143, 216, 0.08);
    border: 1px solid rgba(45, 143, 216, 0.1);
    color: var(--primary-strong);
}

.card-validity-state {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #1c6b3c;
}

.card-validity-state.is-expired {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.2);
    color: #a33a3a;
}

.card-validity-state.is-paused {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.24);
    color: #8c5a16;
}

.style-minimal .card-validity-pill {
    background: rgba(32, 52, 71, 0.08);
    border-color: rgba(32, 52, 71, 0.08);
    color: #284156;
}

.style-minimal .card-validity-state {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.16);
    color: #1c6b3c;
}

.style-minimal .card-validity-state.is-expired {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.14);
    color: #a33a3a;
}

.style-minimal .card-validity-state.is-paused {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.16);
    color: #8c5a16;
}

.style-relaxed .card-validity-pill {
    background: rgba(45, 143, 216, 0.08);
    border-color: rgba(45, 143, 216, 0.1);
    color: var(--primary-strong);
}

.card-supplement-section {
    display: block;
    margin-top: 12px;
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(45, 143, 216, 0.08);
    background: rgba(45, 143, 216, 0.04);
    overflow: hidden;
}

.style-minimal .card-supplement-section {
    border-color: rgba(32, 52, 71, 0.08);
    background: rgba(32, 52, 71, 0.04);
}

.style-relaxed .card-supplement-section {
    border-color: rgba(45, 143, 216, 0.08);
    background: rgba(45, 143, 216, 0.04);
}

.card-supplement-head {
    display: grid;
    gap: 4px;
}

.card-supplement-summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 12px 42px 12px 14px;
}

.card-supplement-summary::-webkit-details-marker {
    display: none;
}

.card-supplement-summary::after {
    content: "+";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 143, 216, 0.1);
    color: inherit;
    font-size: 16px;
    line-height: 1;
}

.card-supplement-accordion[open] .card-supplement-summary::after {
    content: "-";
}

.card-supplement-summary-copy {
    display: grid;
    gap: 3px;
}

.card-supplement-summary-copy strong,
.card-supplement-summary-copy small {
    margin: 0;
}

.card-supplement-summary-copy strong {
    font-size: 14px;
}

.card-supplement-summary-copy small {
    line-height: 1.5;
    opacity: 0.86;
}

.card-supplement-panel {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
}

.card-supplement-head strong {
    font-size: 14px;
}

.card-supplement-head small {
    line-height: 1.5;
    opacity: 0.9;
}

.card-supplement-form {
    gap: 10px;
}

.card-supplement-list {
    display: grid;
    gap: 10px;
}

.card-supplement-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(45, 143, 216, 0.08);
    background: rgba(255, 255, 255, 0.74);
}

.style-minimal .card-supplement-item {
    border-color: rgba(32, 52, 71, 0.08);
    background: rgba(32, 52, 71, 0.05);
}

.style-relaxed .card-supplement-item {
    border-color: rgba(45, 143, 216, 0.08);
    background: rgba(255, 255, 255, 0.74);
}

.card-supplement-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.card-supplement-copy strong,
.card-supplement-copy p,
.card-supplement-copy small {
    margin: 0;
}

.card-supplement-copy p {
    line-height: 1.6;
    word-break: break-word;
}

.card-supplement-copy small {
    opacity: 0.82;
}

.card-supplement-item.is-collapsible {
    display: block;
    padding: 0;
    overflow: hidden;
}

.card-supplement-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.card-supplement-toggle-copy {
    min-width: 0;
    display: grid;
}

.card-supplement-toggle-copy strong {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    word-break: break-word;
}

.card-supplement-toggle-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(45, 143, 216, 0.08);
    background: rgba(45, 143, 216, 0.08);
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.style-minimal .card-supplement-toggle-icon {
    border-color: rgba(32, 52, 71, 0.1);
    background: rgba(32, 52, 71, 0.06);
}

.style-relaxed .card-supplement-toggle-icon {
    border-color: rgba(45, 143, 216, 0.08);
    background: rgba(45, 143, 216, 0.08);
}

.card-supplement-item.is-open .card-supplement-toggle-icon {
    transform: rotate(180deg);
}

.card-supplement-body {
    display: none;
    padding: 0 14px 14px;
    border-top: 1px solid rgba(45, 143, 216, 0.08);
}

.style-minimal .card-supplement-body {
    border-top-color: rgba(32, 52, 71, 0.08);
}

.style-relaxed .card-supplement-body {
    border-top-color: rgba(45, 143, 216, 0.08);
}

.card-supplement-item.is-open .card-supplement-body {
    display: grid;
    gap: 12px;
}

.card-supplement-delete-form {
    display: flex;
    justify-content: flex-end;
}

.style-relaxed .card-validity-state {
    background: rgba(255, 250, 239, 0.44);
    border-color: rgba(255, 250, 239, 0.48);
    color: #8b4f2e;
}

.style-relaxed .card-validity-state.is-expired {
    background: rgba(255, 235, 232, 0.7);
    border-color: rgba(255, 217, 210, 0.8);
    color: #b24d42;
}

.style-relaxed .card-validity-state.is-paused {
    background: rgba(255, 250, 239, 0.56);
    border-color: rgba(255, 245, 228, 0.6);
    color: #8b4f2e;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.card-inline-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.inline-actions form {
    margin: 0;
    flex: 1 1 0;
}

.inline-actions > .secondary-btn,
.inline-actions form .danger-btn {
    width: 100%;
    min-width: 0;
}

.inline-actions > .secondary-btn,
.inline-actions > form {
    flex: 1 1 0;
}

.compact-action-btn {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 14px;
    box-shadow: none;
}

.card-inline-actions > a.compact-action-btn,
.card-inline-actions > form .compact-action-btn,
.card-inline-actions > button.compact-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}

.card-inline-actions > a.compact-action-btn,
.card-inline-actions > form,
.card-inline-actions > button.compact-action-btn {
    width: 100%;
}

.card-validity-editor {
    margin-top: 14px;
    border-radius: 18px;
    background: rgba(45, 143, 216, 0.04);
    border: 1px solid rgba(45, 143, 216, 0.08);
    overflow: hidden;
}

.style-minimal .card-validity-editor {
    background: rgba(32, 52, 71, 0.06);
    border-color: rgba(32, 52, 71, 0.06);
}

.style-relaxed .card-validity-editor {
    background: rgba(45, 143, 216, 0.04);
    border-color: rgba(45, 143, 216, 0.08);
}

.card-validity-editor summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
}

.card-validity-editor summary::-webkit-details-marker {
    display: none;
}

.validity-form {
    padding: 0 16px 16px;
}

.dashboard-grid-form {
    grid-template-columns: 1fr;
}

.module-create-entry {
    margin-bottom: 14px;
}

.module-create-sheet {
    margin-bottom: 16px;
}

.action-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.action-row-right {
    justify-content: flex-end;
}

.action-row-forms {
    align-items: center;
    flex-wrap: wrap;
}

.action-form-inline {
    margin: 0;
    display: flex;
}

.action-btn {
    min-width: 112px;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 22px;
    font-size: 14px;
    box-shadow: none;
}

.action-row .danger-btn.action-btn {
    min-width: 112px;
}

.builder-type-grid {
    display: grid;
    gap: 18px;
}

.builder-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.builder-mode-button {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(21, 58, 106, 0.08);
    background: rgba(255, 255, 255, 0.76);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.builder-mode-button.is-active {
    background: linear-gradient(135deg, #153a6a, #255aa1);
    color: #f8fbff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(21, 58, 106, 0.22);
}

.card-view-toggle-button {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(21, 58, 106, 0.08);
    background: rgba(255, 255, 255, 0.76);
    color: #153a6a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.card-view-toggle-button:hover:not(:disabled) {
    border-color: rgba(37, 90, 161, 0.24);
    box-shadow: 0 10px 24px rgba(21, 58, 106, 0.12);
}

.card-view-toggle-button:disabled {
    cursor: not-allowed;
    color: var(--muted);
    opacity: 0.72;
    box-shadow: none;
}

.builder-type-card {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 250, 255, 0.92) 100%);
    box-shadow: var(--shadow-soft);
}

.builder-type-card-company {
    background:
        radial-gradient(circle at top right, rgba(21, 58, 106, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 248, 253, 0.92) 100%);
}

.builder-type-head {
    display: grid;
    gap: 8px;
}

.builder-type-head h3 {
    margin: 0;
    font-size: 24px;
    color: var(--text);
}

.builder-type-head p:last-child {
    margin: 0;
    color: var(--muted);
}

.builder-template-link {
    justify-self: start;
}

.builder-inline-link {
    display: inline-block;
    margin-left: 6px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.builder-inline-link:hover {
    text-decoration: underline;
}

.builder-advanced-details {
    display: grid;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.builder-advanced-summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-self: end;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(21, 58, 106, 0.08);
    background: rgba(244, 248, 253, 0.92);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.builder-advanced-summary::-webkit-details-marker {
    display: none;
}

.builder-advanced-summary:hover {
    border-color: rgba(21, 58, 106, 0.18);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(21, 58, 106, 0.08);
}

.builder-advanced-summary-close {
    display: none;
}

.builder-advanced-details[open] .builder-advanced-summary-open {
    display: none;
}

.builder-advanced-details[open] .builder-advanced-summary-close {
    display: inline;
}

.builder-advanced-panel {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.builder-advanced-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.card-preview-modal-card {
    width: min(100%, 560px);
    max-height: min(88vh, 960px);
}

.card-preview-showcase {
    display: grid;
    justify-items: center;
    margin: 4px 0 14px;
}

.card-preview-showcase-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    width: min(100%, 238px);
    min-height: 248px;
    padding: 18px 16px;
    border: 1px solid rgba(213, 230, 250, 0.95);
    border-radius: 18px;
    background: #f7fbff;
    box-shadow: 0 18px 36px rgba(31, 111, 172, 0.13);
    overflow: hidden;
}

.card-preview-showcase-card > :not(.card-preview-showcase-bg) {
    position: relative;
    z-index: 1;
}

.card-preview-showcase-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-preview-showcase-card > span {
    justify-self: start;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #153a6a;
    font-size: 12px;
    font-weight: 850;
    line-height: 26px;
}

.card-preview-showcase-avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 26px rgba(16, 72, 130, 0.14);
}

.card-preview-showcase-card strong {
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: #061b34;
    font-size: 19px;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
}

.card-preview-showcase-card small,
.card-preview-showcase-card p {
    max-width: 100%;
    margin: 0;
    padding: 3px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
    color: #617386;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
    word-break: break-word;
}

.card-preview-showcase-lines {
    display: grid;
    gap: 7px;
    width: 100%;
    margin-top: 5px;
}

.card-preview-showcase-lines span {
    height: 8px;
    border-radius: 999px;
    background: rgba(138, 164, 190, 0.18);
}

.card-preview-showcase-lines span:nth-child(2) {
    width: 66%;
    justify-self: center;
}

.card-preview-source {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(21, 58, 106, 0.05);
    border: 1px solid rgba(21, 58, 106, 0.08);
}

.card-preview-source span {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
}

.card-preview-source p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
}

.preview-source-title {
    color: var(--text) !important;
    font-weight: 700;
    text-align: center !important;
}

.span-all {
    grid-column: 1 / -1;
}

.accordion-card,
.record-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.accordion-card summary {
    position: relative;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    cursor: pointer;
}

.accordion-card summary::-webkit-details-marker {
    display: none;
}

.accordion-card summary::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 14px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 58, 106, 0.08);
    color: var(--primary);
    font-size: 20px;
    line-height: 1;
}

.accordion-card[open] summary::after {
    content: "-";
}

.summary-copy strong,
.summary-meta span:first-child {
    color: var(--text);
}

.summary-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.accordion-body {
    display: grid;
    gap: 14px;
    padding: 0 16px 16px;
    border-top: 1px solid var(--line);
}

.visitor-log-list {
    gap: 16px;
}

.visitor-log-card summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    min-height: 0;
}

.summary-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
    align-content: start;
}

.summary-meta {
    display: grid;
    align-content: start;
    justify-content: flex-end;
    text-align: right;
}

.visitor-log-card .summary-copy small {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    white-space: normal;
    word-break: break-word;
}

.visitor-intent-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.visitor-intent-score {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.visitor-intent-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(21, 58, 106, 0.08);
    background: rgba(21, 58, 106, 0.06);
    color: var(--primary);
}

.visitor-intent-badge.is-high {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.18);
    color: #177245;
}

.visitor-intent-badge.is-medium {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.18);
    color: #9a6112;
}

.visitor-intent-badge.is-low {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.18);
    color: #526273;
}

.visitor-intent-reason {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.visitor-intent-ai {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 2px;
    border-top: 1px dashed rgba(15, 23, 42, 0.08);
}

.visitor-ai-keyword-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.visitor-ai-keyword {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
    color: #075985;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 759px) {
    .visitor-log-card summary {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .summary-meta {
        justify-content: flex-start;
        text-align: left;
    }
}

.visitor-log-body {
    gap: 12px;
    background: rgba(246, 249, 253, 0.72);
}

.visitor-history-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
}

.visitor-history-answer,
.visitor-history-meta {
    overflow-wrap: anywhere;
}

.visitor-history-answer {
    white-space: pre-wrap;
}

.visitor-history-answer-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 4px;
}

.visitor-history-meta {
    font-size: 12px;
}

.visitor-log-more-button {
    min-height: 42px;
}

.record-card {
    padding: 18px;
}

.record-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.record-head strong {
    font-size: 16px;
}

.record-visitor {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.record-visitor-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(21, 58, 106, 0.08);
}

.record-visitor-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.record-visitor-copy small {
    color: var(--muted);
}

.record-head span,
.record-card p {
    color: var(--muted);
}

.record-question {
    font-weight: 700;
    color: var(--text) !important;
}

.feedback-record-list {
    display: grid;
    gap: 14px;
}

.feedback-record-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.record-head .feedback-scope-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(45, 143, 216, 0.22);
    background: rgba(45, 143, 216, 0.08);
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.record-head .feedback-scope-badge.is-global {
    border-color: rgba(31, 138, 90, 0.28);
    background: rgba(31, 138, 90, 0.09);
    color: var(--success);
}

.feedback-field-group {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.feedback-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.feedback-inline-scope-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid rgba(45, 143, 216, 0.18);
    border-radius: 999px;
    background: rgba(45, 143, 216, 0.05);
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.feedback-inline-scope-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feedback-inline-scope-toggle span {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding-left: 34px;
}

.feedback-inline-scope-toggle span::before,
.feedback-inline-scope-toggle span::after {
    content: "";
    position: absolute;
    top: 50%;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.feedback-inline-scope-toggle span::before {
    left: 0;
    width: 26px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid rgba(45, 143, 216, 0.22);
    background: #e7eef5;
    transform: translateY(-50%);
}

.feedback-inline-scope-toggle span::after {
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(21, 58, 106, 0.18);
    transform: translateY(-50%);
}

.feedback-inline-scope-toggle:has(input:checked) {
    border-color: rgba(31, 138, 90, 0.32);
    background: rgba(31, 138, 90, 0.08);
    color: var(--success);
}

.feedback-inline-scope-toggle:has(input:checked) span::before {
    border-color: rgba(31, 138, 90, 0.36);
    background: var(--success);
}

.feedback-inline-scope-toggle:has(input:checked) span::after {
    transform: translate(10px, -50%);
}

.feedback-record-card {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
    border: 1px solid rgba(21, 58, 106, 0.08);
    box-shadow: var(--shadow-soft);
}

.feedback-inline-actions {
    margin-top: 14px;
}

.work-report-page {
    width: min(100%, 720px);
}

.work-report-hero.is-owner-editable .card-hero-inner {
    z-index: 2;
}

.work-report-hero-edit-button {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #f8fbff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
    cursor: pointer;
}

.work-report-hero-edit-button:hover,
.work-report-hero-edit-button:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.36);
}

.hero-avatar-wrap.work-report-owner-edit-trigger,
.work-report-title-edit-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.work-report-title-edit-trigger h1 {
    margin: 0;
}

.work-report-chat-panel {
    display: grid;
    gap: 14px;
}

.work-report-apply-panel {
    display: grid;
    gap: 14px;
}

.work-report-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(21, 58, 106, 0.1);
    background: rgba(255, 255, 255, 0.78);
}

.work-report-profile-card img {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    flex: 0 0 auto;
}

.work-report-profile-card div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.work-report-profile-card strong {
    color: var(--text);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.work-report-profile-card span {
    color: var(--muted);
    font-size: 12px;
}

.employee-apply-form {
    gap: 12px;
}

.work-report-window {
    min-height: 320px;
    max-height: 560px;
    padding: 2px 4px 2px 0;
}

.work-report-compose-sheet {
    position: sticky;
    bottom: 0;
    margin: 0 -4px -6px;
    border-radius: 22px;
    border: 1px solid rgba(21, 58, 106, 0.1);
    background: rgba(248, 251, 253, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 -14px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.work-report-form {
    margin: 0;
    padding: 12px;
    background: transparent;
    backdrop-filter: none;
}

.work-report-message-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px 58px;
    align-items: end;
    gap: 8px;
    min-height: 48px;
    padding: 5px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.work-report-message-bar textarea {
    width: 100%;
    min-height: 38px;
    max-height: 112px;
    padding: 10px 8px;
    border: 0;
    resize: none;
    outline: none;
    color: var(--text);
    background: transparent;
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
}

.work-report-message-bar textarea::placeholder {
    color: rgba(99, 111, 124, 0.76);
}

.work-report-file-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
}

.work-report-file-trigger:hover {
    background: rgba(21, 58, 106, 0.08);
    color: var(--primary);
}

.work-report-file-trigger input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.work-report-file-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.work-report-send-button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 13px;
}

.work-report-file-hint {
    display: block;
    margin: 7px 3px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.work-report-file-hint.has-files {
    color: var(--primary);
}

.work-report-action-row {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.work-report-history-bubble small {
    display: block;
    margin-top: 8px;
    color: inherit;
    opacity: 0.7;
    font-size: 12px;
}

.work-report-project-meta {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 8px;
    padding: 4px 9px;
    border-radius: 10px;
    background: rgba(213, 164, 86, 0.12);
    border: 1px solid rgba(213, 164, 86, 0.18);
    color: #8a6427;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.work-report-attachment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.work-report-attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.work-report-attachment-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(21, 58, 106, 0.08);
    border: 1px solid rgba(21, 58, 106, 0.1);
    color: var(--primary);
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
}

.work-report-attachment-link {
    text-decoration: none;
}

.work-report-attachment-download {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(21, 58, 106, 0.12);
    background: rgba(255, 255, 255, 0.78);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.user-bubble .work-report-attachment-chip {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
}

.work-report-blocked-panel {
    display: grid;
    gap: 14px;
}

.work-report-entry-edit-modal-card {
    width: min(100%, 520px);
    text-align: left;
}

.work-report-stat-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.work-report-stat-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 10px;
    background: rgba(95, 114, 135, 0.06);
    border: 1px solid rgba(95, 114, 135, 0.1);
    color: rgba(95, 114, 135, 0.88);
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
}

.work-report-list {
    gap: 14px;
}

.work-report-list-toolbar {
    display: flex;
    justify-content: flex-end;
}

.work-report-entry-toolbar {
    margin: 0 0 12px;
}

.work-report-application-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    white-space: nowrap;
}

.work-report-management-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -2px;
    grid-column: 1 / -1;
}

.work-report-application-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(21, 58, 106, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.work-report-top-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.work-report-entry-card,
.boss-briefing-card,
.employee-boss-entry-card {
    position: relative;
    display: grid;
    gap: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
    border-color: rgba(21, 58, 106, 0.08);
}

.employee-boss-entry-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 248, 246, 0.96) 100%),
        radial-gradient(circle at top right, rgba(3, 150, 112, 0.14), transparent 38%);
}

.boss-briefing-card {
    gap: 12px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 253, 0.96) 100%),
        radial-gradient(circle at top right, rgba(213, 164, 86, 0.13), transparent 34%);
}

.boss-briefing-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.boss-briefing-head strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    margin-bottom: 6px;
}

.boss-briefing-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.boss-briefing-count-badge {
    position: static;
    flex: 0 0 auto;
}

.boss-briefing-actions,
#thoughtsPanel .thought-summary-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.boss-briefing-link-button,
.thought-summary-link-button {
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.boss-briefing-link-button:hover,
.thought-summary-link-button:hover {
    color: var(--primary);
}

.boss-briefing-link-button:disabled,
.thought-summary-link-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    text-decoration: none;
}

.work-report-entry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.work-report-entry-head strong {
    display: block;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 6px;
}

.work-report-entry-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.work-report-entry-link {
    display: grid;
    gap: 10px;
}

.work-report-entry-link input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(21, 58, 106, 0.12);
    border-radius: 14px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.86);
    font-size: 13px;
}

.boss-briefing-result {
    display: grid;
    gap: 8px;
    padding: 0;
    border-radius: 18px;
    border: 1px solid rgba(213, 164, 86, 0.22);
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(255, 248, 235, 0.88));
    overflow: hidden;
}

.boss-briefing-result p {
    margin: 0;
    color: var(--text);
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.boss-briefing-result small {
    color: var(--muted);
    line-height: 1.6;
}

.boss-briefing-collapse {
    padding: 0;
}

.boss-briefing-collapse summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    cursor: pointer;
    list-style: none;
    color: var(--text);
    font-weight: 700;
}

.boss-briefing-collapse summary span,
.boss-briefing-collapse summary small {
    min-width: 0;
}

.boss-briefing-collapse summary small {
    text-align: right;
}

.boss-briefing-collapse summary::-webkit-details-marker {
    display: none;
}

.boss-briefing-collapse summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 58, 106, 0.08);
    color: var(--primary);
}

.boss-briefing-collapse[open] summary::after {
    content: "-";
}

.boss-briefing-collapse-body {
    display: grid;
    gap: 8px;
    padding: 0 14px 14px;
}

.boss-briefing-history-modal-card,
.boss-briefing-modal-card,
.thought-summary-history-modal-card,
.thought-summary-modal-card {
    width: min(100%, 640px);
}

.boss-briefing-history-modal-list,
.thought-summary-history-modal-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.thought-summary-history-modal-list details {
    border: 1px solid rgba(218, 207, 255, 0.72);
    border-radius: 14px;
    background: rgba(250, 248, 255, 0.78);
}

.thought-summary-history-modal-list summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    color: #17132a;
    cursor: pointer;
}

.thought-summary-history-modal-list summary span,
.thought-summary-history-modal-list summary small {
    min-width: 0;
}

.thought-summary-history-modal-list summary small {
    text-align: right;
}

.thought-summary-history-modal-list summary::-webkit-details-marker {
    display: none;
}

.thought-summary-history-modal-list summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 85, 221, 0.09);
    color: #7255dd;
}

.thought-summary-history-modal-list details[open] summary::after {
    content: "-";
}

.thought-summary-history-modal-list .thought-summary-body {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}

.thought-summary-modal-card .thought-summary-body {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(218, 207, 255, 0.72);
    border-radius: 14px;
    background: rgba(250, 248, 255, 0.78);
}

.boss-briefing-modal-card .boss-briefing-modal-body {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(21, 58, 106, 0.12);
    border-radius: 14px;
    background: rgba(246, 251, 255, 0.84);
}

.thought-summary-history-modal-list .thought-summary-body p {
    margin: 0;
    color: #2c263a;
    line-height: 1.75;
    white-space: pre-wrap;
}

.thought-summary-modal-card .thought-summary-body p {
    margin: 0;
    color: #2c263a;
    line-height: 1.75;
    white-space: pre-wrap;
}

.work-report-thread-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
    border-color: rgba(21, 58, 106, 0.08);
}

.work-report-thread-card:hover {
    border-color: rgba(21, 58, 106, 0.18);
    box-shadow: 0 16px 34px rgba(21, 58, 106, 0.1);
}

.work-report-thread-summary {
    width: 100%;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 14px;
    padding: 16px 118px 16px 18px;
    cursor: pointer;
    list-style: none;
    text-align: left;
    font: inherit;
}

.work-report-thread-summary::-webkit-details-marker {
    display: none;
}

.work-report-thread-preview {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.work-report-thread-preview p {
    margin: 0;
    color: var(--text);
    line-height: 1.55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-report-thread-preview span {
    color: var(--muted);
    font-size: 12px;
}

.work-report-thread-date-row {
    min-height: 24px;
    display: flex;
    align-items: center;
}

.work-report-thread-badges {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.work-report-thread-delete-form {
    position: absolute;
    right: 18px;
    bottom: 14px;
    z-index: 2;
    margin: 0;
}

.work-report-thread-delete-button {
    min-height: 24px;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(185, 75, 70, 0.08);
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.work-report-thread-delete-button:hover {
    background: rgba(185, 75, 70, 0.14);
}

.work-report-thread-body {
    display: grid;
    gap: 14px;
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(21, 58, 106, 0.08);
    background: rgba(255, 255, 255, 0.46);
}

.work-report-thread-messages {
    display: grid;
    gap: 12px;
}

.work-report-thread-reply-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.work-report-thread-reply-actions .action-btn {
    width: 100%;
}

.work-report-reply-locked {
    padding-top: 2px;
}

.work-report-reply-locked textarea:disabled {
    cursor: not-allowed;
    color: var(--muted);
    border-color: rgba(100, 116, 139, 0.16);
    background: rgba(100, 116, 139, 0.08);
}

.work-report-reply-locked small {
    color: var(--danger);
    font-size: 12px;
    line-height: 1.5;
}

.work-report-thread-modal-card {
    width: min(100%, 720px);
    height: min(86vh, 820px);
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
}

.work-report-thread-modal-card h3 {
    margin-bottom: 14px;
}

.work-report-thread-modal-content {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.work-report-thread-modal-content .work-report-thread-body {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    border-top: 0;
    background: transparent;
}

.work-report-thread-modal-content .work-report-thread-messages {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 4px;
    align-content: start;
    -webkit-overflow-scrolling: touch;
}

.work-report-thread-modal-content .work-report-reply-form {
    flex: 0 0 auto;
}

.work-report-thread-modal-content .chat-bubble,
.work-report-thread-modal-content .chat-bubble p,
.work-report-thread-modal-content .bubble-head,
.work-report-thread-modal-content .bubble-label,
.work-report-thread-modal-content .work-report-thread-bubble small {
    text-align: left;
}

.work-report-thread-bubble small {
    display: block;
    margin-top: 8px;
    color: inherit;
    opacity: 0.7;
    font-size: 12px;
}

.work-report-admin-card {
    display: grid;
    gap: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
    border-color: rgba(21, 58, 106, 0.08);
}

.employee-application-card {
    border-color: rgba(213, 164, 86, 0.2);
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(248, 252, 255, 0.94));
}

.work-report-admin-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
}

.work-report-admin-grid {
    display: grid;
    gap: 12px;
}

.work-report-admin-block,
.work-report-reply-box {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.78);
}

.work-report-admin-block strong,
.work-report-reply-box strong {
    color: var(--text);
    font-size: 14px;
}

.work-report-admin-block p,
.work-report-reply-box p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.work-report-summary-block {
    border-color: rgba(213, 164, 86, 0.22);
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(255, 248, 235, 0.88));
}

.work-report-summary-block small,
.work-report-reply-box small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.work-report-reply-box {
    border-color: rgba(34, 197, 94, 0.16);
    background: rgba(241, 252, 246, 0.86);
}

.work-report-reply-form {
    padding-top: 2px;
}

.employee-application-reason {
    border-color: rgba(213, 164, 86, 0.18);
}

.employee-application-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.employee-application-actions form {
    margin: 0;
}

.employee-management-actions {
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.employee-management-actions .compact-action-btn {
    min-width: 108px;
}

.employee-remark-modal-card {
    width: min(100%, 430px);
    text-align: left;
}

.employee-remark-modal-form textarea {
    min-height: 118px;
}

.employee-remark-modal-actions {
    justify-content: flex-end;
}

.work-report-applications-modal-card {
    width: min(100%, 620px);
    text-align: left;
}

.work-report-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.work-report-modal-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
}

.employee-application-modal-list {
    display: grid;
    gap: 12px;
}

.employee-application-modal-item {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(213, 164, 86, 0.18);
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(248, 252, 255, 0.94));
}

.record-status {
    background: rgba(21, 58, 106, 0.08);
    border: 1px solid rgba(21, 58, 106, 0.08);
    color: var(--primary) !important;
}

.record-status.is-warning {
    background: rgba(213, 164, 86, 0.12);
    border-color: rgba(213, 164, 86, 0.22);
    color: #8a5a12 !important;
}

.record-status.is-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.18);
    color: #15803d !important;
}

.record-status.is-muted {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.14);
    color: var(--muted) !important;
}

.empty-hint {
    margin: 0;
    color: var(--muted);
}

.public-card-shell {
    background:
        radial-gradient(circle at top, rgba(21, 58, 106, 0.18), transparent 24%),
        linear-gradient(180deg, #edf3f8 0%, #f7fafc 50%, #edf2f7 100%);
}

.public-card-page {
    display: grid;
    gap: 14px;
    width: min(100%, 460px);
}

#chatSection {
    order: 1;
}

.card-contact-panel {
    order: 2;
}

.service-panel {
    order: 3;
}

#appointmentSection {
    order: 4;
}

.public-footer {
    order: 99;
}

.card-hero {
    position: relative;
    min-height: 96px;
    overflow: hidden;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    color: #f8fbff;
}

.card-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 16, 29, 0.16), rgba(7, 16, 29, 0.76)),
        linear-gradient(135deg, rgba(9, 27, 52, 0.9), rgba(38, 77, 136, 0.32));
}

.card-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 96px;
    padding: 12px 14px;
    display: grid;
    grid-template-rows: auto 1fr;
}

.hero-contact-trigger {
    position: absolute;
    right: 14px;
    bottom: 20px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fbff;
    font-size: 11px;
    letter-spacing: 0.04em;
    line-height: 1;
    backdrop-filter: blur(8px);
    cursor: pointer;
    z-index: 2;
}

.hero-contact-trigger:hover {
    background: rgba(255, 255, 255, 0.18);
}

.card-hero-top {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.hero-chip {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f8fbff;
}

.hero-chip-soft {
    color: #fff1d8;
}

.card-hero-main {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: end;
    gap: 10px;
}

.hero-avatar-wrap {
    width: 54px;
    height: 54px;
}

.hero-avatar {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 28px rgba(7, 16, 29, 0.22);
}

.hero-copy h1 {
    font-size: clamp(22px, 7vw, 32px);
    line-height: 1.02;
}

.hero-title {
    margin: 4px 0 0;
    font-size: 14px;
    color: rgba(232, 240, 251, 0.92);
}

.hero-company {
    display: inline-flex;
    margin-top: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 11px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-panel {
    background: rgba(255, 255, 255, 0.94);
}

.contact-list,
.slot-list {
    display: grid;
    gap: 12px;
}

.appointment-wechat-hint {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(21, 58, 106, 0.08);
    background: rgba(244, 248, 253, 0.92);
}

.appointment-wechat-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.appointment-wechat-summary div {
    display: grid;
    gap: 4px;
}

.appointment-wechat-summary p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.appointment-wechat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(21, 58, 106, 0.08);
    flex-shrink: 0;
}

.contact-item,
.slot-item,
.action-button {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
    box-shadow: var(--shadow-soft);
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
}

.contact-item div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.contact-item strong {
    word-break: break-word;
}

.compact-contact-panel {
    padding-top: 18px;
    padding-bottom: 18px;
}

.card-contact-panel.hidden {
    display: none;
}

.compact-section-head {
    gap: 6px;
    margin-bottom: 12px;
}

.compact-section-head h2 {
    font-size: 18px;
}

.compact-section-head p:last-child {
    margin: 0;
}

.compact-contact-list {
    gap: 10px;
}

.compact-contact-item {
    padding: 11px 12px;
    border-radius: 16px;
    min-height: 0;
}

.compact-contact-item .contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 10px;
}

.compact-contact-item small {
    font-size: 12px;
}

.compact-contact-item strong {
    font-size: 14px;
    line-height: 1.35;
}

.contact-item-button {
    width: 100%;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.contact-icon,
.action-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(21, 58, 106, 0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.summary-text {
    margin: 0;
    color: #34465a;
    white-space: pre-line;
}

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

.service-switch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.service-switch-button {
    min-height: 116px;
}

.service-switch-button.is-active {
    border-color: rgba(21, 58, 106, 0.18);
    background: linear-gradient(180deg, #eef5fd 0%, #e8f0fa 100%);
    box-shadow: 0 14px 30px rgba(21, 58, 106, 0.12);
}

.collapsible-panel {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hidden-panel {
    display: none;
}

.action-button {
    display: grid;
    gap: 10px;
    justify-items: center;
    min-height: 110px;
    padding: 18px 14px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
}

.action-button strong {
    color: var(--text);
    font-size: 14px;
}

.status-pill {
    background: rgba(21, 58, 106, 0.08);
    border: 1px solid rgba(21, 58, 106, 0.1);
    color: var(--primary);
}

.status-pill-soft {
    min-height: 32px;
    padding: 6px 14px;
    background: rgba(21, 58, 106, 0.06);
    border-color: rgba(21, 58, 106, 0.08);
    box-shadow: none;
    flex: 0 0 auto;
}

.slot-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 16px;
}

.slot-item input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.slot-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.summary-copy small,
.summary-meta span {
    font-size: 12px;
    line-height: 1.4;
}

.chat-window {
    display: grid;
    gap: 12px;
    min-height: 0;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 2px;
    align-content: start;
}

.pause-panel {
    display: grid;
    gap: 16px;
}

.pause-copy-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
    box-shadow: var(--shadow-soft);
}

.pause-copy-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--text);
}

.pause-copy-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.chat-bubble {
    width: fit-content;
    max-width: 88%;
    padding: 15px 16px;
    border-radius: 22px;
    animation: bubble-in 0.24s ease;
}

.bubble-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ai-bubble {
    background: #f9fbfe;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.user-bubble {
    margin-left: auto;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, #285a9a 100%);
}

.bubble-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.ai-content-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(180, 83, 9, 0.28);
    background: #fff7ed;
    color: #9a3412;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.ai-content-label-block {
    margin: 2px 0 8px;
}

.bubble-head .ai-content-label {
    flex: 0 0 auto;
}

.user-bubble .bubble-label {
    color: rgba(255, 255, 255, 0.76);
}

.chat-bubble p {
    margin: 8px 0 0;
    line-height: 1.72;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.loading-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    margin-top: 12px;
}

.chat-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 10px;
    align-items: stretch;
}

.chat-action-row.has-appointment-action {
    grid-template-columns: minmax(68px, 0.9fr) minmax(68px, 0.85fr) minmax(104px, 1.45fr);
}

.appointment-inline-btn {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 800;
    color: var(--brand);
    background: #ffffff;
}

.owner-prompt-entry {
    margin: -4px 0 14px;
}

.owner-prompt-trigger {
    min-height: 40px;
    padding: 10px 16px;
}

.chat-language-select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: var(--text);
    font: inherit;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(15, 23, 42, 0.56) 50%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.56) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.chat-language-select:focus {
    border-color: rgba(21, 58, 106, 0.28);
    box-shadow: 0 0 0 4px rgba(21, 58, 106, 0.08);
}

.chat-submit-btn {
    min-height: 48px;
}

.chat-submit-btn {
    width: 100%;
    justify-content: center;
}

.hidden {
    display: none;
}

.loader-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1s infinite ease-in-out;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.3s;
}

.public-footer {
    padding: 10px 0 12px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.public-footer-link {
    display: inline-grid;
    gap: 4px;
    padding: 0;
    color: inherit;
    background: transparent;
    font-size: inherit;
    cursor: pointer;
}

.public-footer-brand {
    font-size: 15px;
    line-height: 1.2;
}

.public-footer-copy {
    font-size: 11px;
    line-height: 1.45;
    opacity: 0.88;
}

.public-footer-link:hover {
    color: var(--primary);
}

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow-y: auto;
}

.account-modal.hidden {
    display: none;
}

.account-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 16, 29, 0.64);
    backdrop-filter: blur(6px);
}

.account-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 360px);
    max-height: min(88vh, 920px);
    padding: 26px 22px 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.2);
    text-align: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.validity-modal-card {
    text-align: left;
}

.recharge-modal-card {
    width: min(100%, 420px);
    text-align: left;
}

.contact-modal-card {
    width: min(100%, 420px);
    text-align: left;
}

.point-charge-modal-card .point-charge-list {
    margin: 0;
    padding-left: 18px;
    color: #334155;
    line-height: 1.7;
}

.point-charge-modal-card .point-charge-list li + li {
    margin-top: 10px;
}

.point-charge-modal-card .point-charge-list strong {
    color: #111827;
}

.point-charge-modal-card .point-charge-note {
    margin-bottom: 0;
}

.dashboard-confirm-modal-card {
    width: min(78vw, 330px);
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}

.dashboard-confirm-modal-card h3 {
    margin: 0;
    padding: 30px 24px 28px;
    color: #111827;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    white-space: pre-line;
}

.dashboard-confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.dashboard-confirm-actions button {
    min-height: 50px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    font-size: 16px;
    font-weight: 500;
}

.dashboard-confirm-actions button + button {
    border-left: 1px solid rgba(15, 23, 42, 0.1);
}

.dashboard-confirm-actions .secondary-btn {
    color: #111827;
}

.dashboard-confirm-actions .danger-btn {
    color: #07c160;
}

.feedback-modal-card {
    width: min(100%, 520px);
}

.owner-prompt-modal-card {
    width: min(100%, 520px);
}

.validity-modal-card h3,
.validity-modal-card .account-modal-copy,
.validity-modal-card .account-modal-eyebrow,
.recharge-modal-card h3,
.recharge-modal-card .account-modal-copy,
.recharge-modal-card .account-modal-eyebrow,
.contact-modal-card h3,
.contact-modal-card .account-modal-copy,
.contact-modal-card .account-modal-eyebrow {
    text-align: left;
}

.contact-modal-list {
    gap: 10px;
}

.owner-prompt-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.owner-prompt-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.recharge-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.recharge-plan-card {
    position: relative;
    padding: 16px 14px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
    box-shadow: var(--shadow-soft);
}

.recharge-plan-button {
    display: grid;
    gap: 6px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.recharge-plan-button:hover {
    transform: translateY(-1px);
    border-color: rgba(21, 58, 106, 0.16);
    box-shadow: 0 16px 34px rgba(21, 58, 106, 0.1);
}

.recharge-plan-button.is-selected {
    border-color: rgba(21, 58, 106, 0.22);
    background: linear-gradient(180deg, #f7fbff 0%, #eaf3fc 100%);
    box-shadow: 0 18px 38px rgba(21, 58, 106, 0.14);
}

.recharge-plan-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(21, 58, 106, 0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.recharge-plan-price {
    color: var(--primary);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recharge-plan-card strong {
    font-size: 24px;
    line-height: 1.1;
    color: var(--text);
}

.recharge-plan-card small {
    color: var(--muted);
    line-height: 1.6;
}

.recharge-modal-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.recharge-history {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.recharge-history-title {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.recharge-history-list {
    display: grid;
    gap: 10px;
}

.recharge-history-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
}

.recharge-history-item strong {
    color: var(--primary);
    font-size: 16px;
}

.recharge-history-item span {
    color: var(--text);
    font-size: 13px;
}

.recharge-history-item small {
    color: var(--muted);
    font-size: 12px;
}

.recharge-record-modal-card {
    width: min(100%, 620px);
    text-align: left;
}

.recharge-record-list {
    display: grid;
    gap: 12px;
    max-height: min(58vh, 520px);
    overflow-y: auto;
    padding-right: 4px;
}

.recharge-record-item {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
}

.recharge-record-main,
.recharge-record-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.recharge-record-main strong {
    color: var(--text);
    font-size: 16px;
}

.recharge-record-main span {
    color: var(--primary);
    font-size: 17px;
    font-weight: 700;
}

.recharge-record-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(21, 58, 106, 0.07);
    color: var(--muted);
    font-size: 12px;
}

.recharge-record-item small {
    color: var(--muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.recharge-selection-bar {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(21, 58, 106, 0.1);
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
    box-shadow: var(--shadow-soft);
}

.recharge-selection-copy {
    display: grid;
    gap: 4px;
}

.recharge-selection-copy span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recharge-selection-copy strong {
    font-size: 24px;
    line-height: 1.15;
    color: var(--text);
}

.recharge-selection-copy small {
    color: var(--muted);
    line-height: 1.6;
}

.recharge-native-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(7, 193, 96, 0.16);
    background: linear-gradient(180deg, #f7fcf9 0%, #edf8f2 100%);
    text-align: center;
}

.recharge-native-panel.hidden {
    display: none;
}

.recharge-native-qr-wrap {
    margin-bottom: 0;
}

.account-modal-qr-wrap canvas {
    display: block;
    width: 100%;
    border-radius: 16px;
}

.recharge-native-copy {
    display: grid;
    gap: 5px;
}

.recharge-native-copy strong {
    color: var(--text);
    font-size: 16px;
}

.recharge-native-copy small {
    color: var(--muted);
    line-height: 1.6;
}

.voucher-redeem-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 20px;
    border: 1px dashed rgba(21, 58, 106, 0.18);
    background: linear-gradient(180deg, #fffdf8 0%, #f8f5ee 100%);
}

.voucher-redeem-copy {
    display: grid;
    gap: 4px;
}

.voucher-redeem-copy span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.voucher-redeem-copy strong {
    font-size: 18px;
    line-height: 1.3;
    color: var(--text);
}

.voucher-redeem-copy small {
    color: var(--muted);
    line-height: 1.6;
}

.voucher-redeem-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.voucher-redeem-form input {
    min-width: 0;
}

.admin-voucher-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.admin-voucher-stat {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
}

.admin-voucher-stat span {
    color: var(--muted);
    font-size: 12px;
}

.admin-voucher-stat strong {
    color: var(--text);
    font-size: 24px;
}

.admin-voucher-stat-unused {
    background: linear-gradient(180deg, #f5fbf7 0%, #edf8f1 100%);
    border-color: rgba(33, 115, 70, 0.14);
}

.admin-voucher-stat-used {
    background: linear-gradient(180deg, #f9f4e8 0%, #f4ecda 100%);
    border-color: rgba(148, 105, 25, 0.18);
}

.admin-voucher-stat-disabled {
    background: linear-gradient(180deg, #f7f7f7 0%, #eeeeee 100%);
    border-color: rgba(77, 77, 77, 0.16);
}

.admin-voucher-actions {
    align-items: stretch;
}

.admin-voucher-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-voucher-filter-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(16, 69, 120, 0.06);
}

.admin-voucher-filter-tabs a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-voucher-filter-tabs a.is-active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(21, 58, 106, 0.12);
}

.admin-voucher-list {
    display: grid;
    gap: 12px;
}

.admin-voucher-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
}

.admin-voucher-card.is-unused {
    border-color: rgba(33, 115, 70, 0.18);
    background: linear-gradient(180deg, #fbfffc 0%, #f3fbf6 100%);
}

.admin-voucher-card.is-used {
    border-color: rgba(148, 105, 25, 0.18);
    background: linear-gradient(180deg, #fffdf8 0%, #f8f3e9 100%);
}

.admin-voucher-card.is-disabled {
    border-color: rgba(77, 77, 77, 0.14);
    background: linear-gradient(180deg, #fcfcfc 0%, #f2f2f2 100%);
}

.admin-voucher-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-voucher-head strong {
    font-size: 18px;
    letter-spacing: 0.08em;
}

.admin-voucher-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-voucher-head small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.admin-voucher-status {
    font-weight: 700;
}

.admin-voucher-card.is-unused .admin-voucher-status {
    color: #217346;
}

.admin-voucher-card.is-used .admin-voucher-status {
    color: #946919;
}

.admin-voucher-card.is-disabled .admin-voucher-status {
    color: #666;
}

.admin-voucher-meta {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.account-modal-close {
    position: sticky;
    top: 10px;
    z-index: 3;
    display: block;
    margin: -16px 0 -18px auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(21, 58, 106, 0.08);
    color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

.account-modal-close::before,
.account-modal-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transform-origin: center;
}

.account-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.account-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.account-modal-eyebrow {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.account-modal-card h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.account-modal-copy {
    margin: 12px 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.account-modal-qr-wrap {
    width: 188px;
    margin: 0 auto 18px;
    padding: 12px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.account-modal-qr-wrap img {
    width: 100%;
    border-radius: 16px;
}

.attachment-preview-shell {
    background:
        radial-gradient(circle at 18% 8%, rgba(21, 58, 106, 0.12), transparent 28%),
        linear-gradient(180deg, #f5f8fb 0%, #edf3f8 100%);
}

.attachment-preview-page {
    width: min(100%, 980px);
    min-height: 100vh;
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 14px max(28px, env(safe-area-inset-bottom));
    display: grid;
    align-content: start;
    gap: 14px;
}

.attachment-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 2px 4px;
}

.attachment-preview-head h1 {
    margin: 4px 0 5px;
    color: var(--text);
    font-size: clamp(22px, 5vw, 32px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.attachment-preview-head small {
    color: var(--muted);
    font-size: 13px;
}

.attachment-preview-panel {
    display: grid;
    gap: 14px;
    padding: 14px;
}

.attachment-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.attachment-preview-toolbar span {
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.attachment-preview-viewer {
    min-height: 280px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    overflow: hidden;
}

.attachment-preview-viewer img {
    width: 100%;
    height: auto;
}

.attachment-preview-pdf iframe {
    display: block;
    width: 100%;
    height: min(74vh, 820px);
    border: 0;
    background: #ffffff;
}

.attachment-preview-text {
    overflow: auto;
}

.attachment-preview-text pre {
    min-height: 280px;
    margin: 0;
    padding: 16px;
    color: var(--text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.75;
    font-family: var(--font-body);
    font-size: 14px;
}

.attachment-preview-empty {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 18px;
    border: 1px dashed rgba(21, 58, 106, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.attachment-preview-empty h2 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
}

.attachment-preview-empty p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(104px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(calc(100% - 32px), 320px);
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(7, 16, 29, 0.92);
    color: #f8fafc;
    text-align: center;
    z-index: 60;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.modal-error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(185, 75, 70, 0.18);
    background: rgba(185, 75, 70, 0.08);
    color: var(--danger);
    font-size: 13px;
    line-height: 1.6;
}

.share-guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: start center;
    padding: 22px 18px;
}

.share-guide-overlay.hidden {
    display: none;
}

.share-guide-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 16, 29, 0.68);
    backdrop-filter: blur(4px);
}

.share-guide-card {
    position: relative;
    width: min(100%, 360px);
    margin-top: 22px;
    padding: 22px 20px 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 253, 0.98) 100%);
    box-shadow: 0 24px 56px rgba(7, 16, 29, 0.24);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.share-guide-card::after {
    content: "";
    position: absolute;
    top: -10px;
    right: 34px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    transform: rotate(45deg);
}

.share-guide-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(21, 58, 106, 0.08);
    color: var(--primary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.share-guide-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(21, 58, 106, 0.08);
    color: var(--primary);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.share-guide-card h3 {
    margin: 14px 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

.share-guide-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.card-style-business .hero-chip,
.card-style-business .hero-company {
    backdrop-filter: blur(8px);
}

.card-style-relaxed .hero-chip,
.card-style-relaxed .hero-company {
    border-radius: 22px;
}

.card-style-minimal .hero-chip,
.card-style-minimal .hero-company,
.card-style-minimal .chat-bubble,
.card-style-minimal .action-button,
.card-style-minimal .contact-item,
.card-style-minimal .slot-item {
    border-radius: 14px;
}

.card-style-minimal .card-panel {
    background: rgba(255, 255, 255, 0.97);
}

.admin-page {
    display: grid;
    gap: 16px;
    width: min(100%, 1040px);
    padding: 16px 12px 24px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-end;
}

.admin-header-copy h1 {
    font-size: clamp(30px, 4.2vw, 46px);
}

.admin-header-copy p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 520px;
    font-size: 14px;
}

.admin-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-user-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.admin-stats-row,
.admin-dual-grid {
    display: grid;
    gap: 14px;
}

.admin-stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-stat-card {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.admin-stat-card {
    min-height: 94px;
    display: grid;
    align-content: center;
}

.admin-stat-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.admin-stat-card strong {
    font-size: 22px;
    line-height: 1;
}

.highlight-card {
    background: linear-gradient(180deg, rgba(213, 164, 86, 0.16), rgba(255, 255, 255, 0.88));
}

.admin-dual-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
}

.admin-form-panel,
.admin-table-panel {
    width: 100%;
}

.admin-form-span {
    grid-column: 1 / -1;
}

.admin-section-title-row {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.admin-section-title-row h2 {
    margin: 0;
    font-size: 18px;
}

.admin-section-title-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}

.admin-sender-list {
    display: grid;
    gap: 12px;
}

.admin-sender-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 250, 255, 0.9) 100%);
    box-shadow: var(--shadow-soft);
}

.admin-sender-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.admin-upgrade-form,
.admin-upgrade-fields {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-sender-user {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-sender-user strong {
    font-size: 15px;
    color: var(--text);
    word-break: break-word;
}

.admin-sender-user small {
    color: var(--muted);
    line-height: 1.4;
    font-size: 12px;
    word-break: break-all;
}

.admin-sender-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(96px, auto));
    gap: 8px;
}

.admin-sender-metric {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(21, 58, 106, 0.05);
    border: 1px solid rgba(21, 58, 106, 0.08);
}

.admin-sender-metric span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.admin-sender-metric strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.2;
}

.admin-row-actions {
    display: grid;
    gap: 8px;
}

.admin-delete-form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-delete-form input[type="password"] {
    width: 160px;
    min-width: 0;
}

.admin-upgrade-fields input[type="number"] {
    width: 120px;
}

.admin-recharge-summary {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-recharge-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(21, 58, 106, 0.06);
    border: 1px solid rgba(21, 58, 106, 0.08);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.admin-recharge-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.admin-recharge-table-card {
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(45, 143, 216, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 255, 0.92) 100%);
}

.admin-recharge-table-card.is-voucher {
    border-color: rgba(148, 105, 25, 0.18);
    background: linear-gradient(180deg, #fffdf8 0%, #f8f3e9 100%);
}

.admin-recharge-table-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.admin-recharge-table-head h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.25;
}

.admin-recharge-table-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.admin-compact-table-wrap {
    min-width: 0;
    overflow-x: auto;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.admin-compact-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
}

.admin-compact-table th,
.admin-compact-table td {
    padding: 7px 6px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    color: var(--text);
    font-size: 11px;
    line-height: 1.35;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.admin-compact-table th {
    color: var(--muted);
    font-weight: 700;
    background: rgba(21, 58, 106, 0.04);
}

.admin-compact-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-compact-table strong {
    display: block;
    color: var(--text);
    font-size: 11px;
    line-height: 1.3;
}

.admin-compact-table small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.admin-compact-table code {
    display: inline;
    padding: 2px 5px;
    border-radius: 7px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 10px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.admin-sender-usage-table .admin-compact-table {
    min-width: 1200px;
}

.admin-ai-usage-open {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 11px;
    white-space: nowrap;
}

.admin-inline-form {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.admin-inline-form input[type="number"] {
    width: 74px;
    min-width: 0;
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.admin-inline-form input[type="password"] {
    width: 104px;
    min-width: 0;
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.admin-inline-form .secondary-btn,
.admin-inline-form .danger-btn {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 11px;
    white-space: nowrap;
}

.admin-inline-form.is-loading {
    opacity: 0.68;
}

.admin-page.is-refreshing {
    cursor: progress;
}

.admin-page form.is-loading button[type="submit"] {
    cursor: progress;
}

.admin-ai-usage-modal {
    z-index: 72;
}

.admin-ai-usage-modal-card {
    width: min(96vw, 980px);
    max-height: min(88vh, 760px);
    padding: 22px;
    border-radius: 18px;
    text-align: left;
}

.admin-ai-usage-modal-head {
    margin: 0 38px 14px 0;
}

.admin-ai-usage-modal-head p {
    margin: 0 0 4px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.admin-ai-usage-modal-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    line-height: 1.25;
}

.admin-ai-usage-modal-head small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.admin-ai-usage-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
}

.admin-ai-usage-summary-grid span {
    min-width: 0;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(45, 143, 216, 0.13);
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.admin-ai-usage-summary-grid small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.2;
}

.admin-ai-usage-summary-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.admin-ai-usage-table-wrap {
    max-height: 48vh;
    overflow: auto;
}

.admin-ai-usage-table {
    min-width: 940px;
}

.admin-ai-usage-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 720px) {
    .admin-ai-usage-modal-card {
        width: min(96vw, 520px);
        padding: 18px 14px;
    }

    .admin-ai-usage-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-ai-usage-table-wrap {
        max-height: 52vh;
    }
}

.admin-compact-time {
    color: var(--muted);
}

.compact-pagination-row {
    margin-top: 10px;
    gap: 8px;
}

.compact-pagination-row .secondary-btn {
    min-height: 32px;
    padding: 6px 11px;
    font-size: 11px;
}

.compact-pagination-row .pagination-label {
    min-width: 46px;
    font-size: 11px;
}

.admin-recharge-list {
    display: grid;
    gap: 12px;
}

.admin-recharge-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 255, 0.92) 100%);
    box-shadow: var(--shadow-soft);
}

.admin-recharge-card.is-payment {
    border-color: rgba(45, 143, 216, 0.2);
}

.admin-recharge-card.is-voucher {
    border-color: rgba(148, 105, 25, 0.2);
    background: linear-gradient(180deg, #fffdf8 0%, #f8f3e9 100%);
}

.admin-recharge-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.admin-recharge-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-recharge-title span,
.admin-recharge-title small,
.admin-recharge-meta-grid span,
.admin-recharge-reference span,
.admin-recharge-reference em {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.admin-recharge-title strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
}

.admin-recharge-title small {
    word-break: break-all;
}

.admin-recharge-kind {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.admin-recharge-kind.is-payment {
    color: var(--primary);
    background: rgba(45, 143, 216, 0.1);
}

.admin-recharge-kind.is-voucher {
    color: #946919;
    background: rgba(213, 164, 86, 0.16);
}

.admin-recharge-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-recharge-meta-grid div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(21, 58, 106, 0.05);
    border: 1px solid rgba(21, 58, 106, 0.08);
}

.admin-recharge-meta-grid strong {
    color: var(--text);
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.admin-recharge-reference {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.admin-recharge-reference code {
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.admin-recharge-reference em {
    font-style: normal;
    overflow-wrap: anywhere;
}

.admin-log-list {
    display: grid;
    gap: 12px;
}

.admin-log-filter-form {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid rgba(21, 58, 106, 0.08);
    border-radius: 14px;
    background: rgba(21, 58, 106, 0.04);
}

.admin-log-filter-form label {
    display: grid;
    gap: 5px;
    min-width: 150px;
}

.admin-log-filter-form label span,
.admin-log-filter-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.admin-log-filter-form input[type="date"] {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
}

.admin-log-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-log-filter-count {
    align-self: center;
    margin-left: auto;
}

.admin-log-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 250, 255, 0.92) 100%);
    box-shadow: var(--shadow-soft);
}

.admin-log-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.admin-log-card-meta {
    display: grid;
    gap: 4px;
}

.admin-log-card-meta span {
    color: var(--muted);
    font-size: 12px;
}

.admin-log-card-meta strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
}

.admin-log-owner {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-log-owner span,
.admin-log-owner code {
    display: inline-flex;
    max-width: 100%;
    padding: 4px 7px;
    border-radius: 8px;
    color: var(--muted);
    background: rgba(21, 58, 106, 0.05);
    border: 1px solid rgba(21, 58, 106, 0.08);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.admin-log-card-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(104px, auto));
    gap: 8px;
}

.admin-log-metric {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(21, 58, 106, 0.05);
    border: 1px solid rgba(21, 58, 106, 0.08);
}

.admin-log-metric span {
    color: var(--muted);
    font-size: 12px;
}

.admin-log-metric strong {
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
}

.admin-log-card-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-log-block {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-log-block span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.admin-log-block .ai-content-label {
    justify-self: start;
    color: #9a3412;
    font-size: 11px;
    font-weight: 800;
}

.admin-log-block p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}

.admin-review-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-review-stats {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-review-stats span,
.admin-review-filter-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.admin-review-stats span {
    color: var(--muted);
    background: rgba(21, 58, 106, 0.06);
    border: 1px solid rgba(21, 58, 106, 0.08);
}

.admin-review-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-review-filter-tabs a {
    color: var(--primary);
    background: rgba(21, 58, 106, 0.06);
    border: 1px solid rgba(21, 58, 106, 0.1);
}

.admin-review-filter-tabs a.is-active {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}

.admin-review-list {
    display: grid;
    gap: 12px;
}

.admin-review-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.admin-review-card.is-pending {
    border-color: rgba(217, 119, 6, 0.28);
}

.admin-review-card.is-resolved {
    border-color: rgba(185, 75, 70, 0.22);
}

.admin-review-card.is-dismissed {
    border-color: rgba(22, 163, 74, 0.2);
}

.admin-review-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.admin-review-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-review-title span {
    color: var(--muted);
    font-size: 12px;
}

.admin-review-title strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
}

.admin-review-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.admin-review-status.is-pending {
    color: #92400e;
    background: rgba(251, 191, 36, 0.18);
}

.admin-review-status.is-resolved {
    color: var(--danger);
    background: rgba(185, 75, 70, 0.1);
}

.admin-review-status.is-dismissed {
    color: #166534;
    background: rgba(22, 163, 74, 0.1);
}

.admin-review-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-review-meta-grid div {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(21, 58, 106, 0.05);
    border: 1px solid rgba(21, 58, 106, 0.08);
    min-width: 0;
}

.admin-review-meta-grid span,
.admin-review-terms > span,
.admin-review-block span,
.admin-review-ids span,
.admin-review-reviewed span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.admin-review-meta-grid strong {
    color: var(--text);
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.admin-review-terms {
    display: grid;
    gap: 8px;
}

.admin-review-terms div {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-review-terms em {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #9a3412;
    background: rgba(251, 146, 60, 0.12);
    border: 1px solid rgba(251, 146, 60, 0.2);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.admin-review-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-review-block {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-review-block p {
    min-height: 78px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--text);
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
    white-space: pre-wrap;
}

.admin-review-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.admin-review-ids,
.admin-review-reviewed {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.admin-review-ids span,
.admin-review-reviewed span {
    word-break: break-all;
}

.admin-review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-empty-row {
    color: var(--muted);
    padding: 10px 4px 0;
}

.pagination-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.pagination-label {
    color: var(--muted);
    min-width: 64px;
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--muted);
    font-weight: 600;
}

td {
    line-height: 1.7;
}

@keyframes bubble-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.45;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (min-width: 760px) {
    .section-head-split {
        grid-template-columns: 1fr auto;
        align-items: flex-start;
        gap: 12px;
    }

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

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

    .stat-panel-wide {
        grid-column: span 1;
    }

    .style-picker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .dashboard-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .accordion-card summary {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-right: 56px;
    }

    .work-report-admin-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .work-report-top-grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }
}

@media (min-width: 1000px) {
    .login-page {
        width: min(100%, 960px);
        grid-template-columns: 1.08fr 0.92fr;
        align-items: stretch;
    }
}

@media (max-width: 999px) {
    .admin-stats-row,
    .admin-dual-grid,
    .admin-recharge-split-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-upgrade-form,
    .admin-upgrade-fields {
        flex-wrap: wrap;
    }

    .admin-sender-card-head {
        grid-template-columns: 1fr;
    }

    .admin-sender-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-log-card-head,
    .admin-log-card-body,
    .admin-recharge-card-head,
    .admin-review-card-head,
    .admin-review-content-grid,
    .admin-review-foot {
        grid-template-columns: 1fr;
    }

    .admin-log-card-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-recharge-meta-grid,
    .admin-review-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-review-actions {
        justify-content: flex-start;
    }

    .admin-log-filter-form {
        align-items: stretch;
    }

    .admin-log-filter-form label,
    .admin-log-filter-actions,
    .admin-log-filter-count {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 759px) {
    .panel,
    .card-panel,
    .login-hero-panel,
    .login-form-panel {
        padding: 18px;
    }

    .sender-dashboard {
        padding-bottom: calc(104px + env(safe-area-inset-bottom));
    }

    .sender-topbar {
        flex-direction: column;
    }

    .dashboard-home-feed,
    .profile-center-grid,
    .dashboard-home-secondary-grid {
        grid-template-columns: 1fr;
    }

    .home-dashboard-board {
        grid-template-columns: 1fr;
    }

    .home-welcome-card {
        padding: 16px;
        border-radius: 26px;
    }

    .home-app-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-app-card {
        min-height: 92px;
    }

    .home-dashboard-ring-card {
        grid-template-columns: 118px minmax(0, 1fr);
        padding: 14px;
    }

    .home-dashboard-ring {
        width: 112px;
    }

    .home-dashboard-ring strong {
        font-size: 28px;
    }

    .home-dashboard-kpi-grid,
    .home-dashboard-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-dashboard-metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .home-dashboard-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-dashboard-metric-grid .home-kpi-tile {
        min-height: 78px;
        padding: 10px 7px;
        gap: 4px;
    }

    .home-dashboard-metric-grid .home-kpi-tile span,
    .home-dashboard-metric-grid .home-kpi-tile small {
        font-size: 10px;
        line-height: 1.2;
    }

    .home-dashboard-metric-grid .home-kpi-tile strong {
        font-size: 22px;
    }

    .home-bar-chart {
        gap: 6px;
    }

    .home-bar-item i {
        width: min(100%, 16px);
    }

    .card-feature-form {
        grid-template-columns: 1fr 1fr;
    }

    .card-feature-head {
        grid-column: 1 / -1;
    }

    .card-feature-form .compact-action-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .home-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-stat-card {
        min-height: 112px;
        padding: 14px 12px;
    }

    .home-stat-card strong {
        font-size: 28px;
    }

    .dashboard-home-feed-item,
    .profile-center-card {
        padding: 14px;
    }

    .dashboard-bottom-nav {
        padding: 7px max(8px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    }

    .dashboard-bottom-nav-inner {
        gap: 2px;
    }

    .dashboard-tab-button {
        min-height: 54px;
        padding: 5px 1px;
    }

    .dashboard-tab-icon {
        width: 20px;
        height: 20px;
    }

    .dashboard-tab-label {
        font-size: 10px;
    }

    .dashboard-tab-menu {
        width: min(204px, calc(100vw - 18px));
        bottom: calc(100% + 10px);
    }

    .card-management-tabs {
        gap: 6px;
        padding: 5px;
    }

    .card-management-tab-button {
        min-height: 40px;
        padding: 8px 6px;
        font-size: 12px;
    }

    .sender-stats-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .compact-stat-panel {
        min-height: 74px;
        padding: 10px 8px;
        border-radius: 15px;
        gap: 3px;
    }

    .stat-plus-button {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
        font-size: 16px;
        padding-bottom: 1px;
    }

    .compact-stat-panel strong {
        font-size: 19px;
    }

    .compact-stat-panel span,
    .compact-stat-panel small {
        font-size: 10px;
        line-height: 1.25;
    }

    .recharge-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .recharge-plan-card {
        padding: 14px 12px;
        border-radius: 18px;
    }

    .recharge-plan-badge {
        top: 10px;
        right: 10px;
        min-height: 22px;
        padding: 0 8px;
        font-size: 10px;
    }

    .admin-page {
        gap: 16px;
        padding: 18px 14px 28px;
    }

    .admin-header-copy h1 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .admin-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-sender-metrics {
        grid-template-columns: 1fr;
    }

    .admin-upgrade-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-upgrade-fields {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-upgrade-fields input[type="number"],
    .admin-delete-form input[type="password"] {
        width: 100%;
    }

    .admin-delete-form {
        display: grid;
        grid-template-columns: 1fr 110px;
    }

    .admin-stat-card,
    .admin-log-card,
    .admin-review-card {
        padding: 14px;
        border-radius: 18px;
    }

    .admin-log-card-metrics {
        grid-template-columns: 1fr;
    }

    .admin-review-meta-grid {
        grid-template-columns: 1fr;
    }

    .admin-review-toolbar {
        gap: 10px;
    }

    .admin-review-stats,
    .admin-review-filter-tabs,
    .admin-review-actions {
        width: 100%;
    }

    .admin-log-block p {
        font-size: 13px;
        line-height: 1.65;
    }

    .action-row-forms {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .action-row-forms .action-btn {
        min-width: 0;
        flex: 1 1 0;
        width: auto;
        padding: 9px 12px;
        border-radius: 18px;
    }

    .recharge-plan-card strong {
        font-size: 20px;
    }

    .recharge-plan-card small,
    .recharge-modal-note {
        font-size: 12px;
        line-height: 1.55;
    }

    .recharge-selection-bar {
        padding: 14px;
        border-radius: 18px;
    }

    .recharge-selection-copy strong {
        font-size: 21px;
    }

    .recharge-history-item {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .dashboard-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .work-report-page {
        padding-bottom: 18px;
    }

    .work-report-window {
        min-height: 300px;
        max-height: 480px;
    }

    .work-report-action-row {
        grid-template-columns: 1fr;
    }

    .work-report-stat-row {
        justify-content: flex-start;
    }

    .work-report-entry-head {
        flex-direction: column;
    }

    .boss-briefing-card {
        padding: 16px;
    }

    .boss-briefing-head {
        align-items: flex-start;
    }

    .boss-briefing-head strong {
        font-size: 17px;
    }

    .boss-briefing-head p {
        font-size: 13px;
        line-height: 1.6;
    }

    .boss-briefing-actions {
        justify-content: space-between;
        gap: 10px;
    }

    .boss-briefing-link-button {
        font-size: 12px;
    }

    .boss-briefing-collapse summary {
        align-items: flex-start;
    }

    .boss-briefing-collapse summary small {
        font-size: 11px;
        line-height: 1.45;
    }

    .work-report-thread-summary {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 10px;
        padding-right: 104px;
    }

    .work-report-thread-badges {
        justify-content: flex-end;
    }

    .dashboard-module-button {
        min-height: 96px;
        padding: 14px 12px;
        border-radius: 18px;
        gap: 6px;
    }

    .dashboard-module-button strong {
        font-size: 14px;
        line-height: 1.3;
    }

    .dashboard-module-button small {
        font-size: 11px;
        line-height: 1.45;
    }

    .dashboard-module-badge {
        min-width: 34px;
        height: 26px;
        padding: 0 8px;
        font-size: 11px;
    }

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

    .card-hero-inner {
        padding: 16px;
    }

    .style-picker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .style-option-visual {
        min-height: 116px;
        padding: 16px 14px;
        border-radius: 18px;
    }

    .style-option-visual strong {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .style-option-visual small {
        font-size: 11px;
        line-height: 1.5;
    }

    .toggle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .builder-advanced-details {
        padding: 0;
    }

    .compact-upload-card {
        padding: 12px;
        border-radius: 16px;
    }

    .upload-input-card small {
        font-size: 11px;
        line-height: 1.5;
    }

    .upload-file-input {
        padding: 9px 10px;
        font-size: 12px;
        border-radius: 12px;
    }

    .upload-file-input::file-selector-button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .toggle-panel {
        padding: 14px 12px;
        gap: 10px;
    }

    .toggle-panel strong {
        font-size: 14px;
    }

    .toggle-panel small {
        font-size: 11px;
        line-height: 1.5;
    }

    .builder-advanced-summary {
        min-height: 32px;
        padding: 0 12px;
    }

    .account-modal {
        padding: 12px;
    }

    .account-modal-card {
        max-height: 90vh;
        padding: 22px 18px 18px;
    }

    .status-pill-soft {
        min-height: 30px;
        padding: 5px 12px;
        font-size: 11px;
    }

    .compact-action-btn {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .card-inline-actions > a.compact-action-btn,
    .card-inline-actions > form .compact-action-btn,
    .card-inline-actions > button.compact-action-btn {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .section-head-row {
        align-items: flex-start;
    }

}

/* Sender dashboard final visual overrides */
.dashboard-shell {
    background:
        radial-gradient(circle at top left, rgba(90, 179, 236, 0.2), transparent 30%),
        linear-gradient(180deg, #f2f8ff 0%, #f9fcff 42%, #eef7ff 100%);
}

.sender-dashboard {
    max-width: 960px;
    padding-top: 18px;
}

.module-page-title {
    margin-bottom: 18px;
    text-align: center;
}

.module-page-title h2 {
    font-size: 24px;
    font-weight: 800;
}

.home-welcome-card,
.home-focus-card,
.home-recent-card,
.module-hero-card,
.profile-center-card,
.home-dashboard-panel {
    border: 1px solid rgba(45, 143, 216, 0.12);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 42px rgba(31, 111, 172, 0.08);
    backdrop-filter: blur(16px);
}

.home-welcome-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 22px;
    overflow: hidden;
    min-height: 270px;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 78%, rgba(45, 143, 216, 0.28), transparent 22%),
        linear-gradient(145deg, rgba(247, 252, 255, 0.96), rgba(217, 239, 255, 0.9));
}

.home-welcome-card::before {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -22%;
    width: 58%;
    height: 52%;
    border-radius: 100% 0 0 0;
    background: linear-gradient(140deg, rgba(122, 195, 245, 0.48), rgba(45, 143, 216, 0.12));
    pointer-events: none;
}

.home-welcome-card > * {
    position: relative;
    z-index: 1;
}

.home-welcome-top {
    grid-column: 1 / -1;
}

.home-date-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    color: #405269;
    font-weight: 700;
}

.home-user-avatar {
    width: 86px;
    height: 86px;
    flex-basis: 86px;
    border-radius: 999px;
    background: linear-gradient(145deg, #6abcf5, #116fe5);
    box-shadow: 0 16px 32px rgba(45, 143, 216, 0.26);
}

.home-user-avatar img,
.home-user-avatar span {
    border-radius: 999px;
}

.home-user-avatar span {
    background: transparent;
    color: #fff;
}

.home-welcome-copy p {
    display: inline;
    color: #102033;
    font-size: 22px;
}

.home-welcome-copy h1 {
    display: inline;
    margin-left: 6px;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 800;
}

.home-welcome-copy small {
    margin-top: 9px;
    color: #52677f;
    font-size: 14px;
}

.home-account-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    min-height: 34px;
    margin-top: 14px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(225, 241, 255, 0.82);
    color: var(--primary-strong);
    font-size: 13px;
}

.home-account-pill strong {
    font-size: inherit;
    line-height: 1;
    overflow-wrap: anywhere;
}

.home-report-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #3199f5, #116fe5);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 16px 32px rgba(17, 111, 229, 0.24);
    cursor: pointer;
}

.home-focus-card,
.home-recent-card {
    display: grid;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 24px;
}

.home-focus-card h2,
.home-recent-card h2,
.compact-dashboard-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.home-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.home-focus-item {
    display: grid;
    grid-template-columns: 54px auto;
    grid-template-areas:
        "icon value"
        "icon label";
    align-items: center;
    justify-content: center;
    column-gap: 14px;
    min-height: 76px;
    padding: 8px 12px;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.home-focus-item:last-child {
    border-right: 0;
}

.home-focus-icon,
.home-recent-icon,
.home-app-icon,
.module-hero-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: transparent;
    font-size: 0;
}

.home-focus-icon {
    grid-area: icon;
    width: 54px;
    height: 54px;
    border-radius: 999px;
}

.home-focus-icon::before,
.home-recent-icon::before,
.home-app-icon::before,
.module-hero-visual::before {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: currentColor;
}

.home-focus-blue {
    background-color: rgba(45, 143, 216, 0.12);
    color: #237fd0;
}

.home-focus-green {
    background-color: rgba(31, 160, 102, 0.12);
    color: #1b9d67;
}

.home-focus-purple {
    background-color: rgba(119, 83, 229, 0.12);
    color: #7255dd;
}

.home-focus-orange {
    background-color: rgba(239, 156, 45, 0.14);
    color: #ef9c2d;
}

.home-focus-item strong {
    grid-area: value;
    font-size: 30px;
    line-height: 1;
}

.home-focus-item small {
    grid-area: label;
    color: var(--muted);
}

.home-app-grid {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(45, 143, 216, 0.08);
    box-shadow: 0 18px 42px rgba(31, 111, 172, 0.06);
}

.home-app-card {
    justify-items: center;
    align-content: center;
    gap: 10px;
    min-height: 154px;
    border-radius: 18px;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-app-card:hover,
.home-app-card:focus-visible,
.home-focus-item:hover,
.home-focus-item:focus-visible,
.home-recent-item:hover,
.home-recent-item:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.home-app-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    color: #237fd0;
}

.home-app-card .home-app-icon {
    color: #237fd0;
    font-size: 0;
}

.home-app-card strong {
    font-size: 20px;
}

.home-app-card small {
    color: #60758b;
    font-size: 13px;
}

.home-dashboard-panel {
    padding: 24px;
}

.home-range-pill,
.module-section-title span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(45, 143, 216, 0.08);
    color: var(--primary-strong);
    font-size: 13px;
    font-weight: 700;
}

.home-chart-card,
.home-dashboard-ring-card,
.home-kpi-tile {
    border-radius: 18px;
    border-color: rgba(45, 143, 216, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 255, 0.9));
}

.home-dashboard-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-dashboard-ring-card,
.home-dashboard-metric-grid {
    grid-column: 1 / -1;
}

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

.home-kpi-tile {
    min-height: 112px;
    padding: 16px;
}

.home-kpi-tile span {
    font-size: 15px;
}

.home-kpi-tile small {
    font-size: 12px;
}

.home-recent-list {
    display: grid;
    gap: 2px;
}

.home-recent-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.home-recent-item:last-child {
    border-bottom: 0;
}

.home-recent-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.home-recent-item strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.home-recent-item small {
    color: #8492a6;
    white-space: nowrap;
}

.module-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    overflow: hidden;
    min-height: 190px;
    margin-bottom: 22px;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 86% 32%, rgba(45, 143, 216, 0.22), transparent 28%),
        linear-gradient(145deg, rgba(247, 252, 255, 0.96), rgba(219, 240, 255, 0.9));
}

.module-hero-card h2 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.15;
}

.module-hero-card p {
    max-width: 460px;
    margin: 0;
    color: #445970;
    line-height: 1.8;
}

.module-hero-visual {
    width: 118px;
    height: 118px;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(145deg, #7ac3f5, #116fe5);
    box-shadow: 0 20px 40px rgba(17, 111, 229, 0.22);
}

.module-hero-visual::before {
    width: 58px;
    height: 58px;
    border-radius: 16px;
}

.module-hero-workreports {
    background:
        radial-gradient(circle at 84% 40%, rgba(64, 155, 245, 0.32), transparent 28%),
        linear-gradient(145deg, rgba(246, 251, 255, 0.96), rgba(218, 238, 255, 0.92));
}

.module-hero-appointments {
    background:
        radial-gradient(circle at 86% 48%, rgba(116, 145, 245, 0.18), transparent 26%),
        linear-gradient(145deg, rgba(248, 252, 255, 0.96), rgba(224, 240, 252, 0.92));
}

.module-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.module-filter-button,
.module-search-field {
    min-height: 44px;
    border: 1px solid rgba(45, 143, 216, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
}

.module-filter-button {
    padding: 0 16px;
    cursor: pointer;
}

.module-search-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.module-search-field span {
    color: var(--muted);
    font-size: 12px;
}

.module-search-field input {
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
}

.module-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 12px;
}

.module-section-title h3 {
    margin: 0;
    font-size: 21px;
}

#appointmentsPanel > .module-create-entry .primary-btn {
    min-height: 58px;
    border-radius: 18px;
    font-size: 18px;
}

#appointmentsPanel .accordion-card,
#appointmentsPanel .record-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 30px rgba(31, 111, 172, 0.06);
}

.card-management-tabs {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
}

.card-management-tab-button {
    border-radius: 999px;
    font-size: 16px;
}

.card-management-tab-button.is-active {
    color: #1679d8;
    box-shadow: 0 12px 26px rgba(45, 143, 216, 0.12);
}

.card-item {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 14%, rgba(45, 143, 216, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(249, 253, 255, 0.98), rgba(238, 248, 255, 0.95));
    box-shadow: 0 18px 42px rgba(31, 111, 172, 0.09);
}

.card-item-head img {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    border: 4px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(31, 111, 172, 0.14);
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.card-title-row h3 {
    margin: 0;
    font-size: 24px;
}

.card-type-pill,
.card-item-tags span,
.card-validity-pill,
.card-validity-state {
    border-radius: 999px;
}

.card-type-pill {
    display: inline-flex;
    min-height: 28px;
    padding: 4px 10px;
    background: rgba(45, 143, 216, 0.08);
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 700;
}

.card-status-badge {
    margin-left: auto;
}

.card-style-description {
    margin: 16px 0 0;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
    color: #445970;
    line-height: 1.75;
}

.card-item-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.card-item-meta span {
    display: inline-flex;
    justify-content: center;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(45, 143, 216, 0.06);
    color: var(--primary-strong);
    font-size: 12px;
}

.card-feature-form {
    grid-template-columns: minmax(0, 1fr) auto auto;
    margin-top: 16px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
}

.card-feature-form .compact-action-btn {
    grid-column: 1 / -1;
    width: 100%;
}

.card-inline-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.card-inline-actions > *,
.card-inline-actions .compact-action-btn {
    width: 100%;
}

.work-report-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 22px;
    padding: 20px;
    border: 1px solid rgba(45, 143, 216, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
}

.work-report-stat-row span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 74px;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 16px;
}

.work-report-stat-row span:last-child {
    border-right: 0;
}

.work-report-entry-card,
.boss-briefing-card,
.employee-boss-entry-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 34px rgba(31, 111, 172, 0.07);
}

.profile-center-grid {
    grid-template-columns: 1fr;
    gap: 18px;
}

.profile-identity-card {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 26px;
    border-radius: 24px;
}

.profile-identity-avatar {
    width: 82px;
    height: 82px;
    padding: 4px;
    border-radius: 999px;
    background: linear-gradient(145deg, #6abcf5, #116fe5);
    box-shadow: 0 16px 32px rgba(45, 143, 216, 0.24);
}

.profile-identity-avatar img,
.profile-identity-avatar span {
    width: 100%;
    height: 100%;
    border-radius: 999px;
}

.profile-identity-avatar img {
    object-fit: cover;
}

.profile-identity-avatar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}

.profile-identity-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.profile-identity-copy strong {
    font-size: 28px;
}

.profile-identity-copy small {
    color: var(--muted);
}

.profile-balance-card {
    min-height: 240px;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 82% 36%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(135deg, #43a9f8, #116fe5);
}

.profile-balance-card strong {
    font-size: clamp(52px, 12vw, 74px);
    line-height: 1;
}

.profile-balance-card .primary-btn {
    min-height: 58px;
    border-radius: 999px;
    font-size: 18px;
}

.dashboard-bottom-nav {
    border-top-color: rgba(45, 143, 216, 0.08);
    background: rgba(255, 255, 255, 0.94);
}

.dashboard-tab-button.is-active {
    color: #1679d8;
}

@media (max-width: 759px) {
    .sender-dashboard {
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-welcome-card,
    .module-hero-card {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 20px;
    }

    .home-user-avatar {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .home-welcome-copy h1 {
        font-size: 28px;
    }

    .home-report-cta {
        width: 100%;
        min-width: 0;
    }

    .home-focus-card,
    .home-recent-card,
    .home-dashboard-panel,
    .home-app-grid {
        padding: 16px;
        border-radius: 22px;
    }

    .home-focus-grid {
        grid-template-columns: 1fr;
    }

    .home-focus-item {
        justify-content: start;
        border-right: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }

    .home-focus-item:last-child {
        border-bottom: 0;
    }

    .home-app-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-app-card {
        min-height: 112px;
    }

    .home-dashboard-board {
        grid-template-columns: 1fr;
    }

    .home-dashboard-metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .home-kpi-tile {
        min-height: 78px;
        padding: 10px 7px;
    }

    .home-kpi-tile span,
    .home-kpi-tile small {
        font-size: 10px;
        line-height: 1.2;
    }

    .home-kpi-tile strong {
        font-size: 22px;
    }

    .home-recent-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .home-recent-item small {
        grid-column: 2;
        white-space: normal;
    }

    .module-hero-card h2 {
        font-size: 28px;
    }

    .module-hero-visual {
        width: 86px;
        height: 86px;
        border-radius: 24px;
        justify-self: end;
    }

    .module-toolbar {
        grid-template-columns: 1fr;
    }

    .card-item {
        padding: 18px;
    }

    .card-status-badge {
        position: absolute;
        right: 16px;
        top: 16px;
    }

    .card-item-head img {
        width: 64px;
        height: 64px;
    }

    .card-title-row h3 {
        font-size: 21px;
    }

    .card-item-meta,
    .card-inline-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-feature-form {
        grid-template-columns: 1fr;
    }

    .work-report-stat-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        padding: 12px;
    }

    .work-report-stat-row span {
        min-height: 58px;
        padding: 6px 4px;
        font-size: 11px;
        text-align: center;
    }

    .profile-identity-card {
        grid-template-columns: 72px minmax(0, 1fr);
        padding: 20px;
    }

    .profile-identity-card .compact-action-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .profile-identity-avatar {
        width: 68px;
        height: 68px;
    }
}

/* Compact precision pass for the mobile mockups */
.sender-dashboard {
    gap: 12px;
}

.dashboard-home-panel {
    gap: 12px;
}

.home-welcome-card {
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
    gap: 14px;
}

.home-welcome-top {
    font-size: 12px;
}

.home-date-pill {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
}

.home-logout-link {
    min-height: 26px;
    padding: 4px 10px;
    font-size: 12px;
}

.home-welcome-main {
    gap: 12px;
}

.home-user-avatar {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
}

.home-user-avatar span {
    font-size: 24px;
}

.home-welcome-copy p {
    font-size: 17px;
}

.home-welcome-copy h1 {
    font-size: clamp(24px, 6.5vw, 34px);
    font-weight: 700;
}

.home-welcome-copy small {
    margin-top: 4px;
    font-size: 12px;
}

.home-account-pill {
    min-height: 26px;
    margin-top: 8px;
    padding: 0 10px;
    font-size: 11px;
}

.home-report-cta {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 18px;
    font-size: 15px;
}

.home-focus-card,
.home-recent-card,
.home-dashboard-panel,
.home-app-grid {
    padding: 14px;
    border-radius: 18px;
}

.home-focus-card {
    gap: 12px;
}

.home-focus-card h2,
.home-recent-card h2,
.compact-dashboard-head h2 {
    font-size: 18px;
}

.home-focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-focus-item {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 7px;
    min-height: 58px;
    padding: 4px 7px;
    justify-content: start;
}

.home-focus-icon {
    width: 32px;
    height: 32px;
}

.home-focus-icon::before {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.home-focus-item strong {
    font-size: 22px;
}

.home-focus-item small {
    font-size: 11px;
    line-height: 1.15;
}

.home-app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.home-app-card {
    min-height: 108px;
    padding: 11px 6px;
    border-radius: 16px;
    gap: 6px;
}

.home-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
}

.home-app-icon::before {
    width: 20px;
    height: 20px;
}

.home-app-card strong {
    font-size: 17px;
    line-height: 1.16;
}

.home-app-card small {
    font-size: 10px;
    line-height: 1.25;
}

.home-dashboard-panel {
    gap: 12px;
}

.home-range-pill,
.module-section-title span {
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
}

.home-dashboard-board {
    gap: 10px;
}

.home-chart-card {
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
}

.home-chart-head strong {
    font-size: 23px;
}

.home-bar-chart {
    min-height: 116px;
    gap: 6px;
}

.home-bar-item {
    height: 96px;
    gap: 5px;
}

.home-bar-item i {
    width: min(100%, 13px);
}

.home-bar-item::before {
    top: 0;
    font-size: 10px;
}

.home-bar-item em {
    font-size: 10px;
}

.home-dashboard-ring-card {
    min-height: 112px;
    padding: 12px;
    border-radius: 16px;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
}

.home-dashboard-ring {
    width: 78px;
    height: 78px;
}

.home-dashboard-ring span {
    font-size: 10px;
}

.home-dashboard-ring strong {
    font-size: 24px;
}

.home-dashboard-ring-copy strong {
    font-size: 17px;
}

.home-dashboard-ring-copy span,
.home-dashboard-ring-copy small {
    font-size: 12px;
}

.home-dashboard-metric-grid {
    gap: 6px;
}

.home-kpi-tile {
    min-height: 66px;
    padding: 8px 6px;
    border-radius: 12px;
}

.home-kpi-tile span,
.home-kpi-tile small {
    font-size: 10px;
}

.home-kpi-tile strong {
    font-size: 21px;
}

.home-recent-card {
    gap: 8px;
}

.home-recent-item {
    min-height: 52px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 6px 0;
}

.home-recent-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.home-recent-icon::before {
    width: 14px;
    height: 14px;
}

.home-recent-item strong {
    font-size: 13px;
}

.home-recent-item small {
    font-size: 11px;
}

.floating-refresh-button {
    width: 58px;
    height: 58px;
    font-size: 15px;
    box-shadow: 0 12px 28px rgba(0, 104, 167, 0.28);
}

.module-page-title {
    margin-bottom: 12px;
}

.module-page-title h2 {
    font-size: 22px;
}

.module-hero-card {
    min-height: 152px;
    margin-bottom: 14px;
    padding: 18px;
    border-radius: 20px;
    gap: 12px;
}

.module-hero-card h2 {
    margin-bottom: 8px;
    font-size: 28px;
}

.module-hero-card p {
    font-size: 14px;
    line-height: 1.65;
}

.module-hero-visual {
    width: 82px;
    height: 82px;
    border-radius: 24px;
}

.module-hero-visual::before {
    width: 38px;
    height: 38px;
}

.work-report-stat-row {
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 16px;
}

.work-report-stat-row span {
    min-height: 48px;
    padding: 4px;
    font-size: 13px;
}

.work-report-entry-card,
.boss-briefing-card,
.employee-boss-entry-card,
#appointmentsPanel .accordion-card,
#appointmentsPanel .record-card {
    border-radius: 18px;
}

.work-report-entry-card,
.boss-briefing-card,
.employee-boss-entry-card {
    padding: 16px;
}

.boss-briefing-action-row {
    gap: 8px;
}

.module-toolbar {
    gap: 8px;
    margin-bottom: 12px;
}

.module-filter-button,
.module-search-field {
    min-height: 38px;
}

#appointmentsPanel > .module-create-entry .primary-btn {
    min-height: 48px;
    border-radius: 16px;
    font-size: 16px;
}

.card-management-tabs {
    min-height: 48px;
    padding: 4px;
}

.card-management-tab-button {
    min-height: 40px;
    font-size: 14px;
}

.card-item {
    padding: 16px;
    border-radius: 20px;
}

.card-item-head {
    gap: 12px;
}

.card-item-head img {
    width: 60px;
    height: 60px;
}

.card-title-row h3 {
    font-size: 21px;
}

.card-style-description {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.6;
}

.card-item-meta {
    gap: 7px;
    margin-top: 10px;
}

.card-item-meta span {
    min-height: 28px;
    padding: 6px 7px;
    font-size: 11px;
}

.card-feature-form {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
}

.card-inline-actions {
    gap: 8px;
}

.profile-identity-card {
    padding: 18px;
    border-radius: 20px;
}

.profile-identity-avatar {
    width: 66px;
    height: 66px;
}

.profile-identity-copy strong {
    font-size: 24px;
}

.profile-balance-card {
    min-height: 190px;
    padding: 22px;
    border-radius: 20px;
}

.profile-balance-card strong {
    font-size: clamp(42px, 11vw, 60px);
}

.profile-balance-card .primary-btn {
    min-height: 48px;
    font-size: 16px;
}

@media (max-width: 759px) {
    .sender-dashboard {
        padding: 10px 10px calc(84px + env(safe-area-inset-bottom));
    }

    .home-welcome-card,
    .module-hero-card {
        grid-template-columns: 1fr;
    }

    .home-welcome-card {
        padding: 16px;
    }

    .home-welcome-main {
        align-items: center;
    }

    .home-user-avatar {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .home-welcome-copy h1 {
        font-size: 26px;
    }

    .home-report-cta {
        width: 100%;
    }

    .home-focus-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-focus-item {
        border-right: 1px solid rgba(15, 23, 42, 0.06);
        border-bottom: 0;
    }

    .home-focus-item:last-child {
        border-right: 0;
    }

    .home-app-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-app-card {
        min-height: 100px;
    }

    .home-dashboard-board {
        grid-template-columns: 1fr;
    }

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

    .home-dashboard-ring-card {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .home-recent-item {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .home-recent-item small {
        grid-column: 2;
        white-space: normal;
    }

    .module-hero-card {
        min-height: 142px;
        padding: 16px;
    }

    .module-hero-card h2 {
        font-size: 26px;
    }

    .module-hero-visual {
        width: 70px;
        height: 70px;
        border-radius: 20px;
    }

    .work-report-stat-row span {
        min-height: 42px;
        font-size: 11px;
    }
}

/* Login page mockup refinement */
.login-shell {
    background:
        radial-gradient(circle at 78% 12%, rgba(92, 177, 247, 0.16), transparent 26%),
        linear-gradient(180deg, #f4f9ff 0%, #ffffff 54%, #eef7ff 100%);
}

.login-page {
    width: min(100%, 430px);
    gap: 11px;
    padding: 12px 12px 26px;
}

.login-hero-panel {
    min-height: 196px;
    padding: 24px 18px;
    border-radius: 22px;
    border: 1px solid rgba(45, 143, 216, 0.14);
    background:
        radial-gradient(circle at 80% 48%, rgba(255, 255, 255, 0.85), transparent 18%),
        linear-gradient(145deg, #dff1ff 0%, #edf8ff 56%, #cfeaff 100%);
    color: #081a33;
    box-shadow: 0 18px 44px rgba(45, 143, 216, 0.12);
}

.login-hero-panel::before {
    right: 4px;
    bottom: 6px;
    width: 190px;
    height: 166px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.72), rgba(109, 183, 255, 0.14) 62%, transparent 70%);
    box-shadow: none;
    filter: none;
    transform: none;
}

.login-hero-panel::after {
    display: none;
}

.login-hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: absolute;
    right: -4px;
    bottom: 6px;
    z-index: 0;
    width: min(50%, 204px);
    min-width: 166px;
    pointer-events: none;
}

.hero-visual svg {
    width: 100%;
    height: auto;
}

.login-hero-panel .hero-badge {
    display: none;
}

.login-hero-panel h1 {
    max-width: 260px;
    color: #0b3d91;
    font-family: var(--font-body);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0;
}

.login-hero-panel .hero-lead {
    max-width: 235px;
    margin-top: 16px;
    color: #1e3350;
    font-size: 15px;
    line-height: 1.65;
}

.login-hero-panel .hero-slogan {
    display: none;
}

.login-hero-panel .hero-note-row {
    gap: 8px;
    margin-top: 44px;
}

.login-hero-panel .hero-note-row span {
    position: relative;
    gap: 6px;
    min-height: 29px;
    padding: 4px 10px;
    border-color: rgba(55, 139, 238, 0.24);
    background: rgba(255, 255, 255, 0.82);
    color: #145ca8;
    font-size: 11px;
    font-weight: 750;
    box-shadow: 0 7px 18px rgba(31, 111, 172, 0.08);
    backdrop-filter: blur(10px);
}

.login-hero-panel .hero-note-row .feature-chip-ai {
    border-color: rgba(22, 119, 255, 0.24);
    color: #145ca8;
}

.login-hero-panel .hero-note-row .feature-chip-team {
    border-color: rgba(22, 119, 255, 0.24);
    color: #145ca8;
}

.login-hero-panel .hero-note-row .feature-chip-schedule {
    border-color: rgba(22, 119, 255, 0.24);
    color: #145ca8;
}

.ui-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.login-hero-panel .hero-note-row .ui-icon {
    color: currentColor;
    filter: drop-shadow(0 3px 5px rgba(22, 119, 255, 0.14));
}

.login-form-panel {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(45, 143, 216, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(31, 111, 172, 0.08);
}

.wechat-login-form {
    display: grid;
    gap: 13px;
    margin-top: 20px;
}

.login-account-panel {
    padding-top: 18px;
}

.login-form-panel .section-eyebrow {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #145ca8;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.badge-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.login-form-panel .compact-head h2 {
    font-size: 28px;
    color: #081a33;
    font-weight: 850;
}

.login-form-panel .compact-head p:last-child {
    font-size: 14px;
    color: #59677a;
}

.wechat-login-form .primary-btn {
    min-height: 54px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 13px 28px rgba(22, 119, 255, 0.24);
}

.wechat-login-btn {
    color: #fff;
    background: #1677ff;
    background-image: none;
    border: 0;
}

.wechat-login-btn:hover {
    background: #1677ff;
    box-shadow: 0 15px 30px rgba(22, 119, 255, 0.3);
}

.wechat-agreement-check {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0 2px;
    font-size: 12px;
    line-height: 1.7;
}

.wechat-btn-icon {
    width: 28px;
    height: 24px;
    flex: 0 0 28px;
    color: #ffffff;
}

.login-toggle-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin-top: 0;
    padding: 0;
    color: #081a33;
    font-size: 19px;
    font-weight: 800;
    text-align: left;
    gap: 10px;
}

.login-toggle-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.login-heading-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: #081a33;
}

.login-toggle-title small {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #1677ff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.login-chevron {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #081a33;
    transition: transform 0.2s ease;
}

.login-toggle-link[aria-expanded="false"] .login-chevron {
    transform: rotate(180deg);
}

.login-password-panel {
    margin-top: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.login-password-head {
    display: none;
}

.login-password-panel .stack-form {
    gap: 12px;
}

.field-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.login-input-wrap {
    position: relative;
    display: block;
}

.field-icon,
.password-visibility-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #6c7480;
    z-index: 1;
}

.field-icon {
    left: 16px;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.password-visibility-toggle {
    right: 11px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.password-visibility-toggle:hover {
    background: rgba(15, 23, 42, 0.04);
}

.eye-icon {
    width: 24px;
    height: 24px;
}

.login-password-panel input[type="text"],
.login-password-panel input[type="password"] {
    min-height: 54px;
    padding-left: 54px;
    padding-right: 54px;
    border-radius: 14px;
    border-color: rgba(113, 128, 150, 0.24);
    background: rgba(255, 255, 255, 0.96);
    color: #081a33;
}

.login-password-panel input::placeholder {
    color: #8b95a5;
}

.login-password-panel .secondary-btn.full-btn {
    min-height: 52px;
    border-radius: 999px;
    background: #edf2f7;
    color: #8b97a8;
    box-shadow: none;
}

.account-submit-btn:not(:disabled) {
    color: #ffffff;
    background: #1677ff;
    background-image: none;
    box-shadow: 0 12px 26px rgba(22, 119, 255, 0.22);
}

.agreement-check input[type="checkbox"] {
    position: relative;
    appearance: none;
    border: 1.5px solid #7b8490;
    border-radius: 4px;
    background: #ffffff;
}

.agreement-check input[type="checkbox"]:checked {
    border-color: #1679e6;
    background: #1679e6;
}

.agreement-check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wechat-agreement-check input[type="checkbox"] {
    margin-top: 4px;
}

.login-info-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 17px;
    border: 1px solid rgba(22, 119, 255, 0.18);
    border-radius: 20px;
    background: rgba(248, 252, 255, 0.9);
    color: #243a56;
    font-size: 13px;
    line-height: 1.65;
    box-shadow: 0 10px 24px rgba(31, 111, 172, 0.05);
}

.admin-login-shell {
    background:
        linear-gradient(180deg, #f6f9fc 0%, #eef4fa 100%);
}

.admin-login-page {
    width: min(100%, 390px);
    min-height: 100dvh;
    display: grid;
    align-items: center;
    padding: 18px 12px;
}

.admin-login-card {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.admin-login-head .section-eyebrow {
    display: inline-flex;
    width: fit-content;
    min-height: 26px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    letter-spacing: 0;
    text-transform: none;
}

.admin-login-head h1 {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: 28px;
    font-weight: 850;
    letter-spacing: 0;
}

.admin-login-head p:last-child {
    color: #64748b;
}

.admin-login-form input[type="text"],
.admin-login-form input[type="password"] {
    min-height: 52px;
    padding-left: 54px;
    padding-right: 16px;
    border-radius: 12px;
    border-color: rgba(100, 116, 139, 0.28);
    background: #ffffff;
    color: #0f172a;
}

.admin-login-form .primary-btn.full-btn {
    min-height: 50px;
    border-radius: 12px;
}

.admin-login-back {
    display: inline-flex;
    margin-top: 16px;
    font-size: 13px;
}

.info-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1677ff;
    color: #ffffff;
    font-size: 20px;
    font-style: italic;
    font-weight: 800;
}

/* Public card mockup refinement */
.public-card-shell {
    background:
        radial-gradient(circle at 50% 0%, rgba(92, 177, 247, 0.16), transparent 28%),
        linear-gradient(180deg, #eef7ff 0%, #fbfdff 38%, #f6fbff 100%);
}

.public-card-page {
    width: min(100%, 430px);
    gap: 10px;
    padding: 10px 10px calc(12px + env(safe-area-inset-bottom));
}

.card-hero {
    min-height: 146px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.24), transparent 24%),
        linear-gradient(135deg, #0b4fa8 0%, #1d83f2 100%);
    box-shadow: 0 16px 36px rgba(17, 111, 229, 0.18);
}

.card-hero-overlay {
    background:
        linear-gradient(135deg, rgba(4, 29, 69, 0.22), rgba(33, 143, 242, 0.08)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(2, 22, 48, 0.16));
}

.card-hero-inner {
    min-height: 146px;
    padding: 18px;
}

.card-hero-top {
    justify-content: flex-start;
}

.hero-chip {
    min-height: 24px;
    padding: 3px 9px;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.14);
    font-size: 11px;
}

.card-hero-main {
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.hero-avatar-wrap,
.hero-avatar {
    width: 68px;
    height: 68px;
}

.hero-avatar {
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.42);
}

.hero-copy h1 {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-title {
    margin-top: 5px;
    font-size: 14px;
}

.hero-company {
    min-height: 24px;
    margin-top: 8px;
    padding: 3px 9px;
}

.hero-contact-trigger {
    right: 16px;
    bottom: 22px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 13px;
}

.card-panel {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(45, 143, 216, 0.08);
    box-shadow: 0 14px 32px rgba(31, 111, 172, 0.07);
}

.section-head-chat {
    gap: 8px;
    margin-bottom: 12px;
}

.section-head-chat .section-eyebrow {
    display: none;
}

.section-head-chat h2 {
    font-size: 22px;
}

.section-head-chat p {
    font-size: 14px;
}

.card-quick-question-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
}

.card-quick-chip {
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid rgba(45, 143, 216, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #0f3869;
    font-size: 12px;
    cursor: pointer;
}

.card-quick-chip:hover,
.card-quick-chip:focus-visible {
    border-color: rgba(17, 111, 229, 0.28);
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 111, 229, 0.08);
}

.public-card-page:not(.work-report-page) .chat-window {
    max-height: none;
    min-height: 360px;
    gap: 12px;
    margin: 0 -4px;
    padding: 12px 4px 4px;
    background: linear-gradient(180deg, rgba(245, 251, 255, 0.78), rgba(249, 253, 255, 0.92));
    border-radius: 16px;
}

.public-card-page:not(.work-report-page) .chat-bubble {
    max-width: 86%;
    padding: 12px 13px;
    border-radius: 16px;
    font-size: 14px;
}

.public-card-page:not(.work-report-page) .chat-bubble p {
    margin-top: 6px;
    line-height: 1.65;
}

.public-card-page:not(.work-report-page) .chat-form {
    position: sticky;
    bottom: 10px;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(45, 143, 216, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(31, 111, 172, 0.1);
}

.public-card-page:not(.work-report-page) .chat-form label {
    gap: 6px;
    font-size: 0;
}

.public-card-page:not(.work-report-page) .chat-form textarea {
    min-height: 46px;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    background: #f7fbff;
    font-size: 14px;
    resize: none;
}

.public-card-page:not(.work-report-page) .chat-action-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
}

.public-card-page:not(.work-report-page) .chat-action-row.has-appointment-action {
    grid-template-columns: minmax(64px, 0.76fr) minmax(86px, 1.02fr) minmax(96px, 1.22fr);
    gap: 6px;
}

.public-card-page:not(.work-report-page) .chat-language-select,
.public-card-page:not(.work-report-page) .chat-submit-btn,
.public-card-page:not(.work-report-page) .appointment-inline-btn {
    min-height: 42px;
    border-radius: 14px;
}

.public-card-page:not(.work-report-page) .chat-submit-btn {
    font-size: 15px;
}

.public-card-page:not(.work-report-page) .appointment-inline-btn {
    padding: 0 8px;
    font-size: 15px;
}

@media (max-width: 430px) {
    .card-quick-question-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-contact-trigger {
        position: static;
        justify-self: end;
        margin-top: 6px;
    }

    .card-hero-inner {
        grid-template-rows: auto auto auto;
    }
}

/* Hero chip placement and lighter public/work-report visual pass */
.public-card-page .card-hero {
    background:
        radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.22), transparent 24%),
        linear-gradient(135deg, #2f9df7 0%, #156fe0 100%);
}

.public-card-page .card-hero-overlay {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(29, 126, 233, 0.05)),
        linear-gradient(180deg, rgba(4, 43, 100, 0.05), rgba(4, 43, 100, 0.12));
}

.public-card-page .card-hero-inner {
    grid-template-rows: 1fr;
    align-items: center;
}

.public-card-page .card-hero-top:empty {
    display: none;
}

.public-card-page:not(.work-report-page) .card-hero-main {
    align-self: center;
}

.hero-status-chip {
    width: fit-content;
    max-width: 100%;
    margin-top: 8px;
    color: #eaffff;
    background: rgba(31, 183, 145, 0.3);
    border-color: rgba(255, 255, 255, 0.28);
}

.work-report-page .card-hero {
    min-height: 146px;
    background:
        radial-gradient(circle at 78% 35%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(135deg, #62b9ff 0%, #267bf1 100%);
}

.work-report-page .card-hero::before,
.work-report-page .card-hero:not(.is-owner-editable)::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.work-report-page .card-hero::before {
    right: 32px;
    bottom: 22px;
    width: 92px;
    height: 78px;
    opacity: 0.28;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08));
    clip-path: polygon(50% 0, 100% 25%, 100% 74%, 50% 100%, 0 74%, 0 25%);
    box-shadow:
        -42px 24px 0 -18px rgba(255, 255, 255, 0.35),
        38px 24px 0 -20px rgba(255, 255, 255, 0.25);
}

.work-report-page .card-hero:not(.is-owner-editable)::after {
    right: -20px;
    bottom: -16px;
    width: 70%;
    height: 62%;
    border-radius: 100% 0 0 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.work-report-page .card-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main";
    align-items: center;
    min-height: 146px;
    gap: 0;
    padding: 20px 18px 42px;
}

.work-report-page .card-hero-top {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    z-index: 2;
}

.work-report-page .card-hero-main {
    grid-area: main;
    z-index: 2;
    max-width: 100%;
    align-items: center;
}

.work-report-page .hero-chip {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.28);
    color: #f7fbff;
    font-size: 13px;
}

.work-report-page .hero-avatar-wrap,
.work-report-page .hero-avatar {
    width: 72px;
    height: 72px;
}

.work-report-page .hero-avatar {
    border-radius: 20px;
}

.work-report-page .hero-copy h1 {
    max-width: min(420px, 100%);
    color: #ffffff;
    font-size: 34px;
    line-height: 1.06;
    text-shadow: 0 4px 16px rgba(22, 91, 182, 0.2);
}

.work-report-page .hero-title {
    color: rgba(255, 255, 255, 0.92);
}

.work-report-page .work-report-history-bubble.user-bubble {
    width: min(100%, 330px);
    max-width: 86%;
    padding: 18px 20px;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 92% 72%, rgba(255, 255, 255, 0.13), transparent 24%),
        linear-gradient(135deg, #20a6e8 0%, #0878bf 100%);
    box-shadow: 0 18px 34px rgba(8, 120, 191, 0.18);
}

.work-report-page .work-report-history-bubble.user-bubble .bubble-label {
    color: rgba(255, 255, 255, 0.74);
}

.work-report-page .work-report-history-bubble.user-bubble p {
    color: rgba(255, 255, 255, 0.96);
    font-size: 17px;
    line-height: 1.72;
}

.work-report-page .work-report-history-bubble small {
    color: rgba(255, 255, 255, 0.74);
    opacity: 1;
}

.work-report-page .work-report-project-meta {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.22);
    color: #eaf7ff;
    font-weight: 700;
}

.work-report-page .ai-bubble.work-report-history-bubble {
    background: #f8fbff;
    border-color: rgba(45, 143, 216, 0.1);
    color: #16304f;
}

@media (max-width: 430px) {
    .public-card-page .card-hero-inner {
        grid-template-rows: 1fr;
    }

    .public-card-page:not(.work-report-page) .hero-contact-trigger {
        position: absolute;
        right: 16px;
        bottom: 22px;
        margin-top: 0;
    }

    .work-report-page .card-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "main";
        padding: 18px 16px 42px;
    }

    .work-report-page .card-hero-top {
        right: 16px;
        bottom: 14px;
    }

    .work-report-page .hero-chip {
        min-height: 28px;
        padding: 0 10px;
        font-size: 12px;
    }

    .work-report-page .card-hero-main {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 12px;
    }

    .work-report-page .hero-avatar-wrap,
    .work-report-page .hero-avatar {
        width: 66px;
        height: 66px;
    }

    .work-report-page .hero-copy h1 {
        max-width: min(280px, 100%);
        font-size: 28px;
        line-height: 1.08;
    }
}

/* Restore uploaded hero backgrounds and refine profile center */
.public-card-page .card-hero {
    background-image:
        radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.22), transparent 24%),
        linear-gradient(135deg, rgba(47, 157, 247, 0.9), rgba(21, 111, 224, 0.9)),
        var(--hero-image);
    background-position: center, center, center;
    background-size: cover, cover, cover;
}

.work-report-page .card-hero {
    background-image:
        radial-gradient(circle at 78% 35%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(135deg, rgba(98, 185, 255, 0.88), rgba(38, 123, 241, 0.88)),
        var(--hero-image);
    background-position: center, center, center;
    background-size: cover, cover, cover;
}

.public-card-page .card-hero.has-uploaded-background {
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
}

.public-card-page .card-hero.has-uploaded-background .card-hero-overlay {
    display: none;
}

.public-card-page .card-hero.has-uploaded-background .hero-copy h1,
.public-card-page .card-hero.has-uploaded-background .hero-title {
    text-shadow: 0 2px 12px rgba(3, 18, 38, 0.62);
}

.dashboard-profile-panel {
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 8%, rgba(59, 159, 245, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 252, 255, 0.94));
}

.dashboard-profile-panel .module-page-title h2 {
    font-size: 26px;
    font-weight: 800;
}

.profile-center-grid {
    gap: 14px;
}

.profile-center-card {
    border-radius: 20px;
    border-color: rgba(45, 143, 216, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 36px rgba(31, 111, 172, 0.07);
}

.profile-identity-card {
    position: relative;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    min-height: 150px;
    padding: 22px;
}

.profile-identity-avatar {
    width: 76px;
    height: 76px;
    box-shadow:
        0 14px 28px rgba(17, 111, 229, 0.2),
        0 0 0 5px rgba(227, 243, 255, 0.9);
}

.profile-identity-copy strong {
    font-size: 28px;
}

.profile-identity-copy small {
    font-size: 14px;
}

.profile-identity-copy .home-account-pill {
    max-width: 100%;
    min-height: 30px;
    padding: 0 12px;
    background: rgba(220, 241, 255, 0.76);
}

.profile-identity-card .compact-action-btn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    color: #1679d8;
    background: rgba(255, 255, 255, 0.74);
}

.profile-balance-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 26px;
    border: 0;
    border-radius: 22px;
    background:
        radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.24), transparent 19%),
        linear-gradient(135deg, #45a8ff 0%, #1f72f2 100%);
    box-shadow: 0 20px 42px rgba(31, 111, 229, 0.16);
}

.profile-balance-card::before {
    content: "";
    position: absolute;
    right: 44px;
    top: 42px;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.16));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 24px 42px rgba(5, 65, 150, 0.18);
}

.profile-balance-card::after {
    content: "";
    position: absolute;
    right: 70px;
    top: 68px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-mask: var(--sc-icon-receipt) center / contain no-repeat;
    mask: var(--sc-icon-receipt) center / contain no-repeat;
    opacity: 0.95;
}

.profile-balance-card > * {
    position: relative;
    z-index: 1;
}

.profile-balance-card span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.profile-balance-card strong {
    margin-top: 12px;
    font-size: clamp(54px, 14vw, 76px);
}

.profile-balance-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
}

.profile-balance-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 11px;
    font-style: italic;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.profile-balance-info-trigger:hover,
.profile-balance-info-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    outline: 2px solid rgba(255, 255, 255, 0.88);
    outline-offset: 1px;
}

.profile-balance-card small {
    max-width: 70%;
    font-size: 14px;
}

.profile-balance-card .primary-btn {
    min-height: 56px;
    margin-top: 16px;
    border-radius: 999px;
    background: #ffffff;
    color: #1679d8;
    font-size: 16px;
    box-shadow: none;
}

.profile-service-card {
    padding: 22px;
}

.profile-service-card > span,
.profile-recharge-record-card > span,
.profile-exit-card > span {
    color: #0a1f38;
    font-size: 20px;
    font-weight: 800;
}

.profile-service-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.profile-service-stat {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas:
        "icon value"
        "icon label";
    align-items: center;
    gap: 2px 8px;
    min-width: 0;
    padding: 0 8px;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.profile-service-stat:last-child {
    border-right: 0;
}

.profile-service-icon {
    grid-area: icon;
    width: 30px;
    height: 30px;
    border-radius: 999px;
}

.profile-service-icon-blue {
    background: radial-gradient(circle, #ffffff 0 20%, transparent 22%), rgba(45, 143, 216, 0.12);
}

.profile-service-icon-green {
    background: radial-gradient(circle, #ffffff 0 20%, transparent 22%), rgba(31, 160, 102, 0.13);
}

.profile-service-icon-orange {
    background: radial-gradient(circle, #ffffff 0 20%, transparent 22%), rgba(239, 156, 45, 0.15);
}

.profile-service-stat strong {
    grid-area: value;
    font-size: 24px;
    line-height: 1;
}

.profile-service-stat small {
    grid-area: label;
    font-size: 11px;
    line-height: 1.25;
}

.profile-recharge-record-card {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    grid-template-areas:
        "icon label action"
        "icon title action"
        "icon copy action";
    align-items: center;
    gap: 4px 12px;
    padding: 22px;
}

.profile-recharge-record-card::before {
    content: "";
    grid-area: icon;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.95) 0 6px, transparent 7px),
        linear-gradient(145deg, rgba(232, 245, 255, 0.98), rgba(211, 234, 255, 0.92));
    border: 1px solid rgba(22, 119, 255, 0.12);
    box-shadow:
        0 12px 24px rgba(22, 119, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.profile-recharge-record-card::after {
    content: "";
    grid-area: icon;
    place-self: center;
    width: 24px;
    height: 24px;
    background: #1677ff;
    -webkit-mask: var(--sc-icon-receipt) center / contain no-repeat;
    mask: var(--sc-icon-receipt) center / contain no-repeat;
}

.profile-recharge-record-card > span {
    grid-area: label;
    color: var(--muted);
    font-size: 14px;
}

.profile-recharge-record-card strong {
    grid-area: title;
    font-size: 20px;
}

.profile-recharge-record-card small {
    grid-area: copy;
}

.profile-recharge-record-card .compact-action-btn {
    grid-area: action;
    min-height: 36px;
    border-radius: 999px;
}

.profile-exit-card {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    grid-template-areas:
        "icon label action"
        "icon title action"
        "icon copy action";
    align-items: center;
    gap: 4px 12px;
    padding: 22px;
}

.profile-exit-card::before {
    content: "";
    grid-area: icon;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.95) 0 6px, transparent 7px),
        linear-gradient(145deg, rgba(255, 244, 244, 0.98), rgba(255, 226, 226, 0.92));
    border: 1px solid rgba(239, 68, 68, 0.12);
    box-shadow:
        0 12px 24px rgba(239, 68, 68, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.profile-exit-card::after {
    content: "";
    grid-area: icon;
    place-self: center;
    width: 25px;
    height: 25px;
    background: #ef4444;
    -webkit-mask: var(--sc-icon-log-out) center / contain no-repeat;
    mask: var(--sc-icon-log-out) center / contain no-repeat;
}

.profile-exit-card > span {
    grid-area: label;
    font-size: 14px;
    color: var(--muted);
}

.profile-exit-card strong {
    grid-area: title;
    font-size: 20px;
}

.profile-exit-card small {
    grid-area: copy;
}

.profile-exit-card .compact-action-btn {
    grid-area: action;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border: 0;
    color: transparent;
    background: transparent;
}

.profile-exit-card .compact-action-btn::after {
    content: ">";
    color: #9aa7b8;
    font-size: 28px;
    line-height: 1;
}

@media (max-width: 759px) {
    .dashboard-profile-panel {
        padding: 18px 12px 16px;
        border-radius: 24px 24px 0 0;
    }

    .profile-identity-card {
        grid-template-columns: 86px minmax(0, 1fr);
        padding: 20px;
    }

    .profile-identity-card .compact-action-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .profile-balance-card small {
        max-width: 100%;
    }

    .profile-service-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .profile-service-stat {
        border-right: 0;
    }
}

/* Tutorial, Q&A records, and compact profile polish */
.tutorial-panel {
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 6%, rgba(52, 152, 239, 0.13), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 252, 255, 0.94));
}

.sender-tutorial-page {
    max-width: 520px;
}

.tutorial-page-hero {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(45, 143, 216, 0.14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 85% 20%, rgba(91, 181, 255, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(236, 248, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.tutorial-page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #5c7288;
    font-size: 13px;
}

.tutorial-page-user {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.tutorial-page-user p,
.tutorial-page-user h1,
.tutorial-page-user small {
    margin: 0;
}

.tutorial-page-user p {
    color: #0a1f38;
    font-size: 16px;
}

.tutorial-page-user p strong {
    font-size: 22px;
}

.tutorial-page-user h1 {
    margin-top: 5px;
    color: #061a31;
    font-size: 24px;
    line-height: 1.2;
}

.tutorial-page-user small {
    display: block;
    margin-top: 6px;
    color: #607286;
    font-size: 13px;
    line-height: 1.5;
}

.tutorial-page-actions {
    display: grid;
    gap: 10px;
}

.tutorial-module-list {
    display: grid;
    gap: 10px;
}

.tutorial-module-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(45, 143, 216, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(31, 111, 172, 0.06);
}

.tutorial-module-card span {
    color: #0b78db;
    font-size: 12px;
    font-weight: 800;
}

.tutorial-module-card strong {
    color: #061a31;
    font-size: 14px;
    line-height: 1.55;
}

.tutorial-module-card .compact-action-btn {
    justify-self: start;
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
}

.tutorial-module-work {
    border-color: rgba(69, 129, 255, 0.18);
    background: linear-gradient(135deg, rgba(240, 246, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.tutorial-module-cardbiz {
    border-color: rgba(30, 161, 196, 0.18);
    background: linear-gradient(135deg, rgba(238, 250, 253, 0.96), rgba(255, 255, 255, 0.9));
}

.tutorial-module-appointment {
    border-color: rgba(28, 169, 108, 0.18);
    background: linear-gradient(135deg, rgba(239, 252, 245, 0.96), rgba(255, 255, 255, 0.9));
}

.tutorial-title-block {
    position: relative;
    padding-top: 8px;
}

.tutorial-back-button {
    align-self: flex-start;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
}

.tutorial-step-list,
.qa-record-list {
    display: grid;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

#qaRecordsPanel {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.tutorial-step-card,
.qa-record-card {
    border: 1px solid rgba(45, 143, 216, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 32px rgba(31, 111, 172, 0.06);
}

.tutorial-step-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
}

.tutorial-step-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #0b78db;
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(218, 240, 255, 0.95), rgba(242, 248, 255, 0.95));
}

.tutorial-step-card strong {
    display: block;
    color: #061a31;
    font-size: 17px;
    line-height: 1.25;
}

.tutorial-step-card p {
    margin: 8px 0 0;
    color: #5b6d80;
    font-size: 14px;
    line-height: 1.7;
}

.qa-record-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 14px;
}

.qa-record-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.qa-record-head strong {
    min-width: 0;
    color: #071d35;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.qa-record-head time {
    color: #8a99aa;
    font-size: 12px;
    white-space: nowrap;
}

.qa-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.qa-record-meta span {
    flex: 0 1 auto;
    max-width: 100%;
    min-height: 28px;
    padding: 6px 9px;
    overflow: hidden;
    border-radius: 999px;
    color: #1c6fb4;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(223, 242, 255, 0.72);
}

.qa-record-card p {
    min-width: 0;
    margin: 0;
    padding: 10px;
    border-radius: 14px;
    color: #5b6d80;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    background: rgba(247, 251, 255, 0.86);
}

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

.card-management-tab-button {
    min-width: 0;
    padding-inline: 8px;
    white-space: nowrap;
}

.dashboard-profile-panel {
    padding-top: 18px;
}

.dashboard-profile-panel .module-page-title h2 {
    font-size: clamp(24px, 6vw, 32px);
}

.profile-center-grid {
    gap: 12px;
}

.profile-center-card {
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(31, 111, 172, 0.055);
}

.profile-identity-card {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 112px;
    padding: 16px;
}

.profile-identity-avatar {
    width: 58px;
    height: 58px;
    box-shadow:
        0 10px 22px rgba(17, 111, 229, 0.16),
        0 0 0 4px rgba(227, 243, 255, 0.86);
}

.profile-identity-avatar span {
    font-size: 24px;
}

.profile-identity-copy {
    min-width: 0;
    gap: 5px;
}

.profile-identity-copy strong {
    max-width: 100%;
    font-size: 21px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-identity-copy small {
    font-size: 12px;
    line-height: 1.35;
}

.profile-identity-copy .home-account-pill {
    width: min(100%, 260px);
    max-width: 100%;
    min-height: 24px;
    padding: 0 9px;
    overflow: hidden;
    border-radius: 999px;
    font-size: 10px;
}

.profile-identity-copy .home-account-pill > span {
    flex: 0 0 auto;
    font-size: 10px;
}

.profile-identity-copy .home-account-pill strong {
    min-width: 0;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
}

.profile-identity-card .compact-action-btn {
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
}

.profile-balance-card {
    min-height: 158px;
    padding: 18px;
    border-radius: 18px;
}

.profile-balance-card::before {
    right: 26px;
    top: 32px;
    width: 74px;
    height: 74px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.16));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 18px 34px rgba(5, 65, 150, 0.18);
}

.profile-balance-card::after {
    right: 46px;
    top: 52px;
    width: 34px;
    height: 34px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
    -webkit-mask: var(--sc-icon-receipt) center / contain no-repeat;
    mask: var(--sc-icon-receipt) center / contain no-repeat;
}

.profile-balance-card span {
    font-size: 13px;
}

.profile-balance-card strong {
    margin-top: 8px;
    font-size: clamp(38px, 10vw, 52px);
    line-height: 1;
}

.profile-balance-card small {
    max-width: 72%;
    font-size: 12px;
    line-height: 1.5;
}

.profile-balance-card .primary-btn {
    min-height: 44px;
    margin-top: 12px;
    font-size: 14px;
}

.profile-service-card,
.profile-recharge-record-card,
.profile-exit-card {
    padding: 16px;
    border-radius: 18px;
}

.profile-service-card > span,
.profile-recharge-record-card > span,
.profile-exit-card > span {
    font-size: 18px;
}

@media (max-width: 759px) {
    .tutorial-panel {
        padding: 16px 12px;
    }

    .sender-tutorial-page {
        padding: 10px 10px calc(22px + env(safe-area-inset-bottom));
    }

    .tutorial-page-hero {
        padding: 16px;
    }

    .tutorial-page-user {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .tutorial-step-card {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 14px;
    }

    .tutorial-step-card strong {
        font-size: 16px;
    }

    .tutorial-step-card p {
        font-size: 13px;
    }

    .qa-record-head {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .qa-record-meta {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .qa-record-meta span {
        width: 100%;
        white-space: nowrap;
    }

    .card-management-tab-button {
        min-height: 38px;
        padding-inline: 4px;
        font-size: 12px;
    }

    .dashboard-profile-panel {
        padding: 16px 12px 14px;
    }

    .profile-identity-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 10px;
        min-height: 0;
        padding: 14px;
    }

    .profile-identity-avatar {
        width: 54px;
        height: 54px;
    }

    .profile-identity-copy strong {
        font-size: 20px;
    }

    .profile-identity-card .compact-action-btn {
        grid-column: 2;
        justify-self: start;
        width: auto;
        min-height: 34px;
        padding: 0 14px;
    }

    .profile-balance-card {
        min-height: 144px;
        padding: 16px;
    }

    .profile-balance-card strong {
        font-size: clamp(36px, 12vw, 48px);
    }

    .profile-balance-card small {
        max-width: 78%;
    }

    .profile-service-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .profile-service-stat {
        grid-template-columns: 1fr;
        grid-template-areas:
            "icon"
            "value"
            "label";
        justify-items: center;
        gap: 4px;
        padding: 0 4px;
        text-align: center;
        border-right: 1px solid rgba(15, 23, 42, 0.06);
    }

    .profile-service-stat:last-child {
        border-right: 0;
    }

    .profile-service-icon {
        width: 26px;
        height: 26px;
    }

    .profile-service-stat strong {
        font-size: 20px;
    }

    .profile-recharge-record-card {
        grid-template-columns: 44px minmax(0, 1fr);
        grid-template-areas:
            "icon label"
            "icon title"
            "icon copy"
            ". action";
        gap: 4px 10px;
    }

    .profile-recharge-record-card::before,
    .profile-exit-card::before {
        width: 42px;
        height: 42px;
    }

    .profile-recharge-record-card::after,
    .profile-exit-card::after {
        width: 22px;
        height: 22px;
    }

    .profile-recharge-record-card .compact-action-btn {
        justify-self: start;
        margin-top: 6px;
    }
}

/* Unified icon and color pass for dashboard/public pages */
:root {
    --sc-icon-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zM14 2v6h6M8 13h8M8 17h5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-id: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zM8 17c.7-1.5 2-2.3 4-2.3s3.3.8 4 2.3M12 12a2.6 2.6 0 1 0 0-5.2 2.6 2.6 0 0 0 0 5.2zM16 7h1.5M16 10h1.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h14a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zM16 2v4M8 2v4M3 10h18M12 14v4M10 16h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12a7 7 0 0 1 7-7h2a7 7 0 0 1 0 14h-1.5L8 21v-2.5A7 7 0 0 1 4 12zM9 12h.01M12 12h.01M15 12h.01' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-mic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v5a3 3 0 0 0 3 3zM19 10v1a7 7 0 0 1-14 0v-1M12 18v4M8 22h8' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-cube: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 9 5-9 5-9-5 9-5zM3 7v10l9 5 9-5V7M12 12v10' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 19V5M4 19h16M8 16v-5M12 16V8M16 16v-8M8 7h8M15 5l3 3-3 3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m21 21-4.3-4.3M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15z' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4M8 6v4M16 12v4M12 18v2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m22 2-7 20-4-9-9-4 20-7zM22 2 11 13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-edit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-receipt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10a2 2 0 0 1 2 2v16l-3-1.8-3 1.8-3-1.8L7 21V5a2 2 0 0 1 2-2zM9 8h6M9 12h6M9 16h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-log-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4M10 17l5-5-5-5M15 12H3' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-share: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8a3 3 0 1 0-2.8-4M6 14a3 3 0 1 0 0 6 3 3 0 0 0 0-6zM18 14a3 3 0 1 0 0 6 3 3 0 0 0 0-6zM8.7 15.5l6.6-3.8M8.7 18.5l6.6 3.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 13a5 5 0 0 0 7.1 0l2-2a5 5 0 0 0-7.1-7.1l-1.1 1.1M14 11a5 5 0 0 0-7.1 0l-2 2A5 5 0 0 0 12 20.1l1.1-1.1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-card-manage: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 7a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2zM3 9v10a2 2 0 0 0 2 2h11M9 15c.7-1.3 1.8-2 3-2s2.3.7 3 2M12 11a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM16 9h2M16 12h2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-report-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8zM14 2v6h5M8 13h5M8 17h3M14.5 16.5l2 2 4-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-calendar-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h14a2 2 0 0 1 2 2v8.5M16 2v4M8 2v4M3 10h18M7 20H5a2 2 0 0 1-2-2V6M16.5 14a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9zM16.5 16.2v2.3l1.6.9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-thought-note: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 4h11a2 2 0 0 1 2 2v13l-3-1.6-3 1.6-3-1.6L6 19zM9 8h6M9 12h4M9.5 16h.01M12.5 16h.01M15.5 16h.01M4 7h2M4 11h2M4 15h2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.dashboard-shell .primary-btn,
.public-card-shell .primary-btn,
.home-report-cta {
    color: #ffffff;
    background: #1677ff;
    background-image: none;
    border-color: transparent;
    box-shadow: 0 13px 28px rgba(22, 119, 255, 0.22);
}

.dashboard-shell .primary-btn:hover,
.public-card-shell .primary-btn:hover,
.home-report-cta:hover {
    background: #1677ff;
    box-shadow: 0 15px 30px rgba(22, 119, 255, 0.28);
}

.profile-balance-card .primary-btn {
    color: #1677ff;
    background: #ffffff;
    background-image: none;
    box-shadow: none;
}

.home-focus-icon::before,
.home-recent-icon::before,
.home-app-icon::before,
.module-hero-visual::before,
.card-quick-chip::before,
.module-search-field > span::before,
.card-item-meta span::before,
.feature-toggle-chip span::before,
.profile-service-icon::before,
.primary-btn.chat-submit-btn::after,
.work-report-send-button::after,
.home-date-pill::before,
.home-report-cta::before,
.hero-contact-trigger::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    border-radius: 0;
    background: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.home-focus-icon::before,
.home-recent-icon::before,
.home-app-icon::before,
.module-hero-visual::before {
    width: 52%;
    height: 52%;
}

.home-focus-blue::before,
.home-recent-icon.home-focus-blue::before {
    -webkit-mask-image: var(--sc-icon-doc);
    mask-image: var(--sc-icon-doc);
}

.home-focus-green::before,
.home-recent-icon.home-focus-green::before {
    -webkit-mask-image: var(--sc-icon-calendar);
    mask-image: var(--sc-icon-calendar);
}

.home-focus-purple::before,
.home-recent-icon.home-focus-purple::before {
    -webkit-mask-image: var(--sc-icon-chat);
    mask-image: var(--sc-icon-chat);
}

.home-focus-orange::before,
.home-recent-icon.home-focus-orange::before {
    -webkit-mask-image: var(--sc-icon-calendar);
    mask-image: var(--sc-icon-calendar);
}

.home-focus-icon,
.home-recent-icon {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 18px rgba(31, 111, 172, 0.08);
}

.home-app-card:nth-child(1) .home-app-icon::before {
    -webkit-mask-image: var(--sc-icon-card-manage);
    mask-image: var(--sc-icon-card-manage);
}

.home-app-card:nth-child(2) .home-app-icon::before {
    -webkit-mask-image: var(--sc-icon-report-check);
    mask-image: var(--sc-icon-report-check);
}

.home-app-card:nth-child(3) .home-app-icon::before {
    -webkit-mask-image: var(--sc-icon-calendar-clock);
    mask-image: var(--sc-icon-calendar-clock);
}

.home-app-card-cyan .home-app-icon {
    color: #ffffff;
    background: linear-gradient(145deg, #54c7d8 0%, #1196ad 100%);
}

.home-app-card-blue .home-app-icon {
    color: #ffffff;
    background: linear-gradient(145deg, #5ab3ff 0%, #1677ff 100%);
}

.home-app-card-green .home-app-icon {
    color: #ffffff;
    background: linear-gradient(145deg, #42d391 0%, #12a465 100%);
}

.module-hero-workreports .module-hero-visual::before {
    -webkit-mask-image: var(--sc-icon-chart);
    mask-image: var(--sc-icon-chart);
}

.module-hero-appointments .module-hero-visual::before {
    -webkit-mask-image: var(--sc-icon-calendar);
    mask-image: var(--sc-icon-calendar);
}

.module-hero-visual {
    color: #ffffff;
    background: linear-gradient(145deg, #59b4ff 0%, #1677ff 100%);
}

.module-hero-appointments .module-hero-visual {
    background: linear-gradient(145deg, #58c891 0%, #129d62 100%);
}

.home-date-pill {
    gap: 7px;
}

.home-date-pill::before {
    width: 15px;
    height: 15px;
    color: #5f7287;
    -webkit-mask-image: var(--sc-icon-calendar);
    mask-image: var(--sc-icon-calendar);
}

.home-account-pill::after {
    content: "";
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    background: currentColor;
    opacity: 0.9;
    -webkit-mask: var(--sc-icon-doc) center / contain no-repeat;
    mask: var(--sc-icon-doc) center / contain no-repeat;
}

.home-report-cta {
    gap: 10px;
}

.home-report-cta::before {
    width: 22px;
    height: 22px;
    -webkit-mask-image: var(--sc-icon-edit);
    mask-image: var(--sc-icon-edit);
}

.dashboard-tab-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
}

.dashboard-tab-button.is-active {
    color: #1677ff;
}

.dashboard-tab-button.is-active .dashboard-tab-icon {
    filter: drop-shadow(0 4px 8px rgba(22, 119, 255, 0.18));
}

.card-management-tabs {
    border: 1px solid rgba(22, 119, 255, 0.18);
    background: rgba(247, 251, 255, 0.86);
}

.card-management-tab-button.is-active {
    color: #1677ff;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(22, 119, 255, 0.12);
}

.card-item-meta span {
    align-items: center;
    gap: 7px;
}

.card-item-meta span:nth-child(1)::before {
    -webkit-mask-image: var(--sc-icon-chat);
    mask-image: var(--sc-icon-chat);
}

.card-item-meta span:nth-child(2)::before {
    -webkit-mask-image: var(--sc-icon-eye);
    mask-image: var(--sc-icon-eye);
}

.card-item-meta span:nth-child(3)::before {
    -webkit-mask-image: var(--sc-icon-share);
    mask-image: var(--sc-icon-share);
}

.card-item-meta span:nth-child(4)::before {
    -webkit-mask-image: var(--sc-icon-calendar);
    mask-image: var(--sc-icon-calendar);
}

.feature-toggle-chip {
    border-color: rgba(22, 119, 255, 0.12);
    background: rgba(255, 255, 255, 0.88);
}

.feature-toggle-chip input {
    accent-color: #1677ff;
}

.feature-toggle-chip span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.feature-toggle-chip:nth-of-type(1) span::before {
    color: #1677ff;
    -webkit-mask-image: var(--sc-icon-calendar);
    mask-image: var(--sc-icon-calendar);
}

.feature-toggle-chip:has(input:checked) {
    border-color: rgba(22, 119, 255, 0.24);
    background: rgba(234, 244, 255, 0.9);
    color: #1677ff;
}

.module-search-field > span {
    display: inline-flex;
    width: 18px;
    height: 18px;
    overflow: hidden;
    color: transparent;
}

.module-search-field > span::before {
    width: 18px;
    height: 18px;
    color: #8a99aa;
    -webkit-mask-image: var(--sc-icon-search);
    mask-image: var(--sc-icon-search);
}

.module-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

#appointmentsPanel > .module-create-entry .appointment-create-toggle::before {
    content: "";
    display: inline-block;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    background: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-image: var(--sc-icon-calendar);
    mask-image: var(--sc-icon-calendar);
}

.home-recent-item::after,
.work-report-thread-summary::after {
    content: ">";
    color: #9aa7b8;
    font-size: 24px;
    line-height: 1;
}

.home-recent-item::after {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.card-quick-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #145ca8;
    font-weight: 700;
}

.card-quick-chip::before {
    width: 17px;
    height: 17px;
    color: #1677ff;
}

.card-quick-chip:nth-child(1)::before {
    -webkit-mask-image: var(--sc-icon-doc);
    mask-image: var(--sc-icon-doc);
}

.card-quick-chip:nth-child(2)::before {
    -webkit-mask-image: var(--sc-icon-link);
    mask-image: var(--sc-icon-link);
}

.card-quick-chip:nth-child(3)::before {
    -webkit-mask-image: var(--sc-icon-cube);
    mask-image: var(--sc-icon-cube);
}

.card-quick-chip:nth-child(4)::before {
    -webkit-mask-image: var(--sc-icon-calendar);
    mask-image: var(--sc-icon-calendar);
}

.primary-btn.chat-submit-btn,
.work-report-send-button {
    gap: 8px;
    background: #1677ff;
    background-image: none;
}

.primary-btn.chat-submit-btn.is-pausing {
    background: var(--danger);
    background-image: none;
    box-shadow: 0 12px 24px rgba(185, 75, 70, 0.22);
}

.primary-btn.chat-submit-btn::after,
.work-report-send-button::after {
    width: 19px;
    height: 19px;
    -webkit-mask-image: var(--sc-icon-send);
    mask-image: var(--sc-icon-send);
}

.primary-btn.chat-submit-btn.is-pausing::after {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    -webkit-mask-image: none;
    mask-image: none;
}

.hero-contact-trigger {
    gap: 8px;
}

.hero-contact-trigger::after {
    width: 16px;
    height: 16px;
    -webkit-mask-image: var(--sc-icon-link);
    mask-image: var(--sc-icon-link);
}

.profile-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-service-icon::before {
    width: 18px;
    height: 18px;
}

.profile-service-icon-blue {
    color: #1677ff;
    background: rgba(22, 119, 255, 0.1);
}

.profile-service-icon-work {
    color: #1677ff;
    background: rgba(22, 119, 255, 0.1);
}

.profile-service-icon-work::before {
    -webkit-mask-image: var(--sc-icon-doc);
    mask-image: var(--sc-icon-doc);
}

.profile-service-icon-blue::before {
    -webkit-mask-image: var(--sc-icon-chat);
    mask-image: var(--sc-icon-chat);
}

.profile-service-icon-green {
    color: #12a465;
    background: rgba(18, 164, 101, 0.12);
}

.profile-service-icon-card {
    color: #12a465;
    background: rgba(18, 164, 101, 0.12);
}

.profile-service-icon-card::before {
    -webkit-mask-image: var(--sc-icon-id);
    mask-image: var(--sc-icon-id);
}

.profile-service-icon-green::before {
    -webkit-mask-image: var(--sc-icon-user);
    mask-image: var(--sc-icon-user);
}

.profile-service-icon-orange {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.13);
}

.profile-service-icon-speech {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.13);
}

.profile-service-icon-speech::before {
    -webkit-mask-image: var(--sc-icon-mic);
    mask-image: var(--sc-icon-mic);
}

.profile-service-icon-orange::before {
    -webkit-mask-image: var(--sc-icon-calendar);
    mask-image: var(--sc-icon-calendar);
}

.profile-service-icon-purple {
    color: #7255dd;
    background: rgba(114, 85, 221, 0.12);
}

.profile-service-icon-thoughts {
    color: #7255dd;
    background: rgba(114, 85, 221, 0.12);
}

.profile-service-icon-thoughts::before {
    -webkit-mask-image: var(--sc-icon-edit);
    mask-image: var(--sc-icon-edit);
}

.profile-service-icon-purple::before {
    -webkit-mask-image: var(--sc-icon-edit);
    mask-image: var(--sc-icon-edit);
}

.profile-identity-card .compact-action-btn::before {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.profile-identity-card .compact-action-btn {
    gap: 8px;
}

.profile-identity-card .compact-action-btn::before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: var(--sc-icon-edit) center / contain no-repeat;
    mask: var(--sc-icon-edit) center / contain no-repeat;
}

@media (max-width: 430px) {
    .card-management-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .card-management-tab-button {
        font-size: 11px;
    }

    .card-item-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-quick-chip {
        min-height: 38px;
    }
}

.work-report-thread-summary {
    position: relative;
}

.work-report-thread-summary::after {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.work-report-stat-row span {
    flex-direction: column;
    gap: 7px;
    font-weight: 750;
}

.work-report-stat-row span::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.work-report-stat-row span:nth-child(1)::before {
    background:
        linear-gradient(currentColor, currentColor) center / 18px 18px no-repeat,
        rgba(22, 119, 255, 0.1);
    color: #1677ff;
    -webkit-mask: none;
    mask: none;
}

.work-report-stat-row span:nth-child(2)::before {
    color: #12a465;
    background: currentColor;
    -webkit-mask: var(--sc-icon-calendar) center / 64% no-repeat;
    mask: var(--sc-icon-calendar) center / 64% no-repeat;
}

.work-report-stat-row span:nth-child(3)::before {
    color: #f59e0b;
    background: currentColor;
    -webkit-mask: var(--sc-icon-chat) center / 64% no-repeat;
    mask: var(--sc-icon-chat) center / 64% no-repeat;
}

.work-report-stat-row span:nth-child(4)::before {
    color: #7c5cff;
    background: currentColor;
    -webkit-mask: var(--sc-icon-doc) center / 64% no-repeat;
    mask: var(--sc-icon-doc) center / 64% no-repeat;
}

.work-report-entry-head {
    align-items: center;
}

.work-report-entry-head::before {
    content: "";
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 999px;
    color: #1677ff;
    background:
        currentColor;
    -webkit-mask: var(--sc-icon-link) center / 52% no-repeat;
    mask: var(--sc-icon-link) center / 52% no-repeat;
}

.employee-boss-entry-card .work-report-entry-head::before {
    color: #1677ff;
    -webkit-mask-image: var(--sc-icon-user);
    mask-image: var(--sc-icon-user);
}

.work-report-entry-card .work-report-entry-head::before {
    color: #12a465;
    -webkit-mask-image: var(--sc-icon-link);
    mask-image: var(--sc-icon-link);
}

.boss-briefing-head::before {
    content: "";
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 999px;
    color: #f59e0b;
    background: currentColor;
    -webkit-mask: var(--sc-icon-chart) center / 58% no-repeat;
    mask: var(--sc-icon-chart) center / 58% no-repeat;
}

.boss-briefing-head > div,
.work-report-entry-head > div {
    min-width: 0;
}

#appointmentsPanel .accordion-card summary {
    min-height: 112px;
    justify-content: center;
    padding-left: 84px;
}

#appointmentsPanel .accordion-card summary::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background:
        linear-gradient(currentColor, currentColor) center / 28px 28px no-repeat,
        rgba(18, 164, 101, 0.1);
    color: #12a465;
    -webkit-mask-image: var(--sc-icon-calendar);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 58%;
    mask-image: var(--sc-icon-calendar);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 58%;
    transform: translateY(-50%);
}

#appointmentsPanel .record-card {
    position: relative;
}

#appointmentsPanel .record-card::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #7c5cff;
    background: currentColor;
    -webkit-mask: var(--sc-icon-calendar) center / 62% no-repeat;
    mask: var(--sc-icon-calendar) center / 62% no-repeat;
}

#appointmentsPanel .record-card .record-head,
#appointmentsPanel .record-card > p,
#appointmentsPanel .record-card > form {
    margin-left: 46px;
}

.public-card-page:not(.work-report-page) .chat-form {
    border-radius: 20px;
}

.public-card-page:not(.work-report-page) .chat-form textarea {
    min-height: 50px;
    border: 1px solid rgba(113, 128, 150, 0.16);
    background: #ffffff;
}

.public-card-page:not(.work-report-page) .chat-language-select {
    background: #ffffff;
}

/* Appointment module layout */
.floating-refresh-button {
    display: none;
}

#appointmentsPanel {
    overflow: hidden;
}

#appointmentsPanel .module-page-title {
    margin-bottom: 14px;
}

#appointmentsPanel .module-page-title h2 {
    font-size: 24px;
    font-weight: 850;
}

#appointmentsPanel .module-hero-card {
    min-height: 164px;
    border-radius: 18px;
    border-color: rgba(22, 119, 255, 0.16);
    box-shadow: 0 14px 32px rgba(31, 111, 172, 0.08);
}

#appointmentsPanel .module-hero-card h2 {
    margin-bottom: 8px;
    font-size: 27px;
    line-height: 1.14;
}

#appointmentsPanel .module-hero-card p {
    max-width: 280px;
    color: #405269;
    font-size: 14px;
    line-height: 1.65;
}

#appointmentsPanel .module-hero-card {
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 150px;
    margin-bottom: 16px;
    padding: 22px 24px;
}

#appointmentsPanel .module-hero-appointments .module-hero-visual {
    grid-column: 1;
    grid-row: 1;
    width: 72px;
    height: 72px;
    justify-self: center;
    border-radius: 999px;
    background: linear-gradient(145deg, #5bbcff 0%, #1677ff 100%);
    box-shadow:
        0 14px 28px rgba(22, 119, 255, 0.2),
        0 0 0 5px rgba(221, 241, 255, 0.86);
}

#appointmentsPanel .module-hero-appointments > div {
    grid-column: 2;
    grid-row: 1;
}

#appointmentsPanel > .module-create-entry {
    margin: 0 0 18px;
}

#appointmentsPanel > .module-create-entry .primary-btn {
    min-height: 56px;
    border-radius: 16px;
    font-size: 18px;
}

#appointmentsPanel .module-section-title {
    margin: 22px 0 12px;
}

#appointmentsPanel .module-section-title h3 {
    font-size: 24px;
    font-weight: 850;
}

#appointmentsPanel .module-section-title span {
    min-width: 34px;
    min-height: 34px;
    justify-content: center;
    padding: 0;
    background: #eaf4ff;
    color: #0b8bd8;
}

#appointmentsPanel .accordion-list,
#appointmentsPanel .record-list {
    display: grid;
    gap: 14px;
}

#appointmentsPanel .accordion-card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
}

#appointmentsPanel .accordion-card summary {
    min-height: 132px;
    padding: 20px 62px 20px 86px;
}

#appointmentsPanel .accordion-card summary::before {
    left: 22px;
    width: 44px;
    height: 44px;
    color: #12a465;
}

#appointmentsPanel .summary-copy strong {
    font-size: 20px;
    line-height: 1.25;
}

#appointmentsPanel .summary-copy small {
    margin-top: 8px;
    color: #6b7a90;
    font-size: 14px;
    line-height: 1.6;
    white-space: normal;
}

#appointmentsPanel .summary-meta {
    margin-top: 8px;
}

#appointmentsPanel .summary-meta span {
    border-radius: 999px;
}

@media (max-width: 430px) {
    #appointmentsPanel .module-hero-card {
        grid-template-columns: 78px minmax(0, 1fr);
        padding: 20px;
    }

    #appointmentsPanel .module-hero-appointments .module-hero-visual {
        width: 68px;
        height: 68px;
    }

    #appointmentsPanel .accordion-card summary {
        padding-right: 54px;
    }

    .appointment-current-card-head,
    .appointment-current-card-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .appointment-current-card-head {
        display: grid;
    }

    .appointment-current-card-form .compact-action-btn {
        width: 100%;
    }

    .appointment-card-toggle-item,
    .appointment-card-feature-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .appointment-card-feature-form {
        display: grid;
    }

    .appointment-card-feature-form .compact-action-btn {
        width: 100%;
    }
}

/* Card and appointment final layout polish */
#cardManagementPanel > .module-page-title,
#appointmentsPanel > .module-page-title {
    display: none;
}

#cardManagementPanel {
    gap: 18px;
}

#cardManagementPanel > .card-management-tabs {
    margin-top: 0;
}

#cardsPanel > .section-head-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 4px;
}

#cardsPanel > .section-head-split .section-eyebrow {
    display: none;
}

#cardsPanel > .section-head-split h2 {
    margin: 0;
    color: #071a33;
    font-size: 22px;
    font-weight: 850;
    line-height: 1.2;
}

#cardsPanel .card-view-toggle-button {
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #edf6ff;
    color: #1677ff;
    box-shadow: none;
    font-size: 13px;
}

#cardsPanel .card-view-toggle-button:hover:not(:disabled),
#cardsPanel .card-view-toggle-button:focus-visible {
    background: #e4f1ff;
    color: #0b67dc;
    outline: none;
}

#cardsPanel .dashboard-card-list {
    gap: 14px;
    margin-top: 10px;
}

#cardsPanel .card-item {
    position: relative;
    display: grid;
    gap: 14px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(173, 211, 255, 0.9);
    border-radius: 18px;
    background:
        radial-gradient(circle at 96% 12%, rgba(22, 119, 255, 0.13), transparent 32%),
        linear-gradient(135deg, rgba(245, 251, 255, 0.98) 0%, rgba(234, 247, 255, 0.94) 100%);
    box-shadow: 0 14px 34px rgba(31, 111, 172, 0.08);
}

#cardsPanel .card-item::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -86px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    pointer-events: none;
}

#cardsPanel .card-item > * {
    position: relative;
    z-index: 1;
}

#cardsPanel .card-item-head {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

#cardsPanel .card-item-head img {
    width: 72px;
    height: 72px;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow:
        0 12px 24px rgba(22, 119, 255, 0.12),
        0 0 0 2px rgba(174, 211, 255, 0.6);
}

#cardsPanel .card-item-head-copy {
    padding-top: 3px;
}

#cardsPanel .card-title-row {
    gap: 8px;
}

#cardsPanel .card-title-row h3 {
    color: #061b34;
    font-size: 22px;
    font-weight: 850;
    line-height: 1.18;
}

#cardsPanel .card-type-pill,
#cardsPanel .card-status-badge {
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
}

#cardsPanel .card-type-pill {
    background: rgba(227, 241, 255, 0.9);
    color: #146ee8;
}

#cardsPanel .card-status-badge {
    justify-self: end;
    margin-left: 0;
    margin-top: 10px;
    white-space: nowrap;
}

#cardsPanel .card-item-head p {
    margin-top: 6px;
    color: #5a6b7e;
    font-size: 14px;
    line-height: 1.45;
}

#cardsPanel .card-item-tags {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 0;
}

#cardsPanel .card-item-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 30px;
    padding: 6px 9px;
    overflow: hidden;
    border-color: rgba(197, 223, 250, 0.9);
    background: rgba(238, 247, 255, 0.86);
    color: #166ed8;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#cardsPanel .card-item-tags .card-serial-tag {
    justify-content: flex-start;
}

#cardsPanel .card-item-tags .card-appointment-tag.is-disabled {
    border-color: rgba(213, 224, 235, 0.9);
    background: rgba(246, 249, 252, 0.94);
    color: #66778c;
}

#cardsPanel .card-item-tags .card-appointment-tag.is-enabled {
    border-color: rgba(33, 150, 243, 0.22);
    background: rgba(235, 246, 255, 0.98);
    color: #0b7edc;
}

#cardsPanel .card-style-description {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.66);
    color: #40566c;
    font-size: 13px;
    line-height: 1.7;
}

#cardsPanel .card-validity-row {
    display: none;
}

#cardsPanel .card-feature-form,
#cardsPanel .card-supplement-section,
#cardsPanel .card-inline-actions {
    margin-top: 2px;
}

#cardsPanel .card-inline-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

#cardsPanel .card-feature-form {
    border-color: rgba(197, 223, 250, 0.8);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.card-manage-modal-card {
    width: min(94vw, 560px);
    max-height: min(88vh, 760px);
    overflow-y: auto;
}

.card-manage-form {
    gap: 12px;
}

.card-manage-status-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid rgba(33, 150, 243, 0.14);
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 12%, rgba(22, 119, 255, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(246, 251, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.card-manage-status-panel.is-paused {
    border-color: rgba(245, 158, 11, 0.22);
    background:
        radial-gradient(circle at 92% 12%, rgba(245, 158, 11, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(255, 255, 255, 0.94));
}

.card-manage-status-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.card-manage-status-copy span {
    color: #1677ff;
    font-size: 12px;
    font-weight: 850;
}

.card-manage-status-panel.is-paused .card-manage-status-copy span {
    color: #b87512;
}

.card-manage-status-copy strong {
    color: #061b34;
    font-size: 16px;
    line-height: 1.25;
}

.card-manage-status-copy small {
    color: #5f7287;
    font-size: 12px;
    line-height: 1.55;
}

.card-manage-status-panel form {
    margin: 0;
}

.card-service-toggle-btn {
    min-width: 92px;
    white-space: nowrap;
}

.card-manage-form input[type="number"],
.card-manage-form input[type="text"] {
    width: 100%;
}

.card-manage-divider {
    height: 1px;
    margin: 18px 0;
    background: rgba(15, 23, 42, 0.08);
}

.card-manage-supplement-panel {
    padding: 0;
}

.appointment-feature-title {
    margin-top: 20px;
}

.appointment-guide-note {
    display: grid;
    gap: 4px;
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid rgba(14, 139, 220, 0.18);
    border-radius: 14px;
    background: rgba(232, 247, 255, 0.82);
    color: #071a33;
}

.appointment-guide-note strong {
    font-size: 14px;
    font-weight: 800;
}

.appointment-guide-note span {
    font-size: 13px;
    line-height: 1.55;
    color: #5b6b7f;
}

.appointment-current-card-panel {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid rgba(197, 223, 250, 0.82);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(31, 111, 172, 0.07);
}

.appointment-current-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.appointment-current-card-head strong {
    color: #071a33;
    font-size: 16px;
    font-weight: 850;
}

.appointment-current-card-head small {
    color: #66778c;
    font-size: 12px;
}

.appointment-current-card-preview {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.appointment-current-card-preview img {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(174, 211, 255, 0.72);
}

.appointment-current-card-preview div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.appointment-current-card-preview strong,
.appointment-current-card-preview small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-current-card-preview strong {
    color: #061b34;
    font-size: 16px;
    font-weight: 850;
}

.appointment-current-card-preview small {
    color: #0b8bd8;
    font-size: 12px;
    font-weight: 800;
}

.appointment-current-card-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.appointment-current-card-picker {
    display: grid;
    min-width: 0;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(197, 223, 250, 0.9);
    border-radius: 14px;
    background: #f7fbff;
    color: #071a33;
    text-align: left;
}

.appointment-current-card-picker span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.appointment-current-card-picker strong,
.appointment-current-card-picker small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-current-card-picker strong {
    font-size: 14px;
    font-weight: 850;
}

.appointment-current-card-picker small {
    color: #66778c;
    font-size: 12px;
}

.appointment-card-picker-modal-card {
    max-width: 520px;
}

.appointment-card-picker-list {
    display: grid;
    gap: 10px;
    max-height: min(58vh, 460px);
    overflow: auto;
    padding-right: 2px;
}

.appointment-card-picker-option {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 70px;
    padding: 10px 12px;
    border: 1px solid rgba(197, 223, 250, 0.82);
    border-radius: 16px;
    background: #ffffff;
    color: #071a33;
    text-align: left;
}

.appointment-card-picker-option img {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(174, 211, 255, 0.68);
}

.appointment-card-picker-option.is-empty {
    border-style: dashed;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
}

.appointment-card-picker-empty-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.1);
    color: #1677ff;
    font-size: 18px;
    font-weight: 850;
    box-shadow: 0 0 0 2px rgba(174, 211, 255, 0.36);
}

.appointment-card-picker-option.is-empty em {
    background: rgba(22, 119, 255, 0.1);
    color: #1677ff;
}

.appointment-card-picker-option span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.appointment-card-picker-option strong,
.appointment-card-picker-option small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-card-picker-option strong {
    color: #061b34;
    font-size: 15px;
    font-weight: 850;
}

.appointment-card-picker-option small {
    color: #0b8bd8;
    font-size: 12px;
    font-weight: 800;
}

.appointment-card-picker-option em {
    display: none;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(18, 164, 101, 0.11);
    color: #0d8a54;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.appointment-card-picker-option.is-selected {
    border-color: rgba(18, 164, 101, 0.38);
    background: rgba(240, 253, 248, 0.94);
}

.appointment-card-picker-option.is-selected em {
    display: inline-flex;
}

@media (max-width: 430px) {
    .appointment-current-card-head,
    .appointment-current-card-form {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .appointment-current-card-form .compact-action-btn {
        width: 100%;
    }

    .appointment-card-picker-option {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        padding: 10px;
    }

    .appointment-card-picker-option img {
        width: 44px;
        height: 44px;
    }

    .appointment-card-picker-empty-mark {
        width: 44px;
        height: 44px;
    }
}

.appointment-card-toggle-list {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.appointment-card-toggle-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(197, 223, 250, 0.78);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.appointment-card-toggle-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.appointment-card-toggle-copy strong,
.appointment-card-toggle-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-card-toggle-copy strong {
    color: #071a33;
    font-size: 15px;
    font-weight: 800;
}

.appointment-card-toggle-copy small {
    color: #66778c;
    font-size: 12px;
}

.appointment-card-feature-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Appointment settings redesign */
#appointmentsPanel {
    display: grid;
    gap: 14px;
    padding-bottom: 18px;
}

#appointmentsPanel.dashboard-hidden-panel {
    display: none;
}

#appointmentsPanel .module-hero-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 128px;
    margin: 0;
    padding: 24px 20px;
    border: 1px solid rgba(166, 213, 243, 0.88);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(226, 246, 255, 0.95) 68%, rgba(255, 247, 232, 0.9));
    box-shadow: 0 14px 32px rgba(31, 111, 172, 0.08);
}

#appointmentsPanel .module-hero-appointments .module-hero-visual,
#appointmentsPanel .appointment-hero-tags {
    display: none;
}

#appointmentsPanel .appointment-hero-logo {
    position: relative;
    display: inline-flex;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(174, 211, 255, 0.88);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(231, 245, 255, 0.98));
    box-shadow: 0 16px 30px rgba(22, 119, 255, 0.12);
}

#appointmentsPanel .appointment-hero-logo::before {
    content: "";
    position: absolute;
    inset: 13px;
    background: #1677ff;
    -webkit-mask: var(--sc-icon-calendar) center / contain no-repeat;
    mask: var(--sc-icon-calendar) center / contain no-repeat;
}

#appointmentsPanel .appointment-hero-logo::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 13px;
    height: 13px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: #21c45d;
    box-shadow: 0 5px 12px rgba(33, 196, 93, 0.22);
}

#appointmentsPanel .module-hero-card h2 {
    margin: 0 0 12px;
    color: #061b34;
    font-size: 24px;
    font-weight: 850;
    line-height: 1.18;
}

#appointmentsPanel .module-hero-card p {
    max-width: none;
    margin: 0;
    color: #53667a;
    font-size: 14px;
    line-height: 1.65;
}

#appointmentsPanel .appointment-guide-note,
#appointmentsPanel > .module-create-entry {
    display: none;
}

#appointmentsPanel .appointment-current-card-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin: 4px 4px 12px;
    padding: 14px 14px 16px;
    border: 1px solid rgba(213, 230, 250, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(31, 111, 172, 0.12);
}

#appointmentsPanel .appointment-current-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#appointmentsPanel .appointment-current-card-head strong {
    color: #061b34;
    font-size: 17px;
}

#appointmentsPanel .appointment-current-card-head small {
    display: none;
}

#appointmentsPanel .appointment-current-card-preview {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 12px;
}

#appointmentsPanel .appointment-current-card-preview img {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 0 0 3px rgba(226, 241, 255, 0.9);
}

#appointmentsPanel .appointment-current-card-preview strong {
    font-size: 16px;
}

#appointmentsPanel .appointment-current-card-preview small {
    color: #5f7287;
}

#appointmentsPanel .appointment-enabled-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

#appointmentsPanel .appointment-enabled-badge.is-disabled {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
}

#appointmentsPanel .appointment-current-card-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

#appointmentsPanel .appointment-current-card-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(197, 223, 250, 0.92);
    border-radius: 999px;
    background: #f8fbff;
    color: #1677ff;
    font-size: 13px;
    font-weight: 850;
    text-align: left;
}

#appointmentsPanel .appointment-current-card-picker::after {
    content: none;
}

#appointmentsPanel .appointment-current-card-picker em {
    color: inherit;
    font-size: 13px;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

#appointmentsPanel .appointment-current-card-picker em::after {
    content: " >";
}

#appointmentsPanel .appointment-current-card-picker:not(.has-card):not(.is-empty) em {
    display: none;
}

#appointmentsPanel .appointment-current-card-picker.has-card {
    justify-content: center;
    border-color: transparent;
    background: #1677ff;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(22, 119, 255, 0.18);
}

#appointmentsPanel .appointment-current-card-picker.is-empty {
    border-color: rgba(148, 163, 184, 0.38);
    background: #f8fafc;
    color: #475569;
}

#appointmentsPanel .appointment-current-card-picker.is-empty em {
    display: inline-flex;
}

#appointmentsPanel .appointment-current-card-picker.is-empty em::after {
    content: " >";
}

#appointmentsPanel .appointment-current-card-picker.has-card .appointment-current-card-picker-copy {
    display: none;
}

#appointmentsPanel .appointment-current-card-form .compact-action-btn {
    min-height: 42px;
    border-radius: 999px;
}

#appointmentsPanel .appointment-settings-panel {
    display: grid;
    gap: 14px;
    margin: 0 4px 0;
    padding: 16px;
    border: 1px solid rgba(213, 230, 250, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 16px 36px rgba(31, 111, 172, 0.1);
}

#appointmentsPanel .appointment-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#appointmentsPanel .appointment-settings-head > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

#appointmentsPanel .appointment-settings-title-row {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

#appointmentsPanel .appointment-settings-head strong {
    color: #061b34;
    font-size: 18px;
    font-weight: 850;
}

#appointmentsPanel .appointment-rule-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    padding: 0;
    border: 1px solid rgba(22, 119, 255, 0.42);
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.08);
    color: #1677ff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

#appointmentsPanel .appointment-rule-info-trigger:hover,
#appointmentsPanel .appointment-rule-info-trigger:focus-visible {
    background: rgba(22, 119, 255, 0.14);
    outline: 2px solid rgba(22, 119, 255, 0.22);
    outline-offset: 1px;
}

.appointment-rule-info-modal-card {
    width: min(94vw, 420px);
}

#appointmentRuleInfoModal {
    align-items: center;
    justify-items: center;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.appointment-rule-info-list {
    margin: 0;
    padding-left: 18px;
    color: #334155;
    line-height: 1.7;
}

.appointment-rule-info-list li + li {
    margin-top: 10px;
}

#appointmentsPanel .appointment-settings-head small {
    color: #7a8999;
    font-size: 12px;
    line-height: 1.35;
}

#appointmentsPanel .appointment-settings-card-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 8px 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(226, 238, 250, 0.96);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(255, 255, 255, 0.98));
}

#appointmentsPanel .appointment-settings-card-label {
    grid-column: 1 / -1;
    color: #1677ff;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
}

#appointmentsPanel .appointment-settings-card-row .appointment-current-card-preview {
    grid-template-columns: 54px minmax(0, 1fr);
}

#appointmentsPanel .appointment-settings-card-row .appointment-current-card-preview img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
}

#appointmentsPanel .appointment-settings-card-row .appointment-current-card-form {
    min-width: 0;
}

#appointmentsPanel .appointment-settings-card-row .appointment-current-card-picker {
    min-height: 38px;
    padding: 0 12px;
}

#appointmentsPanel .appointment-settings-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#appointmentsPanel .appointment-settings-summary-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    min-height: 116px;
    padding: 13px;
    border: 1px solid rgba(226, 238, 250, 0.96);
    border-radius: 16px;
    background: #fbfdff;
}

#appointmentsPanel .appointment-settings-summary-item > div {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
}

#appointmentsPanel .appointment-settings-summary-item small {
    color: #5f7287;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

#appointmentsPanel .appointment-settings-summary-item p {
    margin: 0;
    color: #061b34;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.2;
}

#appointmentsPanel .appointment-settings-summary-item em {
    color: #7a8999;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

#appointmentsPanel .appointment-settings-panel > .full-btn {
    min-height: 46px;
    border-radius: 999px;
}

#appointmentsPanel .appointment-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#appointmentsPanel .appointment-summary-card {
    display: grid;
    gap: 10px;
    min-height: 134px;
    padding: 16px;
    border: 1px solid rgba(213, 230, 250, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(31, 111, 172, 0.07);
}

#appointmentsPanel .appointment-summary-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 30px;
}

#appointmentsPanel .appointment-summary-head strong {
    color: #061b34;
    font-size: 16px;
    line-height: 1.2;
}

#appointmentsPanel .appointment-summary-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #e8f3ff;
    color: #1677ff;
}

#appointmentsPanel .appointment-summary-icon::before {
    content: "";
    width: 100%;
    height: 100%;
    background: currentColor;
    -webkit-mask: var(--sc-icon-calendar) center / 60% no-repeat;
    mask: var(--sc-icon-calendar) center / 60% no-repeat;
}

#appointmentsPanel .appointment-summary-icon-limit::before {
    -webkit-mask-image: var(--sc-icon-user);
    mask-image: var(--sc-icon-user);
}

#appointmentsPanel .appointment-summary-head > span:not(.appointment-summary-icon) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef6ff;
    color: #1677ff;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

#appointmentsPanel .appointment-summary-card p {
    margin: 0;
    color: #31445a;
    font-size: 14px;
    line-height: 1.5;
}

#appointmentsPanel .appointment-time-summary {
    display: grid;
    gap: 6px;
}

#appointmentsPanel .appointment-summary-card .appointment-time-value {
    color: #061b34;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.25;
    white-space: nowrap;
}

#appointmentsPanel .appointment-time-summary small {
    color: #7a8999;
    font-size: 12px;
    line-height: 1.35;
}

#appointmentsPanel .appointment-summary-card .appointment-limit-value {
    color: #061b34;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.25;
}

#appointmentsPanel .appointment-summary-card small {
    color: #7a8999;
    font-size: 12px;
    line-height: 1.45;
}

#appointmentsPanel .appointment-summary-card .compact-action-btn {
    align-self: end;
    margin-top: auto;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
}

#appointmentsPanel .appointment-create-modal-card {
    width: min(100%, 420px);
    padding: 26px 20px 20px;
}

#appointmentsPanel .appointment-create-sheet {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#appointmentsPanel .appointment-create-head {
    display: grid;
    gap: 5px;
    padding: 2px 2px 4px;
}

#appointmentsPanel .appointment-create-head strong {
    color: #061b34;
    font-size: 17px;
    font-weight: 850;
}

#appointmentsPanel .appointment-create-head small {
    color: #7a8999;
    font-size: 12px;
    line-height: 1.45;
}

#appointmentsPanel .appointment-create-sheet.is-time-mode .appointment-limit-field,
#appointmentsPanel .appointment-create-sheet.is-limit-mode .appointment-time-field {
    display: none;
}

#appointmentsPanel .appointment-create-sheet.is-limit-mode .dashboard-grid-form {
    grid-template-columns: 1fr;
}

#appointmentsPanel .module-section-title {
    margin: 18px 0 10px;
    align-items: center;
}

#appointmentsPanel .module-section-title > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

#appointmentsPanel .module-section-title h3 {
    font-size: 18px;
}

#appointmentsPanel .module-section-title small {
    color: #7a8999;
    font-size: 12px;
    line-height: 1.35;
}

#appointmentsPanel .module-section-title span {
    min-width: 28px;
    min-height: 28px;
    font-size: 12px;
}

#appointmentsPanel .appointment-slot-list {
    gap: 10px;
}

#appointmentsPanel .appointment-slot-card {
    border-color: rgba(213, 230, 250, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 22px rgba(31, 111, 172, 0.06);
}

#appointmentsPanel .appointment-slot-card summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    min-height: 0;
    padding: 14px 46px 14px 18px;
}

#appointmentsPanel .appointment-slot-card summary::before {
    display: none;
}

#appointmentsPanel .appointment-slot-card .summary-copy strong {
    color: #061b34;
    font-size: 16px;
}

#appointmentsPanel .appointment-slot-card .summary-copy small {
    margin-top: 4px;
    font-size: 12px;
}

#appointmentsPanel .appointment-slot-card .summary-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    margin: 0;
}

#appointmentsPanel .appointment-slot-card .summary-meta span {
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
}

#appointmentsPanel .appointment-slot-card .summary-meta span:first-child {
    border-color: rgba(34, 197, 94, 0.18);
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

#appointmentsPanel .appointment-slot-card .summary-meta span:last-child {
    border-color: rgba(22, 119, 255, 0.15);
    background: rgba(22, 119, 255, 0.08);
    color: #0b65cb;
}

#appointmentsPanel .appointment-record-list {
    gap: 10px;
}

#appointmentsPanel .appointment-record-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(213, 230, 250, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

#appointmentsPanel .appointment-record-card .record-head {
    align-items: center;
}

#appointmentsPanel .appointment-record-card .record-visitor {
    gap: 10px;
}

#appointmentsPanel .appointment-record-card .record-visitor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    object-fit: cover;
}

#appointmentsPanel .appointment-record-card .record-visitor-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 223, 250, 0.9);
    background: #eef6ff;
    color: #1677ff;
    font-size: 14px;
    font-weight: 850;
}

#appointmentsPanel .appointment-record-card p {
    margin: 0;
    color: #53667a;
    font-size: 12px;
    line-height: 1.55;
}

#appointmentsPanel .appointment-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

#appointmentsPanel .appointment-record-meta span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(213, 230, 250, 0.95);
    border-radius: 999px;
    background: #f8fbff;
    color: #53667a;
    font-size: 12px;
    font-weight: 750;
}

#appointmentsPanel .appointment-record-note {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(248, 252, 255, 0.92);
}

#appointmentsPanel .appointment-record-card form {
    justify-self: end;
    margin: 0;
}

#appointmentsPanel .appointment-record-card form .compact-action-btn,
#appointmentsPanel .appointment-record-card form .secondary-btn {
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
}

@media (max-width: 430px) {
    #appointmentsPanel {
        gap: 14px;
    }

    #appointmentsPanel .module-hero-card {
        grid-template-columns: 58px minmax(0, 1fr);
        min-height: 126px;
        padding: 22px 18px;
    }

    #appointmentsPanel .appointment-hero-logo {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    #appointmentsPanel .appointment-hero-logo::before {
        inset: 11px;
    }

    #appointmentsPanel .appointment-hero-logo::after {
        right: 9px;
        bottom: 9px;
    }

    #appointmentsPanel .appointment-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #appointmentsPanel .appointment-summary-card {
        min-height: 126px;
        padding: 14px 12px;
    }

    #appointmentsPanel .appointment-current-card-form {
        grid-template-columns: 1fr;
    }

    #appointmentsPanel .appointment-settings-panel {
        gap: 14px;
        padding: 14px;
    }

    #appointmentsPanel .appointment-settings-card-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    #appointmentsPanel .appointment-settings-card-row .appointment-current-card-form {
        width: 100%;
    }

    #appointmentsPanel .appointment-settings-card-row .appointment-current-card-picker.has-card {
        width: 100%;
    }

    #appointmentsPanel .appointment-settings-summary {
        gap: 8px;
    }

    #appointmentsPanel .appointment-settings-summary-item {
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: 124px;
        padding: 12px;
    }

    #appointmentsPanel .appointment-settings-summary-item p {
        font-size: 18px;
    }

    #appointmentsPanel .appointment-current-card-preview {
        grid-template-columns: 56px minmax(0, 1fr) auto;
    }

    #appointmentsPanel .appointment-current-card-preview img {
        width: 56px;
        height: 56px;
    }

    #appointmentsPanel .appointment-slot-card summary {
        grid-template-columns: 1fr;
        padding-right: 42px;
    }

    #appointmentsPanel .appointment-slot-card .summary-meta {
        justify-items: start;
        grid-auto-flow: column;
        justify-content: start;
    }

    #appointmentsPanel .appointment-record-meta span {
        max-width: 100%;
    }
}

#builderPanel {
    gap: 14px;
}

#builderPanel > .section-head-split {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(173, 211, 255, 0.8);
    border-radius: 18px;
    background:
        radial-gradient(circle at 95% 12%, rgba(22, 119, 255, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(250, 253, 255, 0.98) 0%, rgba(234, 247, 255, 0.94) 100%);
    box-shadow: 0 14px 34px rgba(31, 111, 172, 0.08);
}

#builderPanel > .section-head-split .section-eyebrow,
#builderPanel .builder-type-head .section-eyebrow {
    display: none;
}

#builderPanel > .section-head-split h2 {
    margin: 0;
    color: #061b34;
    font-size: 24px;
    font-weight: 850;
    line-height: 1.18;
}

#builderPanel > .section-head-split p:last-child {
    max-width: 560px;
    margin-top: 8px;
    color: #53667a;
    font-size: 14px;
    line-height: 1.7;
}

#builderPanel .builder-mode-switch {
    gap: 0;
    margin: 0;
    padding: 4px;
    border: 1px solid rgba(197, 223, 250, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

#builderPanel .builder-mode-button {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: #5f7287;
    font-size: 14px;
}

#builderPanel .builder-mode-button.is-active {
    background: #1677ff;
    background-image: none;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(22, 119, 255, 0.18);
}

#builderPanel .profile-source-section {
    display: grid;
    gap: 12px;
}

#builderPanel .card-builder-form[data-profile-source="voice"] [data-profile-file-panel],
#builderPanel [data-profile-file-panel].hidden-panel {
    display: none;
}

#builderPanel .profile-source-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(197, 223, 250, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

#builderPanel .profile-source-option {
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #5f7287;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

#builderPanel .profile-source-option.is-active {
    background: #1677ff;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(22, 119, 255, 0.16);
}

#builderPanel .profile-voice-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(213, 230, 250, 0.95);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(249, 253, 255, 0.98), rgba(242, 248, 255, 0.92));
}

#builderPanel .profile-voice-panel.hidden-panel {
    display: none;
}

#builderPanel .profile-voice-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

#builderPanel .profile-voice-toolbar .secondary-btn {
    min-height: 40px;
    border-radius: 12px;
}

#builderPanel .profile-voice-record-button.is-recording {
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(254, 242, 242, 0.96);
    color: #b91c1c;
}

#builderPanel .profile-voice-timer {
    min-width: 96px;
    color: #153a6a;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

#builderPanel .profile-voice-text {
    min-height: 168px;
    resize: vertical;
    line-height: 1.7;
}

#builderPanel .profile-voice-status {
    color: #5a6b7e;
    line-height: 1.6;
}

#builderPanel .builder-type-card {
    gap: 16px;
    padding: 18px;
    border-color: rgba(213, 230, 250, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(31, 111, 172, 0.07);
}

#builderPanel .builder-type-head h3 {
    color: #061b34;
    font-size: 24px;
    font-weight: 850;
}

#builderPanel .builder-type-head p:last-child {
    color: #5a6b7e;
    font-size: 14px;
    line-height: 1.65;
}

#builderPanel .upload-input-card,
#builderPanel .toggle-panel,
#builderPanel .builder-advanced-details {
    border-color: rgba(213, 230, 250, 0.95);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(249, 253, 255, 0.96), rgba(242, 248, 255, 0.92));
}

#builderPanel .upload-file-input {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
}

#builderPanel .upload-file-input::file-selector-button {
    background: #1677ff;
    background-image: none;
    box-shadow: none;
}

#builderPanel .builder-preview-trigger {
    min-height: 48px;
    border-radius: 16px;
    background: #1677ff;
    background-image: none;
    box-shadow: 0 12px 24px rgba(22, 119, 255, 0.18);
}

#builderPanel .builder-wizard-shell {
    display: grid;
    gap: 14px;
}

#builderPanel .builder-wizard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 126px;
    padding: 22px 20px;
    border: 1px solid rgba(168, 216, 244, 0.82);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(229, 247, 255, 0.96) 68%, rgba(255, 246, 232, 0.9) 100%);
    box-shadow: 0 14px 34px rgba(31, 111, 172, 0.08);
    overflow: hidden;
}

#builderPanel .builder-wizard-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.08);
    color: #1677ff;
    font-size: 11px;
    font-weight: 850;
}

#builderPanel .builder-wizard-hero h2 {
    margin: 10px 0 8px;
    color: #061b34;
    font-size: 24px;
    font-weight: 850;
    line-height: 1.18;
}

#builderPanel .builder-wizard-hero p {
    margin: 0;
    color: #53667a;
    font-size: 14px;
    line-height: 1.6;
}

#builderPanel .builder-hero-chip-stack {
    display: grid;
    gap: 8px;
    flex: 0 0 auto;
}

#builderPanel .builder-hero-chip-stack span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(197, 223, 250, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #153a6a;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

#builderPanel .builder-stepper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 0;
    padding: 8px 2px 0;
}

#builderPanel .builder-stepper::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: rgba(128, 152, 176, 0.34);
}

#builderPanel .builder-stepper-item {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 7px;
    color: #7a8b9e;
    font-weight: 800;
}

#builderPanel .builder-stepper-item span {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(157, 179, 202, 0.66);
    border-radius: 999px;
    background: #ffffff;
    color: #7a8b9e;
    font-size: 11px;
    line-height: 1;
}

#builderPanel .builder-stepper-item small {
    display: block;
    max-width: 74px;
    color: inherit;
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
}

#builderPanel .builder-stepper-item.is-active,
#builderPanel .builder-stepper-item.is-complete {
    color: #1677ff;
}

#builderPanel .builder-stepper-item.is-active span,
#builderPanel .builder-stepper-item.is-complete span {
    border-color: #1677ff;
    background: #1677ff;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(22, 119, 255, 0.2);
}

#builderPanel .builder-stepper-item.is-complete span {
    font-size: 0;
}

#builderPanel .builder-stepper-item.is-complete span::after {
    content: "\2713";
    font-size: 12px;
    line-height: 1;
}

#builderPanel .builder-type-select-step {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(213, 230, 250, 0.95);
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 248, 232, 0.72), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 255, 0.92));
    box-shadow: 0 14px 34px rgba(31, 111, 172, 0.08);
}

#builderPanel .builder-type-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#builderPanel .builder-type-selector .builder-mode-button {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    min-height: 104px;
    padding: 16px;
    border: 1px solid rgba(213, 230, 250, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: #53667a;
    box-shadow: 0 10px 26px rgba(31, 111, 172, 0.06);
    text-align: left;
}

#builderPanel .builder-type-selector .builder-mode-button.is-active {
    border-color: rgba(22, 119, 255, 0.72);
    background: #ffffff;
    color: #061b34;
    box-shadow: 0 16px 34px rgba(22, 119, 255, 0.14);
}

#builderPanel .builder-mode-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(22, 119, 255, 0.26);
    border-radius: 14px;
    color: #1677ff;
    font-size: 16px;
    font-weight: 900;
}

#builderPanel .builder-mode-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

#builderPanel .builder-mode-copy strong {
    color: #061b34;
    font-size: 18px;
    line-height: 1.2;
}

#builderPanel .builder-mode-copy small {
    color: #697b8f;
    font-size: 13px;
    line-height: 1.45;
}

#builderPanel .builder-mode-check {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(139, 160, 181, 0.7);
    border-radius: 999px;
}

#builderPanel .builder-mode-button.is-active .builder-mode-check {
    border-color: #1677ff;
    background: radial-gradient(circle at center, #1677ff 0 38%, transparent 42%);
}

#builderPanel .builder-type-step-actions {
    display: grid;
}

#builderPanel .builder-wizard-shell[data-builder-step="1"] .builder-type-grid {
    display: none;
}

#builderPanel .builder-wizard-shell:not([data-builder-step="1"]) [data-builder-type-step] {
    display: none;
}

#builderPanel .builder-type-grid {
    gap: 0;
}

#builderPanel .builder-type-card {
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#builderPanel .builder-type-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
}

#builderPanel .builder-type-head h3 {
    margin: 0;
    font-size: 20px;
}

#builderPanel .builder-panel-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.08);
    color: #1677ff;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

#builderPanel .card-builder-form {
    gap: 0;
}

#builderPanel .builder-form-step {
    display: none;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(213, 230, 250, 0.95);
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 18%, rgba(255, 248, 232, 0.58), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 255, 0.92));
    box-shadow: 0 14px 34px rgba(31, 111, 172, 0.08);
}

#builderPanel .builder-wizard-shell[data-builder-step="2"] [data-builder-form-step="2"],
#builderPanel .builder-wizard-shell[data-builder-step="3"] [data-builder-form-step="3"],
#builderPanel .builder-wizard-shell[data-builder-step="4"] [data-builder-form-step="4"] {
    display: grid;
}

#builderPanel .builder-step-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

#builderPanel .builder-step-section-head div {
    display: grid;
    gap: 6px;
}

#builderPanel .builder-step-section-head span,
#builderPanel .builder-style-head span {
    color: #1677ff;
    font-size: 12px;
    font-weight: 850;
}

#builderPanel .builder-step-section-head h4 {
    margin: 0;
    color: #061b34;
    font-size: 19px;
    line-height: 1.25;
}

#builderPanel .builder-mini-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(22, 119, 255, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: #1677ff;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

#builderPanel .builder-control-title {
    color: #061b34;
    font-size: 15px;
    font-weight: 850;
}

#builderPanel .builder-doc-upload-card {
    display: grid;
    gap: 8px;
}

#builderPanel .builder-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#builderPanel .builder-media-upload-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    align-content: start;
    min-width: 0;
    text-align: center;
}

#builderPanel .builder-upload-preview {
    display: block;
    width: 86px;
    height: 86px;
    margin: 0 auto 2px;
    border: 1px solid rgba(144, 166, 188, 0.42);
    border-radius: 16px;
    background: #f7fbff;
    object-fit: cover;
    box-shadow: 0 10px 22px rgba(21, 58, 106, 0.08);
}

#builderPanel .builder-upload-preview-avatar,
#builderPanel .builder-upload-preview-logo {
    border-radius: 18px;
}

#builderPanel .builder-upload-preview-bg {
    width: 86px;
    height: 86px;
    border-radius: 18px;
}

#builderPanel .builder-upload-preview.has-user-image,
.card-preview-showcase-avatar.has-user-image,
#builderPanel .builder-preview-avatar.has-user-image {
    object-fit: cover;
}

#builderPanel .builder-media-upload-card .upload-file-input {
    padding: 8px;
    font-size: 11px;
}

#builderPanel .builder-media-upload-card .upload-file-input::file-selector-button {
    padding: 7px 10px;
    font-size: 11px;
}

#builderPanel .builder-style-panel {
    display: grid;
    gap: 12px;
}

#builderPanel .builder-style-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

#builderPanel .builder-style-head small {
    color: #6a7b8f;
    font-size: 12px;
    line-height: 1.4;
    text-align: right;
}

#builderPanel .builder-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

#builderPanel .builder-style-grid .style-option-visual {
    min-height: 96px;
    padding: 11px 10px;
    border-radius: 16px;
    border-color: rgba(213, 230, 250, 0.95);
    background: #ffffff;
    color: #061b34;
    overflow: hidden;
}

#builderPanel .builder-style-grid .style-option-visual::before {
    content: "";
    display: block;
    height: 34px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #edf2f7, #ffffff);
}

#builderPanel .builder-style-grid .style-option-visual.style-minimal::before {
    background: linear-gradient(135deg, #eef2f6, #ffffff);
}

#builderPanel .builder-style-grid .style-option-visual.style-business::before {
    background: linear-gradient(135deg, #172033, #c59a5c);
}

#builderPanel .builder-style-grid .style-option-visual.style-relaxed::before {
    background: linear-gradient(135deg, #fff3df, #ff8a5b);
}

#builderPanel .builder-style-grid .style-option-visual strong {
    margin-bottom: 4px;
    font-size: 13px;
}

#builderPanel .builder-style-grid .style-option-visual small {
    display: none;
}

#builderPanel .builder-style-grid .style-option-card input:checked + .style-option-visual {
    transform: none;
    border-color: rgba(22, 119, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12), 0 12px 24px rgba(22, 119, 255, 0.1);
}

#builderPanel .builder-opening-field textarea {
    min-height: 86px;
}

#builderPanel .builder-step-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 12px;
}

#builderPanel .builder-step-actions .primary-btn,
#builderPanel .builder-step-actions .secondary-btn {
    min-width: 0;
    min-height: 48px;
    border-radius: 999px;
    font-weight: 850;
}

#builderPanel .builder-preview-stage {
    display: grid;
    justify-items: center;
    padding: 8px 0 2px;
}

#builderPanel .builder-preview-mini-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 9px;
    width: min(100%, 238px);
    min-height: 254px;
    padding: 18px 16px;
    border: 1px solid rgba(213, 230, 250, 0.95);
    border-radius: 18px;
    background: #f7fbff;
    box-shadow: 0 18px 36px rgba(31, 111, 172, 0.12);
    overflow: hidden;
}

#builderPanel .builder-preview-mini-card > :not(.builder-preview-card-bg) {
    position: relative;
    z-index: 1;
}

#builderPanel .builder-preview-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#builderPanel .builder-preview-badge {
    justify-self: start;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #153a6a;
    font-size: 12px;
    font-weight: 850;
    line-height: 26px;
}

#builderPanel .builder-preview-avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 26px rgba(16, 72, 130, 0.14);
}

#builderPanel .builder-preview-mini-card strong {
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: #061b34;
    font-size: 18px;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
}

#builderPanel .builder-preview-mini-card small {
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
    color: #617386;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    word-break: break-word;
}

#builderPanel .builder-preview-lines {
    display: grid;
    gap: 7px;
    width: 100%;
    margin-top: 2px;
}

#builderPanel .builder-preview-lines span {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: rgba(138, 164, 190, 0.18);
}

#builderPanel .builder-preview-lines span:nth-child(2) {
    width: 82%;
}

#builderPanel .builder-preview-lines span:nth-child(3) {
    width: 58%;
}

#builderPanel .builder-preview-mini-company .builder-preview-avatar {
    border-radius: 18px;
}

@media (max-width: 430px) {
    #cardManagementPanel {
        gap: 14px;
    }

    #builderPanel .builder-wizard-hero {
        min-height: 116px;
        padding: 18px 16px;
    }

    #builderPanel .builder-wizard-hero h2 {
        font-size: 22px;
    }

    #builderPanel .builder-hero-chip-stack span {
        min-height: 25px;
        padding: 0 9px;
        font-size: 11px;
    }

    #builderPanel .builder-stepper-item small {
        max-width: 60px;
        font-size: 10px;
    }

    #builderPanel .builder-type-select-step,
    #builderPanel .builder-form-step {
        padding: 14px;
        border-radius: 16px;
    }

    #builderPanel .builder-type-selector .builder-mode-button {
        min-height: 92px;
        padding: 14px;
        border-radius: 16px;
    }

    #builderPanel .builder-mode-copy strong {
        font-size: 17px;
    }

    #builderPanel .builder-media-grid {
        gap: 10px;
    }

    #builderPanel .builder-style-grid {
        gap: 8px;
    }

    .card-manage-status-panel {
        grid-template-columns: 1fr;
    }

    .card-service-toggle-btn {
        width: 100%;
    }

    #builderPanel .profile-source-switch {
        border-radius: 12px;
    }

    #builderPanel .profile-source-option {
        min-height: 38px;
        padding: 0 10px;
        font-size: 12px;
    }

    #builderPanel .profile-voice-panel {
        padding: 12px;
    }

    #builderPanel .profile-voice-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    #builderPanel .profile-voice-timer {
        grid-column: 1 / -1;
        min-width: 0;
        text-align: left;
    }

    #builderPanel .profile-voice-text {
        min-height: 150px;
    }

    #cardsPanel > .section-head-split {
        align-items: center;
        margin-top: 8px;
    }

    #cardsPanel > .section-head-split h2 {
        font-size: 20px;
    }

    #cardsPanel .card-view-toggle-button {
        min-height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    #cardsPanel .card-item {
        gap: 12px;
        padding: 16px;
        border-radius: 18px;
    }

    #cardsPanel .card-item-head {
        grid-template-columns: 62px minmax(0, 1fr) auto;
        gap: 11px;
    }

    #cardsPanel .card-item-head img {
        width: 60px;
        height: 60px;
    }

    #cardsPanel .card-title-row h3 {
        font-size: 20px;
    }

    #cardsPanel .card-type-pill,
    #cardsPanel .card-status-badge {
        min-height: 24px;
        padding: 3px 8px;
        font-size: 11px;
    }

    #cardsPanel .card-item-tags {
        gap: 7px;
    }

    #cardsPanel .card-item-tags span {
        min-height: 28px;
        padding-inline: 6px;
        font-size: 11px;
    }

    #builderPanel > .section-head-split,
    #builderPanel .builder-type-card {
        padding: 16px;
    }

    #builderPanel > .section-head-split h2,
    #builderPanel .builder-type-head h3 {
        font-size: 22px;
    }

    #builderPanel .builder-mode-button {
        min-height: 42px;
        padding-inline: 8px;
        font-size: 13px;
    }
}

/* Work report dashboard and card subject separation */
:root {
    --sc-icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v5l3 2M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-check-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5M21 12a9 9 0 1 1-3.4-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --sc-icon-gear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM19.4 15a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06A1.7 1.7 0 0 0 15 19.4a1.7 1.7 0 0 0-1 .55V20a2 2 0 1 1-4 0v-.08a1.7 1.7 0 0 0-1-.55 1.7 1.7 0 0 0-1.87.34l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-.55-1H4a2 2 0 1 1 0-4h.08a1.7 1.7 0 0 0 .55-1 1.7 1.7 0 0 0-.34-1.87l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.7 1.7 0 0 0 9 4.6c.36-.15.7-.33 1-.55V4a2 2 0 1 1 4 0v.08c.3.22.64.4 1 .55a1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.7 1.7 0 0 0 19.4 9c.15.36.33.7.55 1H20a2 2 0 1 1 0 4h-.08c-.22.3-.4.64-.55 1z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#cardsPanel .card-item.hidden-panel,
#cardsPanel .empty-hint.hidden-panel {
    display: none;
}

#cardsPanel .card-view-toggle-button:disabled {
    color: #93a4b8;
    background: #f2f6fb;
}

#workReportsPanel {
    display: grid;
    gap: 14px;
    overflow: hidden;
}

#workReportsPanel .module-hero-workreports {
    grid-template-columns: 72px minmax(0, 1fr) 176px;
    gap: 18px;
    align-items: center;
    min-height: 132px;
    margin-bottom: 0;
    padding: 22px 24px;
    border-color: rgba(173, 211, 255, 0.72);
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 38%, rgba(22, 119, 255, 0.12), transparent 26%),
        linear-gradient(135deg, rgba(250, 253, 255, 0.98) 0%, rgba(230, 244, 255, 0.94) 100%);
    box-shadow: 0 14px 34px rgba(31, 111, 172, 0.08);
}

#workReportsPanel .module-hero-workreports::before {
    content: "";
    position: absolute;
    right: 26px;
    bottom: 16px;
    width: 150px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(149, 199, 255, 0.26), rgba(22, 119, 255, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

#workReportsPanel .module-hero-workreports::after {
    content: "";
    position: absolute;
    right: 44px;
    top: 18px;
    width: 110px;
    height: 88px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.05)) 20px 18px / 58px 8px no-repeat,
        linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.05)) 20px 36px / 74px 8px no-repeat,
        linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.05)) 20px 54px / 50px 8px no-repeat,
        linear-gradient(150deg, #ddecff 0%, #8bbcff 56%, #5b83f5 100%);
    box-shadow:
        0 18px 30px rgba(22, 119, 255, 0.16),
        inset 1px 1px 0 rgba(255, 255, 255, 0.78);
    transform: rotate(5deg);
}

#workReportsPanel .module-hero-workreports .module-hero-visual {
    grid-column: 1;
    grid-row: 1;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: linear-gradient(145deg, #59b4ff 0%, #1677ff 100%);
    box-shadow:
        0 14px 28px rgba(22, 119, 255, 0.2),
        0 0 0 5px rgba(226, 243, 255, 0.88);
}

#workReportsPanel .module-hero-workreports .module-hero-visual::before {
    width: 34px;
    height: 34px;
    -webkit-mask-image: var(--sc-icon-chart);
    mask-image: var(--sc-icon-chart);
}

#workReportsPanel .module-hero-workreports > div {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

#workReportsPanel .module-hero-workreports h2 {
    margin-bottom: 8px;
    color: #061b34;
    font-size: 26px;
    font-weight: 850;
    line-height: 1.18;
}

#workReportsPanel .module-hero-workreports p {
    max-width: 310px;
    color: #465a70;
    font-size: 14px;
    line-height: 1.65;
}

#workReportsPanel .module-hero-workreports > * {
    position: relative;
    z-index: 1;
}

#workReportsPanel .work-report-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 14px 0;
    border: 1px solid rgba(213, 230, 250, 0.86);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(31, 111, 172, 0.06);
}

#workReportsPanel .work-report-stat-row span {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon value"
        "icon note";
    align-items: center;
    justify-content: start;
    min-height: 78px;
    padding: 8px 18px;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    color: #061b34;
    text-align: left;
}

#workReportsPanel .work-report-stat-row span:last-child {
    border-right: 0;
}

#workReportsPanel .work-report-stat-row span::before {
    grid-area: icon;
    align-self: center;
    justify-self: start;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background-color: rgba(22, 119, 255, 0.1);
    background-image: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
    -webkit-mask: none;
    mask: none;
}

#workReportsPanel .work-report-stat-row span::after {
    content: "";
    grid-area: icon;
    align-self: center;
    justify-self: start;
    width: 20px;
    height: 20px;
    margin-left: 9px;
    background: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

#workReportsPanel .work-report-stat-row span:nth-child(1) {
    color: #1677ff;
}

#workReportsPanel .work-report-stat-row span:nth-child(1)::before {
    background-color: rgba(22, 119, 255, 0.1);
}

#workReportsPanel .work-report-stat-row span:nth-child(1)::after {
    -webkit-mask-image: var(--sc-icon-doc);
    mask-image: var(--sc-icon-doc);
}

#workReportsPanel .work-report-stat-row span:nth-child(2) {
    color: #12a465;
}

#workReportsPanel .work-report-stat-row span:nth-child(2)::before {
    background-color: rgba(18, 164, 101, 0.11);
}

#workReportsPanel .work-report-stat-row span:nth-child(2)::after {
    -webkit-mask-image: var(--sc-icon-clock);
    mask-image: var(--sc-icon-clock);
}

#workReportsPanel .work-report-stat-row span:nth-child(3) {
    color: #f59e0b;
}

#workReportsPanel .work-report-stat-row span:nth-child(3)::before {
    background-color: rgba(245, 158, 11, 0.13);
}

#workReportsPanel .work-report-stat-row span:nth-child(3)::after {
    -webkit-mask-image: var(--sc-icon-chat);
    mask-image: var(--sc-icon-chat);
}

#workReportsPanel .work-report-stat-row span:nth-child(4) {
    color: #7c5cff;
}

#workReportsPanel .work-report-stat-row span:nth-child(4)::before {
    background-color: rgba(124, 92, 255, 0.12);
}

#workReportsPanel .work-report-stat-row span:nth-child(4)::after {
    -webkit-mask-image: var(--sc-icon-check-circle);
    mask-image: var(--sc-icon-check-circle);
}

#workReportsPanel .work-report-stat-row small,
#workReportsPanel .work-report-stat-row strong,
#workReportsPanel .work-report-stat-row em {
    min-width: 0;
    color: inherit;
    line-height: 1.2;
}

#workReportsPanel .work-report-stat-row small {
    grid-area: label;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    opacity: 0.78;
}

#workReportsPanel .work-report-stat-row strong {
    grid-area: value;
    margin-top: 4px;
    color: #061b34;
    font-size: 30px;
    font-weight: 850;
}

#workReportsPanel .work-report-stat-row em {
    grid-area: note;
    margin-top: 5px;
    color: #6b7a90;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

#workReportsPanel .work-report-top-grid {
    display: grid;
    gap: 14px;
    margin: 0;
}

#workReportsPanel .employee-boss-entry-card,
#workReportsPanel .work-report-entry-card,
#workReportsPanel .boss-briefing-card {
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(213, 230, 250, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(31, 111, 172, 0.06);
}

#workReportsPanel .employee-boss-entry-card {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(22, 119, 255, 0.08), transparent 34%),
        rgba(255, 255, 255, 0.92);
}

#workReportsPanel .employee-boss-entry-card::after {
    content: ">";
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    color: #9aa7b8;
    font-size: 32px;
    line-height: 1;
}

#workReportsPanel .work-report-entry-card {
    background:
        radial-gradient(circle at 5% 18%, rgba(18, 164, 101, 0.08), transparent 26%),
        rgba(255, 255, 255, 0.92);
}

#workReportsPanel .work-report-entry-head,
#workReportsPanel .boss-briefing-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

#workReportsPanel .work-report-entry-head::before,
#workReportsPanel .boss-briefing-head::before {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    -webkit-mask: none;
    mask: none;
}

#workReportsPanel .work-report-entry-head::after,
#workReportsPanel .boss-briefing-head::after {
    content: "";
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    width: 25px;
    height: 25px;
    background: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

#workReportsPanel .employee-boss-entry-card .work-report-entry-head::before {
    background: linear-gradient(145deg, #59b4ff 0%, #1677ff 100%);
    box-shadow: 0 12px 24px rgba(22, 119, 255, 0.16);
}

#workReportsPanel .employee-boss-entry-card .work-report-entry-head::after {
    color: #ffffff;
    -webkit-mask-image: var(--sc-icon-user);
    mask-image: var(--sc-icon-user);
}

#workReportsPanel .work-report-entry-card .work-report-entry-head::before {
    background: rgba(18, 164, 101, 0.12);
}

#workReportsPanel .work-report-entry-card .work-report-entry-head::after {
    color: #12a465;
    -webkit-mask-image: var(--sc-icon-link);
    mask-image: var(--sc-icon-link);
}

#workReportsPanel .boss-briefing-head::before {
    background: rgba(245, 158, 11, 0.13);
}

#workReportsPanel .boss-briefing-head::after {
    color: #f59e0b;
    -webkit-mask-image: var(--sc-icon-chart);
    mask-image: var(--sc-icon-chart);
}

#workReportsPanel .work-report-entry-head > div,
#workReportsPanel .boss-briefing-head > div {
    grid-column: 2;
    min-width: 0;
}

#workReportsPanel .work-report-entry-head strong,
#workReportsPanel .boss-briefing-head strong {
    margin: 0 0 5px;
    color: #061b34;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.2;
}

#workReportsPanel .work-report-entry-head p,
#workReportsPanel .boss-briefing-head p {
    color: #5b6d80;
    font-size: 13px;
    line-height: 1.55;
}

#workReportsPanel .employee-boss-entry-card .primary-btn {
    grid-column: 1 / -1;
    min-height: 50px;
    border-radius: 14px;
    font-size: 16px;
}

#workReportsPanel .work-report-entry-link input {
    min-height: 38px;
    border-color: rgba(213, 230, 250, 0.95);
    border-radius: 9px;
    color: #1677ff;
    background: rgba(250, 253, 255, 0.92);
}

#workReportsPanel .work-report-entry-link .inline-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

#workReportsPanel .work-report-entry-link .compact-action-btn,
#workReportsPanel .boss-briefing-card .primary-btn {
    min-height: 44px;
    border-radius: 10px;
}

#workReportsPanel .work-report-entry-link .primary-btn {
    background: #10b867;
    background-image: none;
    box-shadow: 0 12px 24px rgba(16, 184, 103, 0.18);
}

#workReportsPanel .boss-briefing-count-badge {
    grid-column: 3;
    justify-self: end;
    border-radius: 999px;
}

#workReportsPanel .boss-briefing-actions {
    justify-content: flex-end;
    gap: 10px;
}

#workReportsPanel .boss-briefing-link-button {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f1f7ff;
    color: #1677ff;
    text-decoration: none;
}

#workReportsPanel .work-report-management-row {
    margin: 0;
}

#workReportsPanel .work-report-application-button {
    min-height: 42px;
    border-radius: 999px;
}

@media (max-width: 430px) {
    #workReportsPanel {
        gap: 12px;
    }

    #workReportsPanel .module-hero-workreports {
        grid-template-columns: 60px minmax(0, 1fr);
        min-height: 126px;
        padding: 18px;
    }

    #workReportsPanel .module-hero-workreports::before,
    #workReportsPanel .module-hero-workreports::after {
        opacity: 0.52;
        transform: scale(0.78) rotate(5deg);
        transform-origin: right center;
    }

    #workReportsPanel .module-hero-workreports .module-hero-visual {
        width: 54px;
        height: 54px;
    }

    #workReportsPanel .module-hero-workreports .module-hero-visual::before {
        width: 29px;
        height: 29px;
    }

    #workReportsPanel .module-hero-workreports h2 {
        font-size: 23px;
    }

    #workReportsPanel .module-hero-workreports p {
        max-width: 210px;
        font-size: 13px;
    }

    #workReportsPanel .work-report-stat-row {
        padding: 10px 0;
    }

    #workReportsPanel .work-report-stat-row span {
        grid-template-columns: 1fr;
        grid-template-areas:
            "icon"
            "label"
            "value"
            "note";
        justify-items: center;
        min-height: 104px;
        padding: 8px 6px;
        text-align: center;
    }

    #workReportsPanel .work-report-stat-row span::before,
    #workReportsPanel .work-report-stat-row span::after {
        justify-self: center;
        margin-left: 0;
    }

    #workReportsPanel .work-report-stat-row small {
        margin-top: 7px;
        font-size: 12px;
    }

    #workReportsPanel .work-report-stat-row strong {
        font-size: 24px;
    }

    #workReportsPanel .work-report-stat-row em {
        display: none;
    }

    #workReportsPanel .work-report-entry-head,
    #workReportsPanel .boss-briefing-head {
        grid-template-columns: 50px minmax(0, 1fr) auto;
        gap: 10px;
    }

    #workReportsPanel .employee-boss-entry-card,
    #workReportsPanel .work-report-entry-card,
    #workReportsPanel .boss-briefing-card {
        padding: 16px;
    }

    #workReportsPanel .work-report-entry-link .inline-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
    }
}

/* Work report correction pass */
#workReportsPanel.dashboard-hidden-panel {
    display: none;
}

#workReportsPanel .work-report-stat-row {
    padding: 12px 0;
    border-radius: 16px;
}

#workReportsPanel .work-report-stat-row span {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "value note";
    align-content: center;
    justify-items: start;
    min-height: 96px;
    padding: 12px 18px;
    text-align: left;
}

#workReportsPanel .work-report-stat-row span::before {
    width: 30px;
    height: 30px;
}

#workReportsPanel .work-report-stat-row span::after {
    width: 17px;
    height: 17px;
    margin-left: 6px;
}

#workReportsPanel .work-report-stat-row small {
    margin-top: 0;
    color: #53667a;
    font-size: 13px;
    opacity: 1;
}

#workReportsPanel .work-report-stat-row strong {
    margin-top: 8px;
    font-size: 30px;
    line-height: 1;
}

#workReportsPanel .work-report-stat-row em {
    align-self: end;
    margin: 0 0 3px 6px;
    font-size: 11px;
    white-space: nowrap;
}

#workReportsPanel .employee-boss-entry-card .work-report-entry-head,
#workReportsPanel .work-report-entry-card .work-report-entry-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: 100%;
    text-align: left;
}

#workReportsPanel .employee-boss-entry-card .work-report-entry-head > div,
#workReportsPanel .work-report-entry-card .work-report-entry-head > div {
    grid-column: 2;
}

#workReportsPanel .employee-boss-entry-card .work-report-entry-head strong,
#workReportsPanel .work-report-entry-card .work-report-entry-head strong {
    font-size: 19px;
}

#workReportsPanel .employee-boss-entry-card .work-report-entry-head p,
#workReportsPanel .work-report-entry-card .work-report-entry-head p {
    margin: 0;
    font-size: 13px;
}

#workReportsPanel .boss-briefing-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 253, 0.96) 100%),
        radial-gradient(circle at top right, rgba(213, 164, 86, 0.13), transparent 34%);
}

#workReportsPanel .boss-briefing-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

#workReportsPanel .boss-briefing-head::before {
    content: "";
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 0;
    color: #f59e0b;
    background: currentColor;
    box-shadow: none;
    -webkit-mask: var(--sc-icon-chart) center / 58% no-repeat;
    mask: var(--sc-icon-chart) center / 58% no-repeat;
}

#workReportsPanel .boss-briefing-head::after {
    content: none;
}

#workReportsPanel .boss-briefing-head > div {
    flex: 1 1 auto;
    grid-column: auto;
}

#workReportsPanel .boss-briefing-head strong {
    font-size: 18px;
}

#workReportsPanel .boss-briefing-head p {
    font-size: 13px;
    line-height: 1.6;
}

#workReportsPanel .boss-briefing-count-badge {
    position: static;
    flex: 0 0 auto;
    grid-column: auto;
    justify-self: auto;
}

#workReportsPanel .boss-briefing-card .primary-btn {
    min-height: 48px;
    border-radius: 14px;
}

#workReportsPanel .boss-briefing-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

#workReportsPanel .boss-briefing-link-button {
    min-height: 28px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 430px) {
    #workReportsPanel .work-report-stat-row {
        padding: 8px 0;
    }

    #workReportsPanel .work-report-stat-row span {
        grid-template-columns: 28px minmax(0, 1fr);
        grid-template-areas:
            "icon label"
            "value note";
        justify-items: start;
        min-height: 82px;
        padding: 9px 7px;
        text-align: left;
    }

    #workReportsPanel .work-report-stat-row span::before {
        width: 26px;
        height: 26px;
    }

    #workReportsPanel .work-report-stat-row span::after {
        width: 15px;
        height: 15px;
        margin-left: 5px;
    }

    #workReportsPanel .work-report-stat-row small {
        margin-top: 0;
        font-size: 11px;
        white-space: nowrap;
    }

    #workReportsPanel .work-report-stat-row strong {
        margin-top: 7px;
        font-size: 24px;
    }

    #workReportsPanel .work-report-stat-row em {
        display: block;
        margin: 0 0 2px 4px;
        font-size: 9px;
    }

    #workReportsPanel .employee-boss-entry-card .work-report-entry-head,
    #workReportsPanel .work-report-entry-card .work-report-entry-head {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        gap: 10px;
    }

    #workReportsPanel .boss-briefing-head {
        align-items: flex-start;
    }
}

/* Work report entry cards: lock icon to the left of copy */
#workReportsPanel .employee-boss-entry-card,
#workReportsPanel .work-report-entry-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 20px;
}

#workReportsPanel .employee-boss-entry-card .work-report-entry-head,
#workReportsPanel .work-report-entry-card .work-report-entry-head {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas: "icon copy";
    gap: 14px;
    align-items: center;
    justify-items: start;
    width: 100%;
    min-height: 58px;
    padding-right: 34px;
    text-align: left;
}

#workReportsPanel .work-report-entry-card .work-report-entry-head {
    padding-right: 0;
}

#workReportsPanel .employee-boss-entry-card .work-report-entry-head::before,
#workReportsPanel .work-report-entry-card .work-report-entry-head::before {
    content: "";
    grid-area: icon;
    align-self: center;
    justify-self: start;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.12);
    box-shadow: 0 12px 24px rgba(22, 119, 255, 0.14);
    -webkit-mask: none;
    mask: none;
}

#workReportsPanel .employee-boss-entry-card .work-report-entry-head::after,
#workReportsPanel .work-report-entry-card .work-report-entry-head::after {
    content: "";
    grid-area: icon;
    align-self: center;
    justify-self: center;
    width: 29px;
    height: 29px;
    background: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

#workReportsPanel .employee-boss-entry-card .work-report-entry-head::before {
    background: linear-gradient(145deg, #59b4ff 0%, #1677ff 100%);
}

#workReportsPanel .employee-boss-entry-card .work-report-entry-head::after {
    color: #ffffff;
    -webkit-mask-image: var(--sc-icon-user);
    mask-image: var(--sc-icon-user);
}

#workReportsPanel .work-report-entry-card .work-report-entry-head::before {
    background: rgba(18, 164, 101, 0.13);
    box-shadow: 0 12px 24px rgba(18, 164, 101, 0.1);
}

#workReportsPanel .work-report-entry-card .work-report-entry-head::after {
    color: #12a465;
    -webkit-mask-image: var(--sc-icon-link);
    mask-image: var(--sc-icon-link);
}

#workReportsPanel .employee-boss-entry-card .work-report-entry-head > div,
#workReportsPanel .work-report-entry-card .work-report-entry-head > div {
    grid-area: copy;
    min-width: 0;
}

#workReportsPanel .employee-boss-entry-card .work-report-entry-head strong,
#workReportsPanel .work-report-entry-card .work-report-entry-head strong {
    margin: 0 0 5px;
    color: #061b34;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.2;
}

#workReportsPanel .employee-boss-entry-card .work-report-entry-head p,
#workReportsPanel .work-report-entry-card .work-report-entry-head p {
    margin: 0;
    color: #5b6d80;
    font-size: 13px;
    line-height: 1.5;
}

#workReportsPanel .employee-boss-entry-card::after {
    content: ">";
    position: absolute;
    top: 36px;
    right: 22px;
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    justify-self: auto;
    color: #9aa7b8;
    font-size: 32px;
    line-height: 1;
}

#workReportsPanel .employee-boss-entry-card .primary-btn,
#workReportsPanel .work-report-entry-card > form,
#workReportsPanel .work-report-entry-card .work-report-entry-link {
    grid-column: 1;
}

@media (max-width: 430px) {
    #workReportsPanel .employee-boss-entry-card,
    #workReportsPanel .work-report-entry-card {
        padding: 16px;
    }

    #workReportsPanel .employee-boss-entry-card .work-report-entry-head,
    #workReportsPanel .work-report-entry-card .work-report-entry-head {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 11px;
        min-height: 54px;
        padding-right: 28px;
    }

    #workReportsPanel .work-report-entry-card .work-report-entry-head {
        padding-right: 0;
    }

    #workReportsPanel .employee-boss-entry-card .work-report-entry-head::before,
    #workReportsPanel .work-report-entry-card .work-report-entry-head::before {
        width: 50px;
        height: 50px;
    }

    #workReportsPanel .employee-boss-entry-card .work-report-entry-head::after,
    #workReportsPanel .work-report-entry-card .work-report-entry-head::after {
        width: 27px;
        height: 27px;
    }

    #workReportsPanel .employee-boss-entry-card::after {
        top: 34px;
        right: 18px;
    }
}

/* Work report thread list as compact message rows */
#workReportsPanel .work-report-settings-button {
    position: relative;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    gap: 0;
    border-radius: 999px;
    color: #1677ff;
    background: #f5faff;
    border-color: rgba(173, 211, 255, 0.9);
    box-shadow: 0 8px 20px rgba(22, 119, 255, 0.08);
}

#workReportsPanel .work-report-settings-button:hover {
    background: #edf6ff;
    border-color: rgba(22, 119, 255, 0.25);
}

#workReportsPanel .work-report-settings-button .work-report-settings-icon {
    width: 22px;
    height: 22px;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: currentColor;
    -webkit-mask: var(--sc-icon-gear) center / contain no-repeat;
    mask: var(--sc-icon-gear) center / contain no-repeat;
}

#workReportsPanel .work-report-settings-button .work-report-application-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0 6px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #ff4d4f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
}

#workReportsPanel .work-report-employee-panel {
    overflow: hidden;
    border: 1px solid rgba(173, 211, 255, 0.86);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 111, 172, 0.06);
}

#workReportsPanel .work-report-employee-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 10px 14px 10px 18px;
    border-bottom: 1px solid rgba(213, 230, 250, 0.78);
    background: #fbfdff;
}

#workReportsPanel .work-report-employee-panel-head h3 {
    margin: 0;
    color: #061b34;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.2;
}

#workReportsPanel .work-report-list {
    gap: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#workReportsPanel .work-report-list > .form-error,
#workReportsPanel .work-report-list > .empty-hint {
    margin: 0;
    padding: 16px;
}

#workReportsPanel .work-report-thread-card {
    border: 0;
    border-bottom: 1px solid rgba(213, 230, 250, 0.72);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

#workReportsPanel .work-report-thread-card:last-of-type {
    border-bottom: 0;
}

#workReportsPanel .work-report-thread-card:hover {
    border-color: rgba(213, 230, 250, 0.72);
    background: #f8fbff;
    box-shadow: none;
}

#workReportsPanel .work-report-thread-summary {
    grid-template-columns: minmax(0, 1fr) 58px;
    min-height: 76px;
    gap: 10px;
    padding: 13px 16px;
    align-items: center;
}

#workReportsPanel .work-report-thread-summary::after {
    content: none;
}

#workReportsPanel .work-report-thread-main {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 3px 12px;
    min-width: 0;
}

#workReportsPanel .work-report-thread-person {
    display: contents;
}

#workReportsPanel .work-report-thread-person .record-visitor-avatar {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

#workReportsPanel .work-report-thread-person .record-visitor-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(145deg, #59b4ff 0%, #1677ff 100%);
    border: 0;
    font-size: 15px;
    font-weight: 800;
}

#workReportsPanel .work-report-thread-person .record-visitor-copy {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    min-width: 0;
}

#workReportsPanel .work-report-thread-person .record-visitor-copy strong {
    display: block;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#workReportsPanel .work-report-thread-snippet {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0;
    overflow: hidden;
    color: #6f86a3;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#workReportsPanel .work-report-thread-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    align-self: stretch;
    padding-top: 3px;
}

#workReportsPanel .work-report-thread-time {
    max-width: 58px;
    overflow: hidden;
    color: #8b9bb0;
    font-size: 11px;
    line-height: 1.2;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#workReportsPanel .work-report-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #1677ff;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 12px rgba(22, 119, 255, 0.22);
}

#workReportsPanel .work-report-lock-status {
    max-width: 58px;
    overflow: hidden;
    color: #9aa7b8;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#workReportsPanel .work-report-thread-delete-form {
    right: 16px;
    bottom: 8px;
}

#workReportsPanel .work-report-thread-delete-button {
    min-height: 22px;
    padding: 0 8px;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.16s ease, background-color 0.16s ease;
}

#workReportsPanel .work-report-thread-card:hover .work-report-thread-delete-button,
#workReportsPanel .work-report-thread-delete-button:focus-visible {
    opacity: 1;
}

@media (hover: none) {
    #workReportsPanel .work-report-thread-delete-button {
        opacity: 0.72;
    }
}

@media (max-width: 430px) {
    #workReportsPanel .work-report-settings-button {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
    }

    #workReportsPanel .work-report-employee-panel-head {
        min-height: 58px;
        padding: 8px 10px 8px 14px;
    }

    #workReportsPanel .work-report-employee-panel-head h3 {
        font-size: 17px;
    }

    #workReportsPanel .work-report-thread-summary {
        grid-template-columns: minmax(0, 1fr) 52px;
        min-height: 74px;
        gap: 8px;
        padding: 12px 12px;
    }

    #workReportsPanel .work-report-thread-main {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 3px 10px;
    }

    #workReportsPanel .work-report-thread-person .record-visitor-avatar {
        width: 42px;
        height: 42px;
    }

    #workReportsPanel .work-report-thread-person .record-visitor-copy strong {
        font-size: 15px;
    }

    #workReportsPanel .work-report-thread-snippet {
        font-size: 12px;
    }

    #workReportsPanel .work-report-thread-time,
    #workReportsPanel .work-report-lock-status {
        max-width: 52px;
        font-size: 10px;
    }
}

.work-report-applications-modal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 860px);
    overflow: hidden;
}

.work-report-applications-modal-card > .account-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    margin: 0;
}

.work-report-applications-modal-card .account-modal-eyebrow,
.work-report-applications-modal-card .work-report-modal-head {
    flex: 0 0 auto;
    padding-right: 52px;
}

.work-report-applications-modal-card .work-report-modal-head .record-status {
    max-width: 100%;
    white-space: nowrap;
}

.employee-management-section {
    min-height: 0;
    display: grid;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(213, 230, 250, 0.72);
}

.employee-management-section + .employee-management-section {
    margin-top: 18px;
}

.employee-management-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.employee-management-section-head strong {
    color: #061b34;
    font-size: 16px;
    font-weight: 850;
}

.employee-management-section-head span {
    color: #7b8da4;
    font-size: 12px;
    font-weight: 700;
}

.work-report-applications-modal-card .employee-application-modal-list {
    max-height: 34vh;
    overflow-y: auto;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
}

.work-report-applications-modal-card .employee-application-modal-item {
    border-color: rgba(213, 230, 250, 0.88);
    border-radius: 16px;
    background: #ffffff;
}

.work-report-applications-modal-card .employee-current-modal-item {
    background:
        radial-gradient(circle at 100% 0%, rgba(22, 119, 255, 0.05), transparent 32%),
        #ffffff;
}

.work-report-applications-modal-card .employee-new-application-item {
    border-color: rgba(245, 158, 11, 0.2);
    background:
        radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.06), transparent 32%),
        #ffffff;
}

.work-report-applications-modal-card .record-head {
    align-items: flex-start;
}

.work-report-applications-modal-card .record-visitor-avatar {
    border-radius: 13px;
}

.work-report-applications-modal-card .record-visitor-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(145deg, #59b4ff 0%, #1677ff 100%);
    border: 0;
    font-size: 15px;
    font-weight: 800;
}

.work-report-applications-modal-card .record-visitor-copy strong {
    color: #061b34;
    font-size: 16px;
    line-height: 1.25;
}

.work-report-applications-modal-card .record-visitor-copy small {
    line-height: 1.45;
}

.work-report-applications-modal-card .work-report-admin-block {
    border-radius: 14px;
    background: #fbfdff;
}

.work-report-applications-modal-card .empty-hint {
    margin: 0;
    padding: 14px;
    border: 1px dashed rgba(173, 211, 255, 0.86);
    border-radius: 14px;
    background: #fbfdff;
}

@media (max-width: 430px) {
    .work-report-applications-modal-card > .account-modal-close {
        top: 16px;
        right: 16px;
    }

    .work-report-applications-modal-card .work-report-modal-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
        padding-right: 54px;
    }

    .work-report-applications-modal-card .employee-application-modal-list {
        max-height: 30vh;
    }

    .work-report-applications-modal-card .record-head {
        gap: 10px;
    }

    .work-report-applications-modal-card .record-status {
        min-height: 28px;
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Thought journal */
.home-app-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-app-card-purple {
    background: linear-gradient(145deg, #dfd5ff, #f7f3ff);
}

.home-app-card:nth-child(4) .home-app-icon::before {
    -webkit-mask-image: var(--sc-icon-thought-note);
    mask-image: var(--sc-icon-thought-note);
}

.home-app-card-purple .home-app-icon {
    color: #ffffff;
    background: linear-gradient(145deg, #9a7bff 0%, #7255dd 100%);
}

.home-bar-chart-purple .home-bar-item i {
    background: linear-gradient(180deg, #b59cff, #7255dd);
    box-shadow: 0 8px 18px rgba(114, 85, 221, 0.16);
}

#thoughtsPanel {
    display: grid;
    gap: 14px;
    overflow: hidden;
}

#thoughtsPanel.dashboard-hidden-panel {
    display: none;
}

#thoughtsPanel .module-hero-thoughts {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 146px;
    margin-bottom: 0;
    gap: 18px;
    align-items: center;
    border-color: rgba(218, 207, 255, 0.8);
    background:
        radial-gradient(circle at 86% 42%, rgba(114, 85, 221, 0.18), transparent 27%),
        linear-gradient(145deg, rgba(252, 250, 255, 0.98), rgba(238, 232, 255, 0.94));
}

#thoughtsPanel .module-hero-thoughts > div {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

#thoughtsPanel .module-hero-thoughts .module-hero-visual {
    grid-column: 1;
    grid-row: 1;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: linear-gradient(145deg, #a890ff 0%, #7255dd 100%);
    box-shadow:
        0 14px 28px rgba(114, 85, 221, 0.18),
        0 0 0 5px rgba(241, 236, 255, 0.92);
}

#thoughtsPanel .module-hero-thoughts .module-hero-visual::before {
    width: 32px;
    height: 32px;
    -webkit-mask-image: var(--sc-icon-chat);
    mask-image: var(--sc-icon-chat);
}

#thoughtsPanel .thought-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 12px 0;
    border: 1px solid rgba(218, 207, 255, 0.72);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(61, 44, 134, 0.06);
}

#thoughtsPanel .thought-stat-row span {
    display: grid;
    gap: 4px;
    min-width: 0;
    min-height: 84px;
    padding: 10px 14px;
    border-right: 1px solid rgba(15, 23, 42, 0.07);
    text-align: left;
}

#thoughtsPanel .thought-stat-row span:last-child {
    border-right: 0;
}

#thoughtsPanel .thought-stat-row small {
    color: #6a5c92;
    font-size: 12px;
    font-weight: 800;
}

#thoughtsPanel .thought-stat-row strong {
    color: #17132a;
    font-size: 28px;
    line-height: 1;
}

#thoughtsPanel .thought-stat-row em {
    color: #7c718f;
    font-size: 11px;
    font-style: normal;
    white-space: nowrap;
}

#thoughtsPanel .thought-top-grid {
    display: grid;
    gap: 14px;
}

#thoughtsPanel .thought-capture-card,
#thoughtsPanel .thought-summary-card,
#thoughtsPanel .thought-entry-card {
    border: 1px solid rgba(218, 207, 255, 0.72);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 248, 255, 0.94));
    box-shadow: 0 12px 28px rgba(61, 44, 134, 0.06);
}

#thoughtsPanel .thought-capture-card {
    background:
        radial-gradient(circle at 6% 12%, rgba(114, 85, 221, 0.08), transparent 28%),
        rgba(255, 255, 255, 0.94);
}

#thoughtsPanel .thought-summary-card {
    display: grid;
    gap: 13px;
    background:
        radial-gradient(circle at 95% 0%, rgba(18, 164, 101, 0.08), transparent 30%),
        rgba(255, 255, 255, 0.94);
}

#thoughtsPanel .thought-card-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

#thoughtsPanel .thought-card-head::before {
    content: "";
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: rgba(114, 85, 221, 0.12);
}

#thoughtsPanel .thought-card-head::after {
    content: "";
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    width: 25px;
    height: 25px;
    background: #7255dd;
    -webkit-mask: var(--sc-icon-edit) center / contain no-repeat;
    mask: var(--sc-icon-edit) center / contain no-repeat;
}

#thoughtsPanel .thought-summary-card .thought-card-head::before {
    background: rgba(18, 164, 101, 0.12);
}

#thoughtsPanel .thought-summary-card .thought-card-head::after {
    background: #12a465;
    -webkit-mask-image: var(--sc-icon-chart);
    mask-image: var(--sc-icon-chart);
}

#thoughtsPanel .thought-summary-actions {
    margin-top: -2px;
}

#thoughtsPanel .thought-card-head > div {
    grid-column: 2;
    min-width: 0;
}

#thoughtsPanel .thought-card-head strong {
    display: block;
    margin-bottom: 4px;
    color: #17132a;
    font-size: 19px;
    font-weight: 850;
}

#thoughtsPanel .thought-card-head p {
    margin: 0;
    color: #665c78;
    font-size: 13px;
    line-height: 1.55;
}

#thoughtsPanel textarea {
    resize: vertical;
}

#thoughtsPanel .thought-voice-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

#thoughtsPanel .thought-voice-toolbar span {
    color: #7255dd;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

#thoughtsPanel .thought-voice-status {
    display: block;
    color: #7c718f;
    font-size: 12px;
    line-height: 1.45;
}

#thoughtsPanel .thought-summary-result,
#thoughtsPanel .thought-summary-history details {
    border: 1px solid rgba(218, 207, 255, 0.72);
    border-radius: 14px;
    background: rgba(250, 248, 255, 0.78);
}

#thoughtsPanel .thought-summary-result summary,
#thoughtsPanel .thought-summary-history summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    color: #17132a;
    cursor: pointer;
}

#thoughtsPanel .thought-summary-body,
#thoughtsPanel .thought-summary-history p {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}

#thoughtsPanel .thought-summary-body p,
#thoughtsPanel .thought-summary-history p,
#thoughtsPanel .thought-entry-card p {
    margin: 0;
    color: #2c263a;
    line-height: 1.75;
    white-space: pre-wrap;
}

#thoughtsPanel .thought-summary-history {
    display: grid;
    gap: 10px;
}

#thoughtsPanel .thought-entry-list {
    display: grid;
    gap: 12px;
}

#thoughtsPanel .thought-entry-card {
    display: grid;
    gap: 12px;
    padding: 16px;
}

#thoughtsPanel .thought-entry-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #665c78;
}

#thoughtsPanel .thought-entry-meta strong {
    color: #17132a;
}

#thoughtsPanel .thought-delete-form {
    justify-self: end;
}

/* Shared large record panels used by module management lists. */
.management-record-panel {
    overflow: hidden;
    border: 1px solid rgba(173, 211, 255, 0.86);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 111, 172, 0.06);
}

.management-record-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 10px 14px 10px 18px;
    border-bottom: 1px solid rgba(213, 230, 250, 0.78);
    background: #fbfdff;
}

.management-record-panel-head h3 {
    margin: 0;
    color: #061b34;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.2;
}

.management-record-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(173, 211, 255, 0.86);
    border-radius: 999px;
    background: #f5faff;
    color: #1677ff;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.management-record-list {
    gap: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.management-record-list > .form-error,
.management-record-list > .empty-hint {
    margin: 0;
    padding: 16px;
}

.management-record-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
    border: 0;
    border-bottom: 1px solid rgba(213, 230, 250, 0.72);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.management-record-row:last-of-type {
    border-bottom: 0;
}

.management-record-row:hover {
    border-color: rgba(213, 230, 250, 0.72);
    background: #f8fbff;
    box-shadow: none;
}

.management-record-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: max-content;
}

.management-record-actions form {
    margin: 0;
}

.management-record-actions .compact-action-btn {
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.management-record-pagination {
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid rgba(213, 230, 250, 0.72);
    background: #fbfdff;
}

#appointmentsPanel .appointment-record-panel,
#thoughtsPanel .thought-record-panel {
    margin-top: 18px;
}

#thoughtsPanel .thought-record-timeline {
    display: grid;
    gap: 10px;
    padding: 12px 16px 14px;
    border-bottom: 1px solid rgba(213, 230, 250, 0.72);
    background:
        linear-gradient(180deg, rgba(252, 250, 255, 0.92), rgba(248, 252, 255, 0.96));
}

#thoughtsPanel .thought-record-timeline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #665c78;
    font-size: 12px;
    font-weight: 800;
}

#thoughtsPanel .thought-record-timeline-head small {
    min-width: max-content;
    color: #0f8a5a;
    font-size: 12px;
}

#thoughtsPanel .thought-record-timeline-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    min-height: 58px;
}

#thoughtsPanel .thought-record-timeline-track::before {
    content: "";
    position: absolute;
    top: 24px;
    right: 6.8%;
    left: 6.8%;
    height: 1px;
    background: linear-gradient(90deg, rgba(218, 207, 255, 0.86), rgba(18, 164, 101, 0.28));
}

#thoughtsPanel .thought-record-day {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 16px 12px 20px;
    gap: 4px;
    justify-items: center;
    min-width: 0;
    text-align: center;
}

#thoughtsPanel .thought-record-day-date {
    color: #6a5c92;
    font-size: 11px;
    font-weight: 750;
    line-height: 16px;
    white-space: nowrap;
}

#thoughtsPanel .thought-record-day-dot {
    align-self: center;
    width: 10px;
    height: 10px;
    border: 2px solid #d9d2ee;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(252, 250, 255, 0.94);
}

#thoughtsPanel .thought-record-day-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    max-width: 42px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(114, 85, 221, 0.07);
    color: #665c78;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

#thoughtsPanel .thought-record-day.is-active .thought-record-day-dot {
    border-color: #7255dd;
    background: #7255dd;
}

#thoughtsPanel .thought-record-day.is-active .thought-record-day-count {
    background: rgba(114, 85, 221, 0.12);
    color: #3d2c86;
}

#thoughtsPanel .thought-record-day:last-child .thought-record-day-date,
#thoughtsPanel .thought-record-day:last-child .thought-record-day-count {
    color: #0f8a5a;
}

#thoughtsPanel .thought-record-day:last-child .thought-record-day-dot {
    border-color: #12a465;
    background: #12a465;
}

#thoughtsPanel .thought-record-day:last-child .thought-record-day-count {
    background: rgba(18, 164, 101, 0.11);
}

#appointmentsPanel .appointment-record-panel .appointment-record-card,
#thoughtsPanel .thought-record-panel .thought-entry-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
    border: 0;
    border-bottom: 1px solid rgba(213, 230, 250, 0.72);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

#appointmentsPanel .appointment-record-panel .appointment-record-card:last-of-type,
#thoughtsPanel .thought-record-panel .thought-entry-card:last-of-type {
    border-bottom: 0;
}

#appointmentsPanel .appointment-record-panel .appointment-record-card:hover,
#thoughtsPanel .thought-record-panel .thought-entry-card:hover {
    border-color: rgba(213, 230, 250, 0.72);
    background: #f8fbff;
    box-shadow: none;
}

#appointmentsPanel .appointment-record-panel {
    margin-top: 0;
}

#appointmentsPanel .appointment-record-panel .appointment-record-card::before {
    content: none;
}

#appointmentsPanel .appointment-record-panel .record-head {
    justify-content: flex-start;
    margin-left: 0;
}

#appointmentsPanel .appointment-record-panel .appointment-record-list,
#thoughtsPanel .thought-record-panel .thought-entry-list {
    gap: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#appointmentsPanel .appointment-record-main,
#thoughtsPanel .thought-entry-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

#appointmentsPanel .appointment-record-actions form,
#thoughtsPanel .thought-entry-actions form {
    justify-self: auto;
    margin: 0;
}

#appointmentsPanel .appointment-record-panel .record-visitor-copy {
    min-width: 0;
}

#appointmentsPanel .appointment-record-panel .record-visitor-copy small {
    display: block;
    margin-top: 3px;
}

#appointmentsPanel .appointment-record-panel .record-visitor-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#appointmentsPanel .appointment-record-panel .appointment-record-meta {
    align-items: center;
    gap: 7px;
}

#appointmentsPanel .appointment-record-panel .appointment-record-meta > span,
#appointmentsPanel .appointment-record-panel .appointment-record-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
}

#appointmentsPanel .appointment-record-panel .appointment-record-status {
    min-width: 0;
    border: 1px solid rgba(213, 230, 250, 0.95);
}

#appointmentsPanel .appointment-record-panel .appointment-record-note {
    max-height: 92px;
    overflow: auto;
}

#thoughtsPanel .thought-record-panel .thought-entry-meta {
    align-items: center;
}

#thoughtsPanel .thought-record-panel .thought-entry-card p {
    max-height: 150px;
    overflow: auto;
}

@media (max-width: 520px) {
    #thoughtsPanel .thought-record-timeline {
        padding: 10px 10px 12px;
    }

    #thoughtsPanel .thought-record-timeline-track {
        min-height: 54px;
    }

    #thoughtsPanel .thought-record-timeline-track::before {
        right: 7.2%;
        left: 7.2%;
    }

    #thoughtsPanel .thought-record-day {
        grid-template-rows: 15px 10px 19px;
        gap: 4px;
    }

    #thoughtsPanel .thought-record-day-date {
        font-size: 10px;
        line-height: 15px;
    }

    #thoughtsPanel .thought-record-day-dot {
        width: 9px;
        height: 9px;
        box-shadow: 0 0 0 3px rgba(252, 250, 255, 0.94);
    }

    #thoughtsPanel .thought-record-day-count {
        min-width: 20px;
        max-width: 34px;
        height: 19px;
        padding: 0 4px;
        font-size: 9.5px;
    }

    .management-record-panel-head {
        min-height: 58px;
        padding: 8px 10px 8px 14px;
    }

    .management-record-panel-head h3 {
        font-size: 17px;
    }

    .management-record-row,
    #appointmentsPanel .appointment-record-panel .appointment-record-card,
    #thoughtsPanel .thought-record-panel .thought-entry-card {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 12px;
    }

    .management-record-actions {
        justify-content: flex-end;
        min-width: 0;
    }

    #appointmentsPanel .appointment-record-panel .record-head {
        gap: 8px;
    }

    #appointmentsPanel .appointment-record-main {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    #appointmentsPanel .appointment-record-panel .record-head {
        grid-column: auto;
        grid-row: auto;
        min-width: 0;
    }

    #appointmentsPanel .appointment-record-panel .record-visitor {
        min-width: 0;
    }

    #appointmentsPanel .appointment-record-panel .record-visitor-copy strong,
    #appointmentsPanel .appointment-record-panel .record-visitor-copy small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #appointmentsPanel .appointment-record-panel .appointment-record-meta {
        grid-column: auto;
        grid-row: auto;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 5px;
        max-width: 100%;
        margin-top: 2px;
        overflow: hidden;
    }

    #appointmentsPanel .appointment-record-panel .appointment-record-meta > span,
    #appointmentsPanel .appointment-record-panel .appointment-record-status {
        max-width: 100%;
        min-width: 0;
        height: 24px;
        min-height: 24px;
        padding: 0 7px;
        overflow: hidden;
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #appointmentsPanel .appointment-record-panel .appointment-record-meta > span:first-child {
        flex: 1 1 auto;
    }

    #appointmentsPanel .appointment-record-panel .appointment-record-meta > span:nth-child(2) {
        flex: 0 1 auto;
    }

    #appointmentsPanel .appointment-record-panel .appointment-record-status {
        flex: 0 0 auto;
    }

    #appointmentsPanel .appointment-record-panel .appointment-record-note {
        grid-column: auto;
        padding: 8px 10px;
    }
}

@media (min-width: 760px) {
    .home-app-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-bottom-nav-inner {
        width: min(100%, 960px);
    }
}

@media (max-width: 430px) {
    .home-app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #thoughtsPanel .module-hero-thoughts {
        grid-template-columns: 58px minmax(0, 1fr);
        min-height: 130px;
    }

    #thoughtsPanel .module-hero-thoughts .module-hero-visual {
        width: 54px;
        height: 54px;
    }

    #thoughtsPanel .module-hero-thoughts .module-hero-visual::before {
        width: 28px;
        height: 28px;
    }

    #thoughtsPanel .thought-stat-row span {
        min-height: 74px;
        padding: 9px 7px;
    }

    #thoughtsPanel .thought-stat-row strong {
        font-size: 23px;
    }

    #thoughtsPanel .thought-card-head {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 10px;
    }

    #thoughtsPanel .thought-card-head .record-status {
        grid-column: 1 / -1;
        justify-self: start;
    }

    #thoughtsPanel .thought-voice-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    #thoughtsPanel .thought-voice-toolbar span {
        grid-column: 1 / -1;
    }
}

/* Keep the four profile service metrics on one row. */
@media (max-width: 759px) {
    .profile-service-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
    }

    .profile-service-stat {
        grid-template-columns: 1fr;
        grid-template-areas:
            "icon"
            "value"
            "label";
        justify-items: center;
        gap: 4px;
        min-width: 0;
        padding: 0 4px;
        text-align: center;
        border-right: 1px solid rgba(15, 23, 42, 0.06);
    }

    .profile-service-stat:last-child {
        border-right: 0;
    }

    .profile-service-icon {
        width: 26px;
        height: 26px;
    }

    .profile-service-icon::before {
        width: 15px;
        height: 15px;
    }

    .profile-service-stat strong {
        font-size: 20px;
    }

    .profile-service-stat small {
        font-size: 10px;
        line-height: 1.2;
    }
}

/* Let the mobile keyboard cover the dashboard tab bar while form controls are focused. */
body.dashboard-keyboard-open .dashboard-bottom-nav {
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
}

body.dashboard-keyboard-open .sender-dashboard {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

/* Desktop H5 layout: keep primary panels as a single-card flow. */
@media (min-width: 760px) {
    .login-page {
        width: min(100%, 430px);
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .login-info-strip {
        grid-column: 1;
        min-height: auto;
    }

    .sender-dashboard {
        width: min(100%, 560px);
        max-width: 560px;
    }

    .dashboard-home-feed,
    .dashboard-home-secondary-grid,
    .dashboard-card-list,
    .card-group-cards,
    .builder-type-grid,
    .profile-center-grid,
    .work-report-top-grid,
    #workReportsPanel .work-report-top-grid {
        grid-template-columns: 1fr;
    }

    #workReportsPanel .employee-boss-entry-card,
    #workReportsPanel .work-report-entry-card,
    #workReportsPanel .boss-briefing-card {
        width: 100%;
    }

    .profile-identity-card {
        grid-template-columns: 82px minmax(0, 1fr) auto;
    }
}

.profile-balance-card .profile-balance-value {
    display: inline-flex;
    align-items: baseline;
    gap: 0.22em;
    margin-top: 8px;
    color: #ffffff;
    font-size: clamp(36px, 9vw, 54px);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0;
}

.profile-balance-card .profile-balance-value em {
    font-style: normal;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.profile-balance-card .profile-balance-unit {
    color: inherit;
    font-size: clamp(18px, 4.8vw, 28px);
    font-weight: 800;
    line-height: inherit;
    letter-spacing: inherit;
}

@media (max-width: 720px) {
    .profile-balance-card .profile-balance-value {
        font-size: clamp(30px, 10vw, 44px);
    }

    .profile-balance-card .profile-balance-unit {
        font-size: clamp(16px, 5vw, 24px);
    }
}
