@font-face {
    font-display: swap;
    font-family: "QuickPencil";
    font-style: normal;
    font-weight: 400;
    src: url("/fonts/QuickPencil-Regular.woff") format("woff");
}

:root {
    --bg: #f5f7f6;
    --ink: #17202a;
    --muted: #667085;
    --line: #d9e2df;
    --teal: #137c72;
    --teal-dark: #0d5f57;
    --teal-soft: #e7f3f1;
    --coral: #c95742;
    --coral-soft: #fdebe7;
    --amber: #b98417;
    --amber-soft: #fff4d8;
    --blue: #2e6f9e;
    --blue-soft: #e8f1f8;
}

html,
body {
    background: var(--bg);
    color: var(--ink);
    font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--teal-dark);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.btn {
    border-radius: 6px;
    font-weight: 650;
}

.btn-teal {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.btn-teal:hover,
.btn-teal:focus {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: #fff;
}

.btn-teal:disabled {
    background: #8dbbb4;
    border-color: #8dbbb4;
    color: #eef8f6;
}

.send-client-button {
    align-items: center;
    display: inline-flex;
    gap: 9px;
    justify-content: center;
}

.send-count-badge {
    align-items: center;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 850;
    height: 24px;
    justify-content: center;
    min-width: 28px;
    padding: 0 8px;
}

.text-teal {
    color: var(--teal);
}

.brand-mark {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: block;
    height: 34px;
    object-fit: cover;
    padding: 0;
    width: 34px;
}

.topbar .brand {
    align-items: center;
    display: inline-flex;
    flex-direction: row;
    gap: 10px;
    text-decoration: none !important;
}

.topbar .brand:hover,
.topbar .brand:focus,
.topbar .brand.active {
    text-decoration: none !important;
}

.topbar .brand-name {
    color: var(--teal-dark);
    display: inline-block;
    font-family: "QuickPencil", Montserrat, ui-sans-serif, system-ui, sans-serif;
    font-size: 56px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 49px;
    margin-top: 2px;
    max-height: 49px;
    overflow: hidden;
    text-decoration: none !important;
}

.topbar .brand-mark {
    flex: 0 0 46px;
    height: 46px;
    width: 46px;
}

.brand-mark.large {
    height: 46px;
    width: 46px;
}

.page-heading {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.page-heading h1 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.page-heading p {
    color: var(--muted);
    margin-bottom: 0;
}

.actions-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.actions-row .btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.actions-row .icon-only-action {
    gap: 0;
    height: 40px;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    width: 42px;
}

.loading-state,
.empty-state {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-height: 42vh;
    text-align: center;
}

.metrics-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.metric {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--teal);
    border-radius: 8px;
    padding: 16px;
}

.metric span {
    color: var(--muted);
    display: block;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.metric strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
}

.accent-coral {
    border-left-color: var(--coral);
}

.accent-amber {
    border-left-color: var(--amber);
}

.accent-blue {
    border-left-color: var(--blue);
}

.disk-metric small {
    color: var(--muted);
    display: block;
    font-size: .78rem;
    font-weight: 650;
    margin-top: 3px;
}

.disk-metric .usage-bar {
    margin-top: 10px;
}

.toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.search-box {
    max-width: 620px;
}

.table-surface {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.table-surface thead th {
    background: #f0f5f4;
    color: #334155;
    font-size: .8rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.table-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
}

.settings-grid {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    max-width: 1240px;
}

.settings-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.settings-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    min-height: 52px;
    padding: 12px 14px;
    width: 100%;
}

.settings-toggle span:last-child {
    color: var(--ink);
    font-weight: 650;
}

.settings-toggle-input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.settings-toggle-control {
    background: #cbd5e1;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 44px;
    height: 24px;
    padding: 3px;
    transition: background .18s ease;
}

.settings-toggle-control::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
    content: "";
    display: block;
    height: 18px;
    transition: transform .18s ease;
    width: 18px;
}

.settings-toggle-input:checked + .settings-toggle-control {
    background: var(--teal);
}

.settings-toggle-input:checked + .settings-toggle-control::after {
    transform: translateX(20px);
}

.settings-toggle-input:focus-visible + .settings-toggle-control {
    outline: 3px solid rgba(19, 124, 114, .22);
    outline-offset: 2px;
}

.settings-toggle:has(.settings-toggle-input:disabled) {
    opacity: .65;
}

.usage-meter {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.usage-meter div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.usage-meter span {
    color: var(--muted);
    display: block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.usage-meter strong {
    color: #1f2937;
    font-size: 1.1rem;
}

.usage-bar {
    background: #e2e8f0;
    border-radius: 999px;
    height: 9px;
    margin-top: 14px;
    overflow: hidden;
}

.usage-bar span {
    background: var(--teal);
    display: block;
    height: 100%;
}

.jobs-table {
    min-width: 1160px;
}

.jobs-table thead th:first-child {
    width: 310px;
}

.job-preview-cell {
    width: 310px;
}

.job-preview-button,
.job-preview-empty {
    align-items: center;
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: inline-flex;
    justify-content: center;
    min-height: 132px;
    padding: 6px;
    width: 290px;
}

.job-preview-button {
    cursor: pointer;
}

.job-preview-button:hover,
.job-preview-button:focus {
    border-color: var(--teal);
    outline: none;
}

.job-preview-button img {
    border-radius: 4px;
    display: block;
    height: auto;
    max-height: 168px;
    max-width: 276px;
    object-fit: contain;
    width: auto;
}

.job-preview-empty {
    color: var(--muted);
    font-size: 1.6rem;
}

.job-title-cell {
    align-items: center;
    min-width: 210px;
}

.job-title-cell small {
    color: var(--muted);
    display: block;
}

.status {
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 750;
    padding: 4px 9px;
    white-space: nowrap;
}

.status-blue {
    background: var(--blue-soft);
    color: var(--blue);
}

.status-coral {
    background: var(--coral-soft);
    color: var(--coral);
}

.status-amber {
    background: var(--amber-soft);
    color: var(--amber);
}

.status-green {
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.status-muted {
    background: #eceff1;
    color: #64748b;
}

.detail-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-strip > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.detail-strip span {
    color: var(--muted);
    display: block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.soft-note {
    background: #fffdf7;
    border: 1px solid #ead9a6;
    border-radius: 8px;
    color: #4b5563;
    margin: 14px 0;
    padding: 12px;
}

.recipient-picker {
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    max-height: 210px;
    overflow: auto;
    padding: 10px;
}

.recipient-option {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e2df;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    margin: 0;
    padding: 9px 10px;
}

.recipient-option:hover {
    border-color: var(--teal);
}

.recipient-option input {
    height: 18px;
    margin: 0;
    width: 18px;
}

.recipient-option span {
    min-width: 0;
}

.recipient-option strong,
.recipient-option small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipient-option small {
    color: var(--muted);
}

.system-copy-option {
    grid-template-columns: auto auto minmax(0, 1fr);
}

.system-copy-option i {
    color: #b8860b;
    font-size: 1.05rem;
}

.section-title {
    color: #334155;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .02em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.modal-content {
    border: 0;
    border-radius: 8px;
}

.modal-nested {
    z-index: 1065;
}

.share-toggle {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 12px;
}

.login-wrap,
.public-login {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

.login-page-shell {
    background: #eef8f7;
    margin: -24px -28px -48px;
    min-height: calc(100vh - 60px);
    padding: 24px 28px 48px;
}

.login-split-wrap {
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    min-height: calc(100vh - 110px);
    overflow: hidden;
}

.login-art-panel {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    min-height: 620px;
    padding: 34px;
}

.login-art-panel img {
    display: block;
    height: 100%;
    max-height: 760px;
    object-fit: contain;
    width: 100%;
}

.login-form-panel {
    align-self: center;
    justify-self: center;
    max-width: 430px;
    padding: 44px;
    width: 100%;
}

.login-panel,
.public-access-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    max-width: 430px;
    padding: 28px;
    width: 100%;
}

.login-brand {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.app-login-brand {
    align-items: flex-start;
    display: grid;
    gap: 2px;
}

.app-login-brand-row {
    align-items: center;
    display: flex;
    gap: 10px;
}

.login-brand h1 {
    font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    margin-bottom: 2px;
}

.app-login-brand h1 {
    color: var(--teal-dark);
    font-family: "QuickPencil", Montserrat, ui-sans-serif, system-ui, sans-serif;
    font-size: 54px;
    font-weight: 400;
    line-height: 48px;
    margin: 0;
    max-height: 48px;
    overflow: hidden;
}

.login-brand p {
    color: var(--muted);
    margin-bottom: 0;
}

.app-login-brand p {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 56px;
}

.workbench {
    align-items: stretch;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr);
}

.design-pane,
.comments-pane,
.public-design,
.public-comments {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.design-pane,
.public-design {
    padding: 14px;
}

.comments-pane,
.public-comments {
    min-height: 0;
    overflow: hidden;
    padding: 14px;
}

.comments-pane {
    display: flex;
    flex-direction: column;
}

.access-chip,
.readonly-note {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #475569;
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
}

.readonly-note {
    background: #eef6f5;
    color: #0f766e;
}

.version-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.design-tools-row {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.design-tools-row .stage-toolbar {
    margin-bottom: 0;
}

.version-tab {
    background: #f8fafc;
    border: 1px solid #d5dee2;
    border-radius: 6px;
    color: #64748b;
    font-weight: 750;
    padding: 7px 12px;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.version-tab:hover,
.version-tab:focus {
    background: #eef2f5;
    border-color: #9aa7b3;
    color: #334155;
}

.version-tab.current,
.version-tab.active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.version-tab.current:hover,
.version-tab.current:focus {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: #fff;
}

.version-tab.selected:not(.current) {
    background: #e8edf0;
    border-color: #94a3b8;
    color: #1f2937;
}

.stage-toolbar {
    align-items: center;
    display: flex;
    gap: 7px;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.stage-toolbar span {
    color: #475569;
    font-size: .84rem;
    font-weight: 800;
    min-width: 48px;
    text-align: center;
}

.icon-button {
    align-items: center;
    background: #fff;
    border: 1px solid #d5dee2;
    border-radius: 6px;
    color: #334155;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
    width: 34px;
}

.icon-button:hover,
.icon-button:focus {
    background: var(--teal-soft);
    border-color: var(--teal);
    color: var(--teal-dark);
}

.icon-button:disabled {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.design-stage,
.public-stage {
    align-items: safe center;
    background: #111827;
    border-radius: 8px;
    display: flex;
    height: clamp(520px, calc(100vh - 260px), 780px);
    justify-content: safe center;
    line-height: 0;
    overflow: auto;
    padding: 14px;
    position: relative;
}

.design-canvas {
    flex: 0 0 auto;
    line-height: 0;
    margin: auto;
    min-width: 240px;
    position: relative;
}

.design-canvas img {
    display: block;
    height: auto;
    object-fit: contain;
    width: 100%;
}

.design-stage,
.public-stage {
    cursor: crosshair;
}

.pin {
    align-items: center;
    background: #dc2626;
    border: 3px solid #fff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .32);
    color: #fff;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 850;
    height: 28px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 28px;
    z-index: 5;
}

.draft-pin {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .38), 0 2px 8px rgba(15, 23, 42, .32);
}

.pin-resolved {
    background: #dc2626;
}

.pin.comment-explanation {
    background: #dc2626;
}

.pin.comment-question {
    background: #dc2626;
}

.pin.comment-creative {
    background: #dc2626;
}

.pin-inline {
    box-shadow: 0 1px 5px rgba(15, 23, 42, .28);
    flex: 0 0 28px;
    position: static;
    transform: none;
}

.version-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .86rem;
    gap: 14px;
    margin-top: 10px;
}

.pane-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pane-title h2 {
    font-size: 1.05rem;
    font-weight: 850;
    margin-bottom: 0;
}

.pane-title span {
    background: #edf2f7;
    border-radius: 999px;
    color: #334155;
    font-weight: 800;
    padding: 4px 9px;
}

.comment-compose {
    border-bottom: 1px solid var(--line);
    flex: 0 0 auto;
    margin: 0 -14px 14px;
    padding: 0 14px 14px;
}

.comments-history {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.comment-item {
    border: 1px solid var(--line);
    border-left: 4px solid var(--comment-color, var(--line));
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
}

.activity-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 18px;
    overflow: hidden;
}

.activity-toggle {
    align-items: center;
    background: #fff;
    border: 0;
    color: #1f2937;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    padding: 14px 16px;
    text-align: left;
    width: 100%;
}

.activity-toggle:hover,
.activity-toggle:focus {
    background: #f8fafc;
}

.activity-toggle > span:first-child {
    font-size: 1rem;
    font-weight: 850;
}

.activity-toggle i {
    color: #64748b;
    margin-left: auto;
}

.activity-badge {
    background: #edf2f7;
    border-radius: 999px;
    color: #334155;
    font-size: .82rem;
    font-weight: 850;
    min-width: 30px;
    padding: 4px 9px;
    text-align: center;
}

.activity-collapse {
    border-top: 1px solid var(--line);
    padding: 0;
}

.activity-collapse > p {
    padding: 14px 16px;
}

.activity-table {
    border-collapse: collapse;
    margin: 0;
    width: 100%;
}

.activity-table th,
.activity-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 14px;
    vertical-align: top;
}

.activity-table th {
    background: #f8fafc;
    color: #475569;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.activity-table td {
    color: #334155;
    font-size: .9rem;
}

.activity-table td:first-child {
    color: #64748b;
    white-space: nowrap;
    width: 160px;
}

.activity-table td:nth-child(2) {
    color: #475569;
    font-weight: 700;
    white-space: nowrap;
    width: 150px;
}

.activity-table tr:last-child td {
    border-bottom: 0;
}

.comment-item header {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-item header > div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.compact-label-row,
.draft-pin-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.compact-label-row {
    justify-content: space-between;
    margin-bottom: 8px;
}

.compact-label-row .form-label {
    margin-bottom: 0;
}

.draft-pin-controls {
    min-width: 0;
}

.mini-action {
    align-items: center;
    background: #fff;
    border: 1px solid #d5dee2;
    border-radius: 999px;
    color: #334155;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
    width: 32px;
}

.mini-action:hover,
.mini-action:focus,
.mini-action.active {
    background: var(--teal-soft);
    border-color: var(--teal);
    color: var(--teal-dark);
}

.pin-count {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 750;
    white-space: nowrap;
}

.comment-item p {
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.comment-item small {
    color: var(--muted);
}

.draft-comment {
    background: #fffdf7;
}

.comment-explanation {
    --comment-color: #137c72;
    --comment-soft: #e8f6f4;
    --comment-ink: #0f766e;
}

.comment-question {
    --comment-color: #2563eb;
    --comment-soft: #eaf1ff;
    --comment-ink: #1d4ed8;
}

.comment-creative {
    --comment-color: #c2410c;
    --comment-soft: #fff1e8;
    --comment-ink: #9a3412;
}

.comment-type {
    background: var(--comment-soft);
    border-radius: 999px;
    color: var(--comment-ink);
    display: inline-flex;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    padding: 5px 8px;
}

.type-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.type-select {
    background-color: var(--comment-soft);
    border-color: color-mix(in srgb, var(--comment-color) 42%, #d5dee2);
    color: var(--comment-ink);
    font-weight: 800;
    min-height: 34px;
    width: auto;
}

.type-select:focus {
    border-color: var(--comment-color);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--comment-color) 18%, transparent);
}

.type-option {
    background: #fff;
    border: 1px solid #d5dee2;
    border-radius: 999px;
    color: #475569;
    font-size: .8rem;
    font-weight: 800;
    min-height: 34px;
    padding: 6px 11px;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.type-option:hover,
.type-option:focus {
    border-color: var(--comment-color);
    color: var(--comment-ink);
}

.type-option.selected {
    background: var(--comment-color);
    border-color: var(--comment-color);
    color: #fff;
}

.attachment-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 10px;
}

.attachment-grid img {
    border: 1px solid var(--line);
    border-radius: 6px;
    height: 64px;
    object-fit: cover;
    width: 100%;
}

.attachment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.attachment-chip {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #334155;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
    width: 34px;
}

.attachment-chip:hover,
.attachment-chip:focus {
    background: var(--teal-soft);
    border-color: var(--teal);
    color: var(--teal-dark);
}

.attachment-modal-body {
    align-items: center;
    background: #0f172a;
    display: flex;
    justify-content: center;
    min-height: 60vh;
    padding: 16px;
}

.attachment-modal-body img {
    display: block;
    max-height: 78vh;
    max-width: 100%;
    object-fit: contain;
}

.reply-list {
    border-left: 3px solid var(--teal-soft);
    margin-top: 10px;
    padding-left: 10px;
}

.reply-item {
    background: #f7faf9;
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 8px;
}

.reply-item p {
    margin-bottom: 4px;
}

.reply-box {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.public-review-shell {
    min-height: 100vh;
}

.public-review-header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 60px;
    padding: 10px 18px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.public-review-header strong {
    display: block;
    font-size: 1.05rem;
}

.public-review-header span {
    color: var(--muted);
}

.public-actions {
    display: flex;
    gap: 8px;
}

.public-alert {
    border-radius: 0;
    margin: 0;
}

.public-workbench {
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr);
    min-height: calc(100vh - 60px);
}

.public-design,
.public-comments {
    border-radius: 0;
    border-width: 0 1px 0 0;
}

.public-comments {
    max-height: calc(100vh - 60px);
}

.hint-line {
    background: var(--blue-soft);
    border-radius: 6px;
    color: var(--blue);
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 9px 10px;
}

.design-hint {
    margin-bottom: 10px;
}

#blazor-error-ui {
    background: #fff4d8;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .16);
    display: none;
    left: 0;
    padding: .75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: .75rem;
}

@media (max-width: 980px) {
    .metrics-grid,
    .settings-grid,
    .workbench,
    .public-workbench,
    .detail-strip {
        grid-template-columns: 1fr;
    }

    .comments-pane,
    .public-comments {
        max-height: none;
        overflow: visible;
    }

    .comments-history {
        overflow: visible;
    }

    .design-tools-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .design-stage,
    .public-stage {
        height: 440px;
    }

    .public-review-header,
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-split-wrap {
        grid-template-columns: 1fr;
    }

    .login-page-shell {
        margin: -16px;
        min-height: calc(100vh - 112px);
        padding: 16px;
    }

    .login-art-panel {
        min-height: 280px;
        padding: 18px;
    }

    .login-art-panel img {
        max-height: 330px;
    }

    .login-form-panel {
        max-width: none;
        padding: 28px;
    }
}

@media (max-width: 560px) {
    .design-stage,
    .public-stage {
        height: 340px;
        padding: 10px;
    }

    .attachment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .toolbar {
        display: block;
    }

    .search-box {
        max-width: none;
    }
}
