@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    --brand-50: #effbff;
    --brand-100: #d8f6ff;
    --brand-200: #aeeeff;
    --brand-300: #72def6;
    --brand-500: #00a9d6;
    --brand-600: #008fb8;
    --brand-700: #007797;
    --brand-800: #005f7a;
    --ink-900: #142f3a;
    --ink-700: #2d5260;
    --ink-500: #5d7480;
    --line: #bfeaf5;
    --surface: #ffffff;
    --background: #f2fcff;
    --danger: #b42318;
    font-family: 'Noto Sans JP', ui-sans-serif, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink-900);
    font-family: 'Noto Sans JP', ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
}

a {
    color: inherit;
}

button,
input,
select,
textarea,
option {
    font: inherit;
    font-weight: 400;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 169, 214, 0.18);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink-900);
    box-shadow: 0 12px 30px rgba(0, 143, 184, 0.08);
    backdrop-filter: blur(12px);
}

.topbar-inner {
    display: flex;
    width: min(1120px, calc(100% - 40px));
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    text-decoration: none;
    font-weight: 700;
}

.brand-mark {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 7px;
    background: var(--brand-500);
    color: white;
    font-weight: 700;
}

.brand-mark.large {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 18px;
}

.brand-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.login-image {
    width: 104px;
    height: 104px;
    flex: 0 0 auto;
    object-fit: contain;
}

.topnav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
}

.topnav a {
    color: var(--ink-700);
    text-decoration: none;
}

.current-user {
    color: var(--ink-500);
}

.page-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 42px;
}

.guest-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(0, 169, 214, 0.16) 0%, rgba(255, 255, 255, 0.92) 48%, rgba(114, 222, 246, 0.22) 100%),
        repeating-linear-gradient(135deg, rgba(0, 169, 214, 0.07) 0 1px, transparent 1px 18px);
}

.login-panel {
    position: relative;
    width: min(540px, 100%);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 38px 40px 36px;
    box-shadow: 0 26px 80px rgba(0, 143, 184, 0.18), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.login-panel::before {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-300), var(--brand-500), #4fd7ad);
    content: "";
}

.login-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 30px;
}

.login-heading h1,
.page-header h1 {
    margin: 0;
    color: var(--ink-900);
    font-size: 22px;
    line-height: 1.25;
}

.login-heading p,
.page-header p,
.panel p {
    margin: 6px 0 0;
    color: var(--ink-700);
    line-height: 1.55;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin: 0 0 14px;
    border: 1px solid rgba(0, 169, 214, 0.18);
    border-left: 3px solid var(--brand-500);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
    padding: 6px 9px;
    color: var(--ink-500);
    font-size: 11px;
    line-height: 1.4;
    box-shadow: 0 6px 18px rgba(0, 143, 184, 0.06);
}

.breadcrumbs a {
    color: var(--brand-800);
    font-weight: 500;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.breadcrumb-separator {
    color: rgba(45, 82, 96, 0.42);
}

.launcher-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.launcher-header h1 {
    margin: 0;
    color: var(--ink-900);
    font-size: 15px;
    line-height: 1.4;
}

.launcher-header span {
    border-radius: 4px;
    background: var(--brand-500);
    padding: 3px 7px;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-sections {
    display: grid;
    width: min(780px, 100%);
    gap: 22px;
}

.dashboard-section {
    display: grid;
    gap: 9px;
}

.dashboard-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-section-heading h2 {
    margin: 0;
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
}

.launcher-grid {
    display: grid;
    width: min(780px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.launcher-grid-management {
    width: min(520px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.launcher-grid-workflow {
    width: min(780px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.launcher-card {
    position: relative;
    display: flex;
    min-height: 104px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 14px 10px;
    color: var(--ink-900);
    text-decoration: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.launcher-card-primary {
    border-color: var(--brand-300);
    background: linear-gradient(180deg, #ffffff, var(--brand-50));
}

.launcher-card:hover {
    border-color: var(--brand-300);
    box-shadow: 0 18px 42px rgba(0, 143, 184, 0.12);
    transform: translateY(-1px);
}

.launcher-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(0, 95, 122, 0.28);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--brand-500), var(--brand-800));
    color: white;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.launcher-icon svg {
    width: 23px;
    height: 23px;
}

.launcher-label {
    color: var(--ink-700);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
}

.launcher-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    border-radius: 999px;
    background: var(--brand-100);
    padding: 2px 7px;
    color: var(--brand-800);
    font-size: 10px;
    font-weight: 700;
}

.launcher-card.is-disabled {
    cursor: default;
    opacity: 0.72;
}

.launcher-card.is-disabled:hover {
    border-color: var(--line);
    box-shadow: none;
    transform: none;
}

.page-header.compact {
    margin-bottom: 14px;
}

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

.metric-card,
.panel,
.table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.metric-card {
    padding: 14px;
}

.metric-card span {
    display: block;
    color: var(--ink-500);
    font-size: 12px;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 22px;
}

.panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
}

.panel h2 {
    margin: 0;
    font-size: 14px;
}

.form-panel {
    display: grid;
    max-width: 760px;
    gap: 10px;
}

.editor-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 14px;
}

.editable-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 12px;
    align-items: start;
}

.editable-form .field-wide,
.editable-form .field-span-2,
.editable-form .field-span-3,
.editable-form .field-span-4,
.editable-form .form-section-title,
.editable-form .form-actions {
    grid-column: 1 / -1;
}

.candidate-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px 10px;
}

.candidate-form .field-span-2 {
    grid-column: span 2;
}

.candidate-form .field-span-3 {
    grid-column: span 3;
}

.candidate-form .field-span-4,
.candidate-form .form-section-title,
.candidate-form .form-actions {
    grid-column: 1 / -1;
}

.interview-form {
    max-width: 920px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.interview-form .field-span-2 {
    grid-column: span 2;
}

.interview-form .form-actions {
    grid-column: 1 / -1;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    color: var(--brand-800);
    font-size: 11px;
    font-weight: 500;
}

.form-section-title::after {
    display: block;
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(0, 169, 214, 0.26), rgba(0, 169, 214, 0));
    content: "";
}

.resume-upload-form,
.department-editor {
    max-width: 960px;
}

.side-editor {
    grid-template-columns: 1fr;
}

.side-editor .field-wide,
.side-editor .form-actions {
    grid-column: auto;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 640px) minmax(380px, 1fr);
    gap: 14px;
    align-items: start;
}

.side-stack {
    display: grid;
    gap: 10px;
}

.side-stack .stack-panel {
    gap: 8px;
    padding: 12px;
}

.side-stack .stack-panel:nth-child(n + 3) {
    font-size: 10.5px;
}

.side-stack .stack-panel:nth-child(n + 3) h2 {
    font-size: 11.5px;
}

.side-stack .stack-panel:nth-child(n + 3) h3,
.side-stack .stack-panel:nth-child(n + 3) .tight-list,
.side-stack .stack-panel:nth-child(n + 3) .meta-list,
.side-stack .stack-panel:nth-child(n + 3) .list-row,
.side-stack .stack-panel:nth-child(n + 3) .profile-summary {
    font-size: 10.5px;
}

.resume-workspace-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
    gap: 12px;
}

.ai-preview-panel {
    position: sticky;
    top: 66px;
}

.resume-workspace-grid .ai-preview-panel {
    gap: 7px;
    padding: 10px;
    font-size: 10.5px;
}

.resume-workspace-grid .ai-preview-panel h2 {
    font-size: 11.5px;
}

.resume-workspace-grid .ai-preview-panel .profile-summary {
    padding: 7px;
    font-size: 10.5px;
    line-height: 1.45;
}

.resume-workspace-grid .ai-preview-panel .meta-list {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 5px 8px;
    font-size: 10.5px;
}

.resume-workspace-grid .ai-preview-panel .meta-list dt,
.resume-workspace-grid .ai-preview-panel .meta-list dd {
    font-size: 10.5px;
    line-height: 1.45;
}

.profile-summary {
    margin: 0;
    border: 1px solid var(--brand-200);
    border-radius: 6px;
    background: var(--brand-50);
    padding: 8px;
    color: var(--ink-700);
    font-size: 11.5px;
    line-height: 1.5;
}

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

.profile-columns.single {
    grid-template-columns: 1fr;
}

.profile-columns h3 {
    margin: 0 0 4px;
    color: var(--ink-900);
    font-size: 11.5px;
}

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

.panel-title-row h2 {
    margin: 0;
}

.copy-mini-button {
    min-height: 24px;
    border: 1px solid var(--brand-500);
    border-radius: 5px;
    background: var(--brand-500);
    padding: 3px 8px;
    color: white;
    cursor: pointer;
    font-size: 10.5px;
    line-height: 1;
}

.copy-mini-button:hover {
    border-color: var(--brand-600);
    background: var(--brand-600);
}

.tight-list {
    display: grid;
    gap: 3px;
    margin: 0;
    padding-left: 1.1em;
    color: var(--ink-700);
    line-height: 1.4;
}

.compact-meta {
    font-size: 11.5px;
}

.interview-focus-panel,
.ai-summary-panel {
    font-size: 11px;
}

.interview-focus-panel h2,
.ai-summary-panel h2 {
    font-size: 12px;
}

.interview-focus-panel .profile-columns {
    gap: 8px;
}

.reason-list {
    padding-left: 1em;
}

.reason-list li {
    padding-bottom: 2px;
}

.reason-list small {
    display: block;
    margin-top: 1px;
    color: var(--ink-500);
    font-size: 10.5px;
    line-height: 1.35;
}

.ai-summary-panel .meta-list {
    gap: 5px 8px;
}

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

.field {
    display: grid;
    gap: 5px;
}

.field span,
.check-field {
    color: var(--ink-700);
    font-size: 11px;
    font-weight: 400;
}

.field input,
.field select,
.field textarea,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    padding: 5px 7px;
    color: var(--ink-900);
    font-size: 11px;
    font-weight: 400 !important;
    box-shadow: 0 1px 0 rgba(0, 169, 214, 0.04);
}

.field input *,
.field select *,
.field textarea * {
    font-weight: 400 !important;
}

.field input::placeholder,
.field textarea::placeholder,
.filter-bar input::placeholder {
    color: rgba(93, 116, 128, 0.72);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--brand-500);
    outline: 3px solid rgba(0, 169, 214, 0.16);
}

.field textarea {
    min-height: 104px;
    resize: vertical;
    line-height: 1.55;
}

.candidate-form textarea {
    min-height: 104px;
}

.field small,
.hint {
    color: var(--ink-500);
    font-size: 11px;
    line-height: 1.6;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.file-download-link {
    color: var(--brand-800);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
}

.file-download-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.file-replace-button {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 11px;
}

.login-panel .field {
    gap: 9px;
}

.login-panel .field span {
    color: var(--ink-900);
    font-size: 13px;
}

.code-notice {
    margin: -8px 0 18px;
    border: 1px solid var(--brand-200);
    border-radius: 8px;
    background: var(--brand-50);
    padding: 12px 14px;
    color: var(--ink-700);
    line-height: 1.8;
}

.code-notice strong {
    color: var(--brand-800);
}

.code-input {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.resend-form {
    margin-top: 16px;
    text-align: center;
}

.check-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 7px 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.button.full {
    width: 100%;
}

.button-primary {
    border-color: var(--brand-500);
    background: var(--brand-500);
    color: white;
    box-shadow: 0 12px 26px rgba(0, 169, 214, 0.26);
}

.button-primary:hover {
    border-color: var(--brand-600);
    background: var(--brand-600);
    transform: translateY(-1px);
}

.button-secondary,
.button-ghost {
    border-color: rgba(0, 169, 214, 0.28);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-700);
    box-shadow: 0 8px 18px rgba(20, 47, 58, 0.07);
}

.button-secondary:hover,
.button-ghost:hover {
    border-color: var(--brand-300);
    background: var(--brand-50);
    color: var(--brand-800);
    transform: translateY(-1px);
}

.button-danger {
    border-color: #dc2626;
    background: #dc2626;
    color: white;
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.18);
}

.button-danger:hover {
    border-color: #b91c1c;
    background: #b91c1c;
    transform: translateY(-1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
}

.button:disabled:hover {
    transform: none;
}

.button.is-loading {
    gap: 7px;
}

.button.is-loading::before {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border: 2px solid rgba(0, 169, 214, 0.22);
    border-top-color: var(--brand-600);
    border-radius: 999px;
    content: "";
    animation: loading-spin 700ms linear infinite;
}

.button-primary.is-loading::before,
.button-danger.is-loading::before {
    border-color: rgba(255, 255, 255, 0.42);
    border-top-color: white;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px auto auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.filter-bar.simple {
    grid-template-columns: minmax(220px, 1fr) auto auto;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 14px;
    align-items: start;
}

.interview-page-stack {
    display: grid;
    gap: 12px;
}

.interview-settings-panel {
    max-width: none;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 12px;
}

.interview-settings-panel h2,
.interview-settings-panel h2 {
    grid-column: 1 / -1;
}

.interview-settings-panel h2 {
    margin: 0;
    font-size: 13px;
}

.interview-settings-panel .field-span-2 {
    grid-column: span 2;
}

.interview-settings-panel .field span {
    font-size: 10.5px;
}

.interview-settings-panel input,
.interview-settings-panel select {
    min-height: 31px;
    padding-block: 5px;
    font-size: 11.5px;
}

.interview-settings-panel .form-actions {
    grid-column: span 2;
    align-self: end;
    padding-top: 0;
}

.interview-settings-panel .form-actions .button {
    min-height: 31px;
    padding: 5px 14px;
}

.detail-main,
.detail-side,
.stack-panel {
    display: grid;
    gap: 10px;
}

.stack-panel {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
}

.stack-panel h2 {
    margin: 0;
    font-size: 13px;
}

.section-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.panel-heading {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(176, 232, 245, 0.76);
    padding-bottom: 8px;
}

.panel-note {
    flex: 1 1 auto;
    margin: 0;
    color: var(--ink-500);
    font-size: 10.5px;
    line-height: 1.45;
}

.status-pill {
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    padding: 2px 9px;
    color: var(--ink-500);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill.is-ready {
    border-color: var(--brand-200);
    background: var(--brand-50);
    color: var(--brand-800);
}

.status-pill.is-waiting {
    border-color: #bfe7f2;
    background: #f2fbfd;
    color: var(--ink-700);
}

.workflow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.workflow-actions form {
    margin: 0;
}

.panel-tool-row {
    justify-content: flex-end;
    margin-top: 2px;
}

.collapsible-card {
    gap: 10px;
}

.collapsible-card-summary,
.collapsible-section summary {
    cursor: pointer;
    list-style: none;
}

.collapsible-card-summary::-webkit-details-marker,
.collapsible-section summary::-webkit-details-marker {
    display: none;
}

.collapsible-card-summary {
    position: relative;
    padding-left: 24px;
}

.collapsible-card-summary h2 {
    font-size: 13px;
}

.collapsible-card-summary::before,
.collapsible-section summary::before {
    display: inline-grid;
    place-items: center;
    color: var(--brand-800);
    content: "›";
    font-weight: 700;
    transition: transform 120ms ease;
}

.collapsible-card[open] > .collapsible-card-summary::before,
.collapsible-section[open] > summary::before {
    transform: rotate(90deg);
}

.collapsible-card-summary::before {
    position: absolute;
    left: 2px;
    top: 7px;
    width: 16px;
    height: 16px;
}

.collapsible-section {
    border-top: 1px solid rgba(176, 232, 245, 0.68);
    padding-top: 8px;
}

.collapsible-section summary {
    display: flex;
    gap: 8px;
    align-items: center;
    border-radius: 6px;
    background: rgba(239, 251, 255, 0.62);
    padding: 6px 9px;
    color: var(--ink-900);
    font-size: 11.5px;
    font-weight: 700;
}

.collapsible-section summary::before {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.collapsible-section[open] summary {
    margin-bottom: 8px;
}

.match-reasons-section summary {
    font-size: 10.5px;
    padding: 5px 8px;
}

.match-reasons-section .analysis-list {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 5px 8px;
}

.match-reasons-section .analysis-list dt,
.match-reasons-section .analysis-list dd {
    font-size: 10.5px;
    line-height: 1.45;
}

.copy-row,
.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.copy-row input,
.inline-form input[type="file"],
.inline-form input[type="text"] {
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    padding: 7px 9px;
    color: var(--ink-900);
}

.candidate-url-block {
    display: grid;
    width: 100%;
    gap: 8px;
}

.candidate-url-block input {
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    padding: 7px 9px;
    color: var(--ink-900);
    font-size: 11.5px;
}

.candidate-url-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.candidate-url-actions form {
    margin: 0;
}

.room-candidate-url {
    border-top: 1px solid rgba(176, 232, 245, 0.76);
    padding-top: 8px;
}

.subsection-title {
    color: var(--ink-700);
    font-size: 11px;
}

.inline-hint {
    min-width: max-content;
    color: var(--ink-500);
    font-size: 12px;
}

.guidance-note {
    border: 1px solid rgba(0, 169, 214, 0.18);
    border-radius: 7px;
    background: rgba(239, 251, 255, 0.7);
    padding: 8px 10px;
    color: var(--ink-700);
    font-size: 10.5px;
    line-height: 1.55;
}

.warning-note {
    border-color: rgba(220, 38, 38, 0.28);
    background: #fff5f5;
    color: #991b1b;
}

.recording-actions {
    display: grid;
    gap: 9px;
    width: 100%;
}

.recording-action-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    padding: 9px;
}

.recording-action-card > span {
    color: var(--ink-700);
    font-size: 11px;
    font-weight: 700;
}

.recording-action-card input[type="file"],
.recording-action-card input[type="text"] {
    width: 100%;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    padding: 6px 8px;
    color: var(--ink-900);
    font-size: 11.5px;
}

.recording-workflow-actions {
    align-items: center;
}

.recording-file-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(0, 169, 214, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 9px;
}

.recording-file-row > span {
    color: var(--ink-700);
    font-size: 11px;
}

.recording-file-name {
    overflow: hidden;
    color: var(--brand-800);
    font-size: 11.5px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recording-file-name:hover {
    color: var(--brand-600);
    text-decoration: underline;
}

.recording-file-actions {
    display: flex;
    gap: 7px;
    justify-content: flex-end;
}

.recording-player {
    display: block;
    width: 100%;
    max-height: 420px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

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

.list-row {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    padding: 10px;
    text-decoration: none;
}

.list-row:hover {
    border-color: var(--brand-300);
}

.list-row.plain:hover {
    border-color: var(--line);
}

.list-row span,
.list-row small {
    color: var(--ink-700);
    font-size: 11.5px;
    line-height: 1.55;
}

.question-list {
    gap: 6px;
}

.question-list .list-row {
    gap: 3px;
    padding: 8px 9px;
}

.question-list .list-row strong {
    font-size: 10.5px;
}

.question-list .list-row span,
.question-list .list-row small {
    font-size: 10.5px;
    line-height: 1.45;
}

.question-list .list-row small {
    color: var(--ink-500);
}

.meta-list,
.analysis-list {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 7px 10px;
    margin: 0;
}

.meta-list dt,
.analysis-list dt {
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 700;
}

.meta-list dd,
.analysis-list dd {
    margin: 0;
    min-width: 0;
    line-height: 1.55;
}

.analysis-list {
    grid-template-columns: 150px minmax(0, 1fr);
}

.analysis-list dd p {
    margin: 3px 0 0;
}

.analysis-list dd strong {
    margin-right: 6px;
}

.interview-analysis-list {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 5px 9px;
}

.interview-analysis-list dt {
    font-size: 10.5px;
    line-height: 1.45;
}

.interview-analysis-list dd {
    color: var(--ink-700);
    font-size: 10.8px;
    line-height: 1.5;
}

.interview-analysis-list dd strong,
.interview-analysis-list dd span,
.interview-analysis-list dd p {
    font-size: 10.8px;
    line-height: 1.45;
}

.preline {
    white-space: pre-wrap;
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: var(--brand-50);
    padding: 12px;
    color: var(--ink-700);
    line-height: 1.55;
}

.score-line {
    margin: 0;
    color: var(--ink-700);
}

.score-line strong {
    color: var(--brand-800);
    font-size: 26px;
}

.radar-panel {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid var(--brand-200);
    border-radius: 8px;
    background: rgba(239, 251, 255, 0.58);
    padding: 10px;
}

.radar-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

.radar-grid {
    fill: none;
    stroke: rgba(0, 169, 214, 0.24);
    stroke-width: 1;
}

.radar-axis {
    stroke: rgba(0, 169, 214, 0.2);
    stroke-width: 1;
}

.radar-score {
    fill: rgba(0, 169, 214, 0.26);
    stroke: var(--brand-600);
    stroke-width: 2;
}

.radar-label {
    fill: var(--ink-700);
    font-size: 8px;
    text-anchor: middle;
}

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

.radar-item {
    display: grid;
    grid-template-columns: minmax(82px, 1fr) auto;
    gap: 3px 10px;
    align-items: baseline;
    color: var(--ink-700);
    font-size: 11px;
}

.radar-item strong {
    color: var(--ink-900);
}

.radar-item span {
    color: var(--brand-800);
    white-space: nowrap;
}

.radar-item small {
    grid-column: 1 / -1;
    color: var(--ink-500);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.transcript-box {
    width: 100%;
    max-height: 460px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 14px;
    line-height: 1.8;
}

.speaker-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    border: 1px solid rgba(0, 169, 214, 0.18);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
    padding: 8px;
}

.speaker-metrics-heading {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink-700);
    font-size: 10.5px;
}

.speaker-metrics-heading small {
    color: var(--ink-500);
    font-size: 10px;
}

.speaker-metric-row {
    display: grid;
    gap: 2px;
    border: 1px solid rgba(191, 234, 245, 0.9);
    border-radius: 6px;
    background: rgba(239, 251, 255, 0.64);
    padding: 6px 8px;
}

.speaker-metric-row span,
.speaker-metric-row small {
    overflow: hidden;
    color: var(--ink-500);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.speaker-metric-row strong {
    color: var(--brand-800);
    font-size: 13px;
}

.daily-room {
    width: 100%;
    height: min(720px, 68vh);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0f172a;
}

.daily-room.public {
    height: calc(100vh - 132px);
    min-height: 520px;
}

.public-room-shell {
    min-height: 100vh;
    background: var(--background);
    padding: 16px;
}

.public-room-header {
    display: flex;
    width: min(1200px, 100%);
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto 12px;
}

.public-room-header h1 {
    margin: 0;
    font-size: 18px;
    text-align: right;
}

.public-room-header p {
    margin: 4px 0 0;
    color: var(--ink-700);
    text-align: right;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.public-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.public-room-panel,
.public-waiting {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.public-waiting {
    display: grid;
    min-height: calc(100vh - 120px);
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 28px;
    text-align: center;
}

.public-waiting img {
    width: 112px;
    height: 112px;
    object-fit: contain;
}

.public-waiting h2 {
    margin: 10px 0 0;
    font-size: 22px;
}

.public-waiting p {
    max-width: 520px;
    margin: 8px 0 0;
    color: var(--ink-700);
    line-height: 1.8;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 720px;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid var(--line);
}

.department-table {
    min-width: 1940px;
}

.department-table th:nth-child(1),
.department-table td:nth-child(1) {
    width: 190px;
}

.department-table th:nth-child(2),
.department-table td:nth-child(2) {
    width: 200px;
}

.department-table th:nth-child(3),
.department-table td:nth-child(3) {
    width: 430px;
}

.department-table th:nth-child(4),
.department-table td:nth-child(4) {
    width: 340px;
}

.department-table th:nth-child(5),
.department-table td:nth-child(5) {
    width: 330px;
}

.department-table th:nth-child(6),
.department-table td:nth-child(6) {
    width: 450px;
}

.candidate-table {
    min-width: 1540px;
}

.candidate-table th:nth-child(1),
.candidate-table td:nth-child(1) {
    width: 150px;
}

.candidate-table th:nth-child(2),
.candidate-table td:nth-child(2) {
    width: 160px;
}

.candidate-table th:nth-child(3),
.candidate-table td:nth-child(3) {
    width: 86px;
}

.candidate-table th:nth-child(4),
.candidate-table td:nth-child(4) {
    width: 310px;
}

.candidate-table th:nth-child(5),
.candidate-table td:nth-child(5) {
    width: 330px;
}

.candidate-table th:nth-child(6),
.candidate-table td:nth-child(6) {
    width: 230px;
}

.candidate-table th:nth-child(7),
.candidate-table td:nth-child(7) {
    width: 140px;
}

.candidate-table th:nth-child(8),
.candidate-table td:nth-child(8) {
    width: 134px;
}

.interview-table {
    min-width: 1520px;
}

.interview-table th:nth-child(1),
.interview-table td:nth-child(1) {
    width: 220px;
}

.interview-table th:nth-child(2),
.interview-table td:nth-child(2) {
    width: 150px;
}

.interview-table th:nth-child(3),
.interview-table td:nth-child(3) {
    width: 170px;
}

.interview-table th:nth-child(4),
.interview-table td:nth-child(4) {
    width: 136px;
}

.interview-table th:nth-child(5),
.interview-table td:nth-child(5) {
    width: 120px;
}

.interview-table th:nth-child(6),
.interview-table td:nth-child(6) {
    width: 86px;
}

.interview-table th:nth-child(7),
.interview-table td:nth-child(7) {
    width: 300px;
}

.interview-table th:nth-child(8),
.interview-table td:nth-child(8) {
    width: 338px;
}

th,
td {
    border: 1px solid var(--line);
    padding: 7px 9px;
    font-size: 11px;
    text-align: left;
    vertical-align: top;
}

.data-table th,
.data-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

th {
    background: var(--brand-50);
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 700;
}

tbody tr {
    background: white;
    transition: background 120ms ease;
}

tbody tr:nth-child(even) {
    background: rgba(239, 251, 255, 0.42);
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background: rgba(216, 246, 255, 0.78);
}

.clickable-row:focus {
    outline: 2px solid rgba(0, 169, 214, 0.3);
    outline-offset: -2px;
}

.cell-long {
    color: var(--ink-700);
    line-height: 1.45;
}

.cell-popover {
    display: block;
    color: var(--ink-700);
    cursor: help;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-popover:focus {
    border-radius: 4px;
    outline: 2px solid rgba(0, 169, 214, 0.24);
    outline-offset: 2px;
}

.hover-popover {
    position: fixed;
    z-index: 80;
    max-height: min(320px, 70vh);
    overflow: auto;
    border: 1px solid var(--brand-200);
    border-radius: 7px;
    background: white;
    box-shadow: 0 18px 44px rgba(20, 47, 58, 0.18);
    color: var(--ink-800);
    font-size: 11px;
    line-height: 1.6;
    padding: 9px 10px;
    pointer-events: none;
    white-space: pre-wrap;
}

.hover-popover[hidden] {
    display: none;
}

.cell-division,
.cell-department {
    color: var(--ink-900);
}

.role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    border-radius: 999px;
    background: var(--brand-100);
    padding: 2px 8px;
    color: var(--brand-800);
    font-size: 10.5px;
    font-weight: 700;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    white-space: nowrap;
}

td.actions {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
}

.actions form {
    display: inline;
}

td.actions form {
    margin-left: 10px;
}

.text-link,
.danger-link {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

.text-link {
    color: var(--brand-700);
}

.danger-link {
    color: var(--danger);
}

body.modal-open {
    overflow: hidden;
}

.confirm-modal[hidden] {
    display: none;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}

.confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 47, 58, 0.28);
    backdrop-filter: blur(6px);
}

.confirm-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(440px, 100%);
    gap: 18px;
    border: 1px solid rgba(0, 169, 214, 0.22);
    border-radius: 8px;
    background: white;
    padding: 22px;
    box-shadow: 0 28px 70px rgba(0, 95, 122, 0.22);
}

.confirm-dialog h2 {
    margin: 0;
    font-size: 18px;
}

.confirm-dialog p {
    margin: 8px 0 0;
    color: var(--ink-700);
    line-height: 1.7;
}

.confirm-kicker {
    margin: 0;
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.empty-cell {
    color: var(--ink-500);
    text-align: center;
}

.page-header p,
.section-row > div > p {
    display: none;
}

.page-header h1,
.launcher-header h1 {
    font-size: 16px;
    font-weight: 700 !important;
}

.dashboard-section-heading h2 {
    font-size: 10px;
}

.launcher-label {
    font-size: 11px;
}

.launcher-card {
    min-height: 94px;
}

h1,
h2,
h3,
strong,
th,
dt,
.brand,
.button,
.text-link,
.danger-link,
.field span,
.launcher-header span,
.dashboard-section-heading h2,
.launcher-label,
.launcher-badge,
.role-badge,
.meta-list dt,
.analysis-list dt,
.list-row strong,
.confirm-kicker {
    font-weight: 400 !important;
}

.brand span {
    font-weight: 700 !important;
}

.form-actions {
    display: flex;
    gap: 10px;
    padding-top: 4px;
}

.form-actions-top,
.form-actions-under-file {
    padding-top: 0;
}

.resume-file-field .form-actions-under-file {
    margin-top: 2px;
}

.loading-panel {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 169, 214, 0.22);
    border-radius: 6px;
    background: rgba(239, 251, 255, 0.92);
    padding: 8px 10px;
    color: var(--ink-700);
    font-size: 11px;
    line-height: 1.45;
}

.loading-panel[hidden] {
    display: none;
}

.page-loading {
    margin: -6px 0 12px;
}

.loading-spinner {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border: 2px solid rgba(0, 169, 214, 0.22);
    border-top-color: var(--brand-500);
    border-radius: 999px;
    animation: loading-spin 700ms linear infinite;
}

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

.alert {
    margin-bottom: 14px;
    border-radius: 7px;
    padding: 10px 12px;
    line-height: 1.6;
}

.alert-success {
    border: 1px solid var(--brand-200);
    background: var(--brand-50);
    color: var(--brand-800);
}

.alert-error {
    border: 1px solid #f2b8b5;
    background: #fff1f0;
    color: var(--danger);
}

.pagination-bar {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    border: 1px solid rgba(0, 169, 214, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.78);
    padding: 6px;
    box-shadow: 0 6px 18px rgba(0, 143, 184, 0.05);
}

.pagination-summary {
    margin: 0;
    padding: 0 4px;
    color: var(--ink-500);
    font-size: 11px;
    white-space: nowrap;
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 3px;
}

.pagination-link,
.pagination-ellipsis {
    display: inline-flex;
    min-width: 28px;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 4px 8px;
    color: var(--ink-700);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.pagination-link {
    background: white;
}

.pagination-link:hover {
    border-color: var(--brand-200);
    color: var(--brand-800);
}

.pagination-link.is-current {
    border-color: var(--brand-500);
    background: var(--brand-500);
    color: white;
}

.pagination-link.is-disabled {
    background: transparent;
    color: rgba(93, 116, 128, 0.48);
}

.pagination-ellipsis {
    min-width: 20px;
    color: var(--ink-500);
}

.song-player {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.song-launch {
    position: relative;
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(0, 169, 214, 0.18);
    border-radius: 999px;
    background: white;
    box-shadow: 0 18px 42px rgba(0, 143, 184, 0.22);
    cursor: pointer;
    pointer-events: auto;
    transition: box-shadow 120ms ease, transform 120ms ease;
}

.song-launch img {
    width: 74%;
    height: 74%;
    object-fit: contain;
}

.song-launch span {
    position: absolute;
    right: 7px;
    top: 7px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 2px solid white;
    border-radius: 999px;
    background: var(--brand-500);
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.song-launch:hover {
    box-shadow: 0 22px 50px rgba(0, 143, 184, 0.28);
    transform: translateY(-1px);
}

.song-player.is-playing .song-launch {
    box-shadow: 0 0 0 5px rgba(0, 169, 214, 0.2), 0 18px 42px rgba(0, 143, 184, 0.22);
}

.song-panel {
    display: none;
    width: min(500px, calc(100vw - 32px));
    max-height: min(460px, calc(100vh - 104px));
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 22px 62px rgba(0, 143, 184, 0.18);
    pointer-events: auto;
}

.song-player.is-open .song-panel {
    display: block;
}

.song-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
}

.song-eyebrow {
    margin: 0;
    color: var(--brand-700);
    font-size: 11px;
    font-weight: 700;
}

.song-current-line {
    margin: 4px 0 0;
    color: var(--ink-900);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.song-close,
.song-play {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-weight: 700;
}

.song-close {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-color: var(--line);
    border-radius: 999px;
    background: white;
    color: var(--ink-500);
}

.song-control-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    color: white;
}

.song-play {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 999px;
    font-size: 13px;
}

.song-meta {
    min-width: 0;
    flex: 1;
}

.song-title-main {
    margin: 0 0 7px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.song-progress span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-200), #ffffff);
}

.song-lyrics {
    max-height: 310px;
    overflow-y: auto;
    padding: 8px;
    scroll-behavior: smooth;
}

.song-lyric-line {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 9px 10px;
    color: var(--ink-500);
    cursor: pointer;
    text-align: left;
    transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.song-lyric-line span {
    position: relative;
    z-index: 1;
}

.song-lyric-line.is-active {
    color: var(--brand-800);
    font-weight: 700;
    transform: translateX(2px);
}

.song-lyric-line.is-active::before {
    position: absolute;
    inset: 0;
    width: var(--lyric-progress, 0%);
    background: linear-gradient(90deg, var(--brand-100), rgba(216, 246, 255, 0));
    content: "";
}

.daily-encouragement {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.88) 0%, rgba(216, 246, 255, 0.8) 28%, rgba(0, 169, 214, 0.72) 72%, rgba(0, 119, 151, 0.92) 100%),
        linear-gradient(145deg, var(--brand-100), var(--brand-500));
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease;
}

.daily-encouragement.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.daily-encouragement.is-done {
    opacity: 0;
}

.daily-stage {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    padding-top: 66px;
    text-align: center;
}

.daily-stage::before,
.daily-stage::after {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    content: "";
}

.daily-stage::before {
    top: 48px;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translateX(-50%);
}

.daily-stage::after {
    top: 118px;
    left: 50%;
    width: 390px;
    height: 110px;
    transform: translateX(-50%);
    filter: blur(18px);
}

.daily-character-wrap {
    position: relative;
    display: inline-block;
}

.daily-image {
    display: block;
    width: min(280px, 62vw);
    height: min(260px, 45vh);
    object-fit: contain;
    filter: drop-shadow(0 22px 34px rgba(0, 95, 122, 0.34));
    transform-origin: 50% 82%;
    animation: daily-character-in 820ms cubic-bezier(.2,.8,.25,1) both,
        daily-character-bob 2.4s ease-in-out 1s infinite;
}

.daily-bubble {
    position: absolute;
    top: -78px;
    left: 50%;
    min-width: min(340px, 80vw);
    max-width: min(420px, 86vw);
    border: 1px solid rgba(0, 169, 214, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    padding: 12px 18px;
    box-shadow: 0 14px 32px rgba(0, 95, 122, 0.2);
    opacity: 0;
    transform: translateX(-50%) scale(.3) translateY(10px);
    transform-origin: bottom center;
    animation: daily-bubble-pop 460ms cubic-bezier(.2,1.3,.4,1) 900ms forwards;
}

.daily-bubble::after {
    position: absolute;
    bottom: -8px;
    left: 50%;
    border: 8px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.96);
    border-bottom: 0;
    content: "";
    transform: translateX(-50%);
}

.daily-message {
    margin: 0;
    color: var(--ink-900);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    white-space: normal;
}

.daily-title {
    margin: 28px 0 0;
    color: white;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    opacity: 0;
    text-shadow: 0 2px 16px rgba(0, 95, 122, 0.34);
    animation: daily-title-in 680ms ease-out 1.75s both;
}

.daily-line {
    width: min(260px, 70vw);
    height: 3px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    transform: scaleX(0);
    animation: daily-line-sweep 560ms ease-out 2.1s forwards;
}

.daily-subtitle {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    animation: daily-subtitle-in 560ms ease-out 2.42s both;
}

.daily-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.daily-close:hover {
    color: white;
}

@keyframes daily-character-in {
    0% {
        opacity: 0;
        transform: translateY(76px) scale(.5) rotate(-5deg);
    }

    62% {
        opacity: 1;
        transform: translateY(-12px) scale(1.06) rotate(2deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }
}

@keyframes daily-character-bob {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes daily-bubble-pop {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(.3) translateY(10px);
    }

    72% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes daily-title-in {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes daily-line-sweep {
    to {
        transform: scaleX(1);
    }
}

@keyframes daily-subtitle-in {
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .daily-encouragement {
        display: none;
    }
}

@media (max-width: 760px) {
    .topbar {
        padding: 0;
    }

    .topbar-inner {
        align-items: center;
        min-height: 0;
        padding: 12px 0;
    }

    .topnav {
        justify-content: flex-end;
    }

    .page-header,
    .panel,
    .section-row,
    .copy-row,
    .inline-form {
        align-items: stretch;
        flex-direction: column;
    }

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

    .workspace-grid,
    .editable-form,
    .launcher-grid,
    .launcher-grid-management,
    .launcher-grid-workflow,
    .profile-columns {
        grid-template-columns: 1fr;
    }

    .analysis-list,
    .meta-list {
        grid-template-columns: 1fr;
    }

    .daily-room {
        height: 520px;
    }

    .daily-room.public {
        height: calc(100vh - 156px);
        min-height: 460px;
    }

    .public-room-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-room-header h1,
    .public-room-header p {
        text-align: left;
    }

    .menu-grid,
    .metrics-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .page-shell {
        width: min(100% - 24px, 1120px);
        padding-top: 20px;
    }

    .song-player {
        right: 10px;
        bottom: 10px;
    }

    .song-panel {
        width: calc(100vw - 20px);
    }

    .login-panel {
        padding: 28px 22px 26px;
    }

    .login-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .login-image {
        width: 86px;
        height: 86px;
    }

    .daily-encouragement {
        align-items: center;
    }

    .daily-stage {
        width: min(100% - 28px, 440px);
        padding-top: 58px;
    }

    .daily-image {
        width: min(230px, 68vw);
        height: min(230px, 40vh);
    }

    .daily-bubble {
        top: -66px;
        left: 50%;
        min-width: min(290px, 82vw);
        max-width: min(290px, 82vw);
        padding: 9px 13px;
    }

    .daily-message {
        font-size: 13px;
    }

    .daily-title {
        margin-top: 24px;
        font-size: 24px;
    }
}
