:root {
    --bg: #f9f4eb;
    --bg-soft: #fffaf3;
    --panel: rgba(255, 252, 247, 0.96);
    --ink: #5c4532;
    --subtle: #8e7157;
    --line: #eadbc8;
    --accent: #d98e5f;
    --accent-strong: #c56d35;
    --accent-soft: #fff0e2;
    --warn: #b5533d;
    --ok: #5d8a5c;
    --shadow: 0 18px 40px rgba(128, 93, 59, 0.10);
    --admin-bg: #f7f8fa;
    --admin-panel: #ffffff;
    --admin-border: #e6e8ec;
    --admin-ink: #2f3338;
    --admin-muted: #68707a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "PingFang SC", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(217, 142, 95, 0.10), transparent 30%),
        linear-gradient(180deg, #fff9f3 0%, #f7efe5 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.20), transparent 35%),
        radial-gradient(circle at 88% 8%, rgba(255, 236, 219, 0.45), transparent 20%);
}

a {
    color: var(--accent-strong);
    text-decoration: none;
}

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

input,
textarea,
button {
    font: inherit;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
}

textarea {
    resize: vertical;
}

button,
.ghost,
.primary,
.danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 11px 20px;
    border: none;
    cursor: pointer;
}

.primary {
    background: linear-gradient(135deg, var(--accent) 0%, #e7aa7d 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(197, 109, 53, 0.20);
}

.ghost {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
}

.danger {
    background: #b5533d;
    color: #fff;
}

.small {
    padding: 8px 14px;
}

.wide-btn {
    width: 100%;
}

.bg-grid {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card,
.panel {
    background: var(--panel);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(234, 219, 200, 0.95);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.login-card {
    width: min(460px, 100%);
    padding: 32px;
}

.brand {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 10px;
}

.muted {
    color: var(--subtle);
}

.stack-gap,
.content-stack,
.project-card-list,
.project-wall {
    display: grid;
    gap: 16px;
}

.page-shell {
    padding: 20px;
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.topbar,
.hero,
.project-entry-head,
.record-head,
.canvas-head,
.split-head,
.status-strip {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.warm-topbar,
.warm-hero {
    margin-bottom: 22px;
}

.hero {
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 233, 214, 0.95), rgba(255, 246, 235, 0.92));
    border: 1px solid rgba(234, 219, 200, 0.95);
    box-shadow: 0 20px 48px rgba(128, 93, 59, 0.08);
}

.hero-side-card {
    width: min(260px, 100%);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 16px;
}

.mini-qr {
    width: 100%;
    border-radius: 18px;
    margin: 10px 0;
    background: #fff;
    padding: 12px;
}

.mini-copy {
    margin: 0;
}

.poster-preview img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 6px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
}

.simple-admin-stack {
    display: grid;
    gap: 20px;
}

.starter-panel,
.wizard-panel,
.more-panel,
.project-picker-panel,
.current-project-panel {
    padding: 20px;
}

.admin-workbench {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 16px;
    align-items: start;
}

.admin-dashboard {
    max-width: 1180px;
    padding: 24px;
    background: var(--admin-bg);
    color: var(--admin-ink);
}

.admin-dashboard::before {
    display: none;
}

.admin-dashboard .admin-header {
    align-items: center;
    margin-bottom: 18px;
    padding: 0 2px;
}

.admin-dashboard .brand,
.admin-dashboard .section-kicker {
    color: #b65f2a;
}

.admin-dashboard .topbar h1 {
    margin-bottom: 8px;
    font-size: 34px;
    line-height: 1.12;
}

.admin-dashboard .muted,
.admin-dashboard .action-tile small,
.admin-dashboard .project-card-arrow {
    color: var(--admin-muted);
}

.admin-dashboard .panel {
    background: var(--admin-panel);
    border-color: var(--admin-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(36, 42, 50, 0.06);
}

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

.admin-side-panel,
.admin-content-panel {
    min-width: 0;
}

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

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

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

.admin-dashboard .create-project-drawer {
    padding-top: 14px;
    border-top: 1px solid var(--admin-border);
}

.create-project-drawer summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--admin-ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.create-project-drawer summary::-webkit-details-marker {
    display: none;
}

.create-project-drawer summary::after {
    content: "+";
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: #b65f2a;
}

.create-project-drawer[open] summary::after {
    content: "-";
}

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

.action-tile {
    display: grid;
    gap: 8px;
    color: inherit;
    min-height: 126px;
    align-content: start;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.action-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(128, 93, 59, 0.08);
    border-color: var(--accent);
}

.action-tile strong {
    font-size: 19px;
}

.action-tile small {
    color: var(--subtle);
    line-height: 1.55;
}

.primary-tile {
    background: #fff8f3 !important;
    border-color: rgba(198, 102, 48, 0.28) !important;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.section-kicker {
    margin-bottom: 10px;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-kicker.light {
    color: #b66b3b;
}

.section-kicker.small {
    font-size: 12px;
    margin-bottom: 6px;
}

.starter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.starter-upload-box {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 16px;
    align-items: stretch;
}

.starter-tips,
.inline-tip {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.starter-tips {
    padding: 16px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.starter-tips p {
    margin: 0;
    color: var(--subtle);
}

.inline-tip {
    padding: 12px 14px;
    color: var(--accent-strong);
    background: rgba(255, 240, 226, 0.78);
}

.simple-project-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-height: 430px;
    overflow: auto;
    padding-right: 2px;
}

.section-note {
    margin-top: -4px;
    margin-bottom: 14px;
}

.simple-project-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.simple-project-card:hover,
.project-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(128, 93, 59, 0.08);
}

.simple-project-card.active {
    border-color: rgba(198, 102, 48, 0.55);
    background: #fff8f3;
}

.project-card-main,
.project-card-side,
.project-card-title-row,
.form-action-bar {
    display: flex;
}

.project-card-main {
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}

.project-card-title-row {
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.project-card-title-row strong {
    font-size: 16px;
}

.project-card-meta {
    margin: 0;
    font-size: 13px;
    word-break: break-all;
}

.project-card-side {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.project-card-selected {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(217, 142, 95, 0.14);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 700;
}

.project-card-arrow {
    color: var(--subtle);
    font-size: 13px;
}

.mini-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--subtle);
}

.mini-stats span {
    padding: 8px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    background: #f8fafc;
}

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

.current-project-panel h2 {
    margin-bottom: 0;
    font-size: 28px;
}

.data-toolbar,
.more-settings-grid {
    display: grid;
    gap: 16px;
}

.data-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.more-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.publish-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: stretch;
}

.simple-share-card,
.publish-form {
    display: grid;
    gap: 10px;
}

.simple-share-card {
    align-content: start;
    height: 100%;
}

.form-section-box {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.compact-table-wrap {
    margin-top: 8px;
}

.form-action-bar {
    justify-content: flex-end;
    padding-top: 0;
    margin-top: -2px;
}

.share-link-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.share-block {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.qr-only-card {
    width: 100%;
    justify-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fffdf9;
}

.qr-only-card img {
    width: min(220px, 100%);
}

.share-actions-grid,
.more-grid {
    display: grid;
    gap: 10px;
}

.compact-preview {
    max-width: 300px;
}

.qr-preview {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.query-hero-note {
    display: flex;
    align-items: center;
}

.simple-query-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.simple-query-shell {
    width: min(560px, 100%);
}

.results-shell {
    width: min(860px, 100%);
}

.simple-query-card {
    display: grid;
    gap: 18px;
    padding: 28px;
}

.simple-query-head {
    display: grid;
    gap: 10px;
    text-align: center;
}

.simple-query-head h1,
.result-toolbar,
.result-record-card {
    margin: 0;
}

.simple-query-form,
.result-record-stack,
.result-kv-list {
    display: grid;
    gap: 14px;
}

.result-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.inner-panel {
    padding: 18px;
}

.result-count,
.filter-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 700;
}

.result-count {
    padding: 8px 12px;
}

.active-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 7px 11px;
}

.result-record-card {
    gap: 16px;
}

.result-kv-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.result-kv-row:last-child {
    border-bottom: none;
}

.result-kv-key {
    color: var(--subtle);
}

.result-kv-value {
    white-space: pre-wrap;
    word-break: break-word;
}

.more-panel summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.more-panel-inner summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.more-panel-inner summary::-webkit-details-marker {
    display: none;
}

.more-panel-inner summary::after {
    content: "+";
    font-size: 22px;
    line-height: 1;
    color: var(--accent-strong);
}

.more-panel-inner[open] summary::after {
    content: "-";
}

.more-panel summary::-webkit-details-marker {
    display: none;
}

.more-panel summary::after {
    content: "+";
    font-size: 22px;
    line-height: 1;
    color: var(--accent-strong);
}

.more-panel[open] summary::after {
    content: "-";
}

.top-gap {
    margin-top: 14px;
}

.sidebar-panel,
.content-stack,
.compact-form,
.project-settings-grid,
.stats-row,
.record-list,
.edit-grid,
.search-grid,
.mobile-one-column {
    display: grid;
    gap: 12px;
}

.project-settings-grid {
    grid-template-columns: 1.3fr 0.9fr;
}

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

.mobile-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-grid,
.edit-grid,
.project-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
    padding: 22px;
}

.wizard-panel,
.starter-panel,
.more-panel {
    position: relative;
    overflow: hidden;
}

.wizard-panel::before,
.starter-panel::before,
.more-panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--accent) 0%, #efc39d 100%);
}

.stat-card,
.field-card,
.record-card,
.project-entry,
.project-mini-card,
.share-card,
.hero-side-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf9 0%, #fff8f1 100%);
}

.stat-card,
.field-card,
.record-card,
.project-entry,
.share-card {
    padding: 18px;
}

.record-card,
.project-entry,
.share-card,
.hero-side-card,
.simple-project-card {
    box-shadow: 0 10px 24px rgba(128, 93, 59, 0.05);
}

.compact {
    padding: 16px;
}

.project-mini-card {
    padding: 14px 16px;
    color: inherit;
}

.project-mini-card.active {
    border-color: var(--accent);
    background: linear-gradient(180deg, #fff7ee 0%, #fff0e2 100%);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 12px;
}

.status-pill.soft {
    background: #f7eadc;
}

.check-line {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

.review-meta-grid,
.review-asset-links,
.review-board-summary {
    display: grid;
    gap: 12px;
}

.review-meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 14px;
}

.meta-chip {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.preline-cell {
    white-space: pre-wrap;
    word-break: break-word;
}

.changed-row {
    background: rgba(255, 240, 226, 0.35);
}

.review-asset-links {
    justify-items: start;
}

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

.modal-open {
    overflow: hidden;
}

.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
}

.preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(36, 26, 18, 0.48);
}

.preview-dialog {
    position: relative;
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: 16px auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fffdf9;
    box-shadow: 0 24px 60px rgba(36, 26, 18, 0.24);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 248, 238, 0.96);
}

.preview-body {
    min-height: 360px;
    max-height: calc(100vh - 110px);
    overflow: auto;
    padding: 12px;
    background: #fff;
}

.preview-image,
.preview-frame {
    width: 100%;
    border: none;
    border-radius: 16px;
    background: #fff;
}

.preview-frame {
    min-height: 70vh;
}

.review-board-summary {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.review-work-section {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
}

.review-work-section h3 {
    margin: 0 0 10px;
}

.pending-chip {
    background: rgba(255, 240, 226, 0.82);
    border-color: rgba(217, 142, 95, 0.34);
}

.pending-review-row {
    background: rgba(255, 248, 238, 0.88);
}

.review-work-section table,
.form-section-box table {
    table-layout: fixed;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--subtle);
    font-weight: 600;
    white-space: nowrap;
}

th:nth-last-child(-n + 4),
td:nth-last-child(-n + 4) {
    text-align: center;
}

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(128, 93, 59, 0.05);
}

.alert.success {
    color: var(--ok);
    background: rgba(93, 138, 92, 0.10);
    border: 1px solid rgba(93, 138, 92, 0.18);
}

.alert.error {
    color: var(--warn);
    background: rgba(181, 83, 61, 0.10);
    border: 1px solid rgba(181, 83, 61, 0.18);
}

.kv-grid {
    display: grid;
    gap: 10px;
}

.kv-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
}

.kv-key {
    color: var(--subtle);
}

.record-head {
    margin-bottom: 12px;
}

.field-flags {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.field-flags span {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 12px;
}

.field-proof-zone {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    display: grid;
    gap: 14px;
}

.proof-tip {
    margin: 0;
}

.signature-block {
    display: grid;
    gap: 10px;
}

.signature-pad {
    width: 100%;
    height: 220px;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 18px;
    touch-action: none;
}

.project-entry h2,
.share-card h3,
.panel h2,
.hero h1,
.topbar h1,
.empty-shell h1 {
    margin-top: 0;
}

.project-entry {
    min-height: 220px;
}

.project-entry-hint {
    color: var(--accent-strong);
    font-size: 14px;
    margin: 0 0 14px;
}

.empty-shell {
    max-width: 560px;
    margin: 12vh auto 0;
    text-align: center;
}

.center {
    text-align: center;
}

@media (max-width: 1100px) {
    .admin-layout,
    .admin-workbench,
    .project-action-grid,
    .more-settings-grid,
    .starter-upload-box,
    .publish-grid,
    .project-settings-grid,
    .stats-row,
    .mobile-two,
    .search-grid,
    .edit-grid,
    .project-wall {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 10px;
    }

    .panel,
    .hero,
    .login-card {
        padding: 16px;
        border-radius: 18px;
    }

    .topbar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }

    .topbar,
    .hero,
    .record-head,
    .canvas-head,
    .project-entry-head,
    .split-head,
    .status-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar h1,
    .hero h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .panel h2 {
        font-size: 20px;
        line-height: 1.28;
    }

    .kv-row {
        grid-template-columns: 1fr;
    }

    .result-kv-row {
        grid-template-columns: 1fr;
    }

    .hero-side-card {
        width: 100%;
    }

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

    .simple-project-card {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 16px;
    }

    .project-card-side,
    .form-action-bar {
        align-items: stretch;
    }

    .project-card-side {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .mini-stats {
        flex-direction: column;
        gap: 8px;
    }

    .current-project-panel {
        display: grid;
    }

    .project-action-grid {
        gap: 10px;
    }

    .action-tile {
        min-height: 0;
        padding: 18px;
        border-radius: 18px;
    }

    .action-tile strong {
        font-size: 18px;
    }

    .data-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

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

    .signature-pad {
        height: 180px;
    }

    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="file"],
    textarea {
        font-size: 16px;
    }

    .table-wrap {
        overflow: visible;
    }

    table {
        min-width: 0;
    }

    table thead {
        display: none;
    }

    table,
    tbody,
    tr,
    td {
        display: block;
        width: 100%;
    }

    tr {
        margin-bottom: 12px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.72);
    }

    td {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        padding: 9px 0;
        border-bottom: 1px dashed var(--line);
        text-align: left !important;
    }

    td:last-child {
        border-bottom: none;
    }

    td::before {
        content: attr(data-label);
        color: var(--subtle);
        font-size: 13px;
        font-weight: 600;
    }

    td:not([data-label])::before {
        content: "";
    }

    td[colspan] {
        display: block;
        text-align: center !important;
    }

    td[colspan]::before {
        content: none;
    }

    td input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }
}
