:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #10233b;
    --muted: #65748a;
    --primary: #0f3b66;
    --primary-2: #155b8a;
    --accent: #0b8c7d;
    --danger: #b53b3b;
    --line: #dbe4ef;
    --header-start: #0f3b66;
    --header-end: #0b8c7d;
    --footer-bg: #08233d;
    --radius: 18px;
    --container-max: 1200px;
    --shadow: 0 20px 48px rgba(15, 59, 102, 0.10);
    --shadow-soft: 0 12px 28px rgba(15, 59, 102, 0.07);
    --shadow-tight: 0 8px 22px rgba(15, 59, 102, 0.10);
    --glass: rgba(255, 255, 255, 0.12);
    --glass-line: rgba(255, 255, 255, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(21, 91, 138, 0.10), transparent 30%),
        radial-gradient(circle at top right, rgba(11, 140, 125, 0.10), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, var(--bg) 36%, #eef4fb 100%);
    color: var(--text);
}

a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}
.site-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.15)),
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.4), transparent 18%),
        radial-gradient(circle at 80% 0%, rgba(255,255,255,0.35), transparent 16%);
    z-index: -1;
}

.site-header {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 22%),
        radial-gradient(circle at left center, rgba(255,255,255,0.10), transparent 24%),
        linear-gradient(135deg, var(--header-start) 0%, var(--header-end) 100%);
    box-shadow: var(--shadow);
}
.site-header::before,
.site-header::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(1px);
}
.site-header::before {
    width: 260px;
    height: 260px;
    top: -110px;
    right: -40px;
}
.site-header::after {
    width: 180px;
    height: 180px;
    bottom: -90px;
    left: -50px;
}

.topbar,
.hero-bar,
.container {
    width: min(var(--container-max), calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.brand-mini,
.hero-brand,
.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-mini {
    min-height: 24px;
}
.brand-mini strong {
    letter-spacing: 0.01em;
}
.brand-mini .muted {
    color: rgba(255,255,255,0.84);
}
.header-notice-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 540px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
}
.header-notice-text::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #9af5e1;
    box-shadow: 0 0 0 6px rgba(154,245,225,0.12);
    flex: 0 0 auto;
}

.hero-bar {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding: 38px 0 34px;
}
.hero-copy {
    flex: 1;
}
.hero-brand {
    align-items: center;
}
.hero-bar h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.hero-bar p {
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 16px;
    line-height: 1.7;
    max-width: 760px;
}
.brand-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    background: transparent;
    border: 0;
    padding: 0;
    flex: 0 0 auto;
    box-shadow: none;
}
.brand-logo.small {
    width: 42px;
    height: 42px;
    padding: 0;
}
.brand-logo.footer {
    background: transparent;
    border: 0;
}
.brand-logo.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.92);
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    min-width: 84px;
    min-height: 84px;
}

.main-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.main-nav a {
    color: #fff;
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(8px);
    font-weight: 600;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.main-nav a:hover {
    text-decoration: none;
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.28);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.container {
    flex: 1;
    padding: 34px 0 50px;
}

.card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,1) 100%);
    border-radius: calc(var(--radius) + 2px);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(219,228,239,0.85);
    padding: 24px;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.2));
    pointer-events: none;
}
.cards-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}
.grid.two-up {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
    margin-bottom: 24px;
}
.admin-grid { align-items: start; }

.intro-card,
.intro-card.soft {
    background:
        radial-gradient(circle at top right, rgba(21,91,138,0.07), transparent 25%),
        linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(247,251,255,0.96) 100%);
}
.intro-card.soft {
    background:
        radial-gradient(circle at top right, rgba(11,140,125,0.10), transparent 24%),
        linear-gradient(180deg, #fbfffd 0%, #f2fbf8 100%);
}
.intro-card h2,
.job-card h3,
.form-card h2,
.card h2,
.card h3 {
    letter-spacing: -0.02em;
}
.empty-state {
    text-align: center;
    padding: 54px 26px;
    background:
        radial-gradient(circle at top center, rgba(21,91,138,0.07), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.job-card {
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding-top: 26px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.job-card::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}
.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(15,59,102,0.12);
}
.job-card p {
    color: var(--muted);
    line-height: 1.7;
}
.job-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(11,140,125,.12);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.status-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: .85;
}
.status-badge.small { margin: 0; padding: 6px 10px; }
.meta-row {
    color: var(--muted);
    margin: 12px 0 20px;
    font-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(15,59,102,0.16);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 16px 28px rgba(15,59,102,0.18);
}
.btn-secondary {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
    color: var(--primary);
    border: 1px solid rgba(219,228,239,0.95);
    box-shadow: 0 8px 18px rgba(15,59,102,0.08);
}
.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #d45252 100%);
}
.button-stack,
.inline-actions,
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.inline-form { display: inline; }
.smart-form { display: grid; gap: 18px; }
.smart-form.narrow { max-width: 450px; }
.field-row { display: grid; gap: 8px; }
label {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="file"],
input[type="color"],
select,
textarea {
    width: 100%;
    border: 1px solid rgba(219,228,239,0.95);
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 15px;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.95);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .12s ease;
}
input[type="color"] { min-height: 50px; padding: 6px; }
textarea { min-height: 126px; resize: vertical; }
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(21,91,138,0.55);
    box-shadow: 0 0 0 4px rgba(21,91,138,0.12), var(--shadow-tight);
    background: #fff;
}
input[type="file"] {
    padding: 12px;
    background: #f9fbff;
}
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
}
.option-group {
    display: grid;
    gap: 10px;
}
.option-item,
.checkbox-row label {
    font-weight: 500;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(219,228,239,0.85);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}
.help-text,
.muted {
    color: var(--muted);
}
.site-header .muted,
.site-header .header-notice-text {
    color: rgba(255,255,255,.88);
}
.req { color: var(--danger); }

.form-card {
    max-width: 980px;
    margin: 0 auto;
}
.form-card > .content-block {
    margin-bottom: 8px;
}
.form-card .smart-form > .field-row {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(219,228,239,0.82);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.98) 100%);
    box-shadow: 0 10px 24px rgba(15,59,102,0.05);
}
.form-card .smart-form > .field-row:hover {
    border-color: rgba(15,59,102,0.12);
    box-shadow: 0 14px 28px rgba(15,59,102,0.08);
}
.content-block { margin-bottom: 18px; }
.formatted-block,
.note-box {
    background:
        radial-gradient(circle at top right, rgba(11,140,125,0.08), transparent 30%),
        linear-gradient(180deg, #f3fbff 0%, #eef9f7 100%);
    border: 1px solid #d7ebe6;
    padding: 16px 17px;
    border-radius: 16px;
    color: #1d3f57;
}
.note-box p:last-child,
.formatted-block p:last-child { margin-bottom: 0; }
.age-note { margin-top: 14px; }

.alert {
    padding: 15px 17px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-weight: 600;
    box-shadow: var(--shadow-tight);
}
.alert-success {
    background: linear-gradient(180deg, #effcf5 0%, #e4f7ec 100%);
    color: #14643f;
    border: 1px solid #c8efd8;
}
.alert-error {
    background: linear-gradient(180deg, #fff6f6 0%, #fff0f0 100%);
    color: #8a2727;
    border: 1px solid #f0c6c6;
}
.alert ul { margin-bottom: 0; }

.table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(219,228,239,0.85);
    background: #fff;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}
th,
td {
    padding: 15px 14px;
    border-bottom: 1px solid rgba(219,228,239,0.72);
    text-align: left;
    vertical-align: top;
}
tbody tr:nth-child(even) {
    background: rgba(248,251,255,0.75);
}
tbody tr:hover {
    background: rgba(240,247,255,0.95);
}
th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: #f8fbff;
    position: sticky;
    top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}
.stat-card {
    display: grid;
    gap: 10px;
    padding-top: 28px;
}
.stat-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.stat-card span {
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 12px;
}
.stat-card strong {
    font-size: clamp(32px, 5vw, 42px);
    line-height: 1;
}

.split-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.detail-card {
    padding: 18px;
    border: 1px solid rgba(219,228,239,0.85);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 24px rgba(15,59,102,0.05);
}
.clean-list { padding-left: 20px; margin: 0; line-height: 1.8; }

.site-footer {
    position: relative;
    width: 100%;
    color: #e3edf9;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.10), transparent 18%),
        linear-gradient(135deg, #071d34 0%, var(--footer-bg) 100%);
    padding: 36px 10px 24px;
    margin-top: auto;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    bottom: -120px;
    right: -40px;
}
.footer-grid {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr .9fr .9fr;
    gap: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.site-footer h3,
.site-footer h4 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.site-footer p {
    color: rgba(227,237,249,0.85);
    line-height: 1.75;
}
.footer-bottom {
    padding-top: 16px;
    color: #b8c8dc;
    font-size: 14px;
}

.login-card { max-width: 640px; margin: 0 auto; }
.logo-upload-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px dashed rgba(219,228,239,0.95);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}
.logo-upload-preview .brand-logo.placeholder {
    color: var(--primary);
    background: #eff5fb;
    border-color: rgba(219,228,239,0.95);
}

.compact-grid,
.compact-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.filter-panel {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(219,228,239,0.85);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,255,0.98) 100%);
    box-shadow: 0 12px 28px rgba(15,59,102,0.05);
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 250px));
    justify-content: start;
    gap: 14px;
    align-items: end;
}
.filter-panel .field-row { max-width: 250px; }
.filter-panel .field-row.search-query-row { max-width: 360px; }
.filter-actions-row { max-width: none !important; align-self: end; }
.export-strip { margin-bottom: 18px; }
.inline-status-form,
.inline-order-form { margin: 0; }
.mini-input {
    width: 90px !important;
    min-width: 90px;
    padding: 10px 12px;
}
.inline-actions-tight { gap: 8px; flex-wrap: nowrap; }
.status-select {
    min-width: 150px;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
}
.status-card {
    min-width: 320px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.status-select.status-pending {
    border-color: #d7c587;
    background: #fff8df;
    color: #725900;
}
.status-select.status-shortlisted {
    border-color: #95c8df;
    background: #edf8ff;
    color: #11547a;
}
.status-select.status-accepted {
    border-color: #99d4b0;
    background: #edf9f1;
    color: #18613a;
}
.status-select.status-rejected {
    border-color: #efb4b4;
    background: #fff0f0;
    color: #8f2b2b;
}

.form-section-block,
.detail-card-section {
    grid-column: 1 / -1;
    position: relative;
    margin: 10px 0 6px;
    padding: 20px 22px 16px;
    border-radius: 22px;
    border: 1px solid rgba(137, 191, 221, 0.35);
    background:
        radial-gradient(circle at top right, rgba(21,91,138,0.11), transparent 32%),
        linear-gradient(135deg, rgba(15,59,102,0.06) 0%, rgba(11,140,125,0.08) 100%);
    box-shadow: 0 14px 34px rgba(15,59,102,0.08);
    overflow: hidden;
}
.form-section-block::before,
.detail-card-section::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}
.form-section-block::after,
.detail-card-section::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255,255,255,0.28);
    top: -70px;
    right: -55px;
}
.section-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.section-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}
.form-section-block h3,
.detail-card-section h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 6px;
    font-size: clamp(20px, 2vw, 24px);
    letter-spacing: -0.03em;
}
.form-section-block p,
.detail-card-section p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 840px;
    line-height: 1.75;
    color: #33546e;
}
.detail-card-wide { grid-column: 1 / -1; }

.signature-pad {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(219,228,239,0.9);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.95);
}
.signature-canvas {
    width: 100%;
    height: 180px;
    display: block;
    border-radius: 14px;
    border: 1px dashed rgba(21,91,138,0.28);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.98)),
        repeating-linear-gradient(0deg, transparent 0 30px, rgba(21,91,138,0.06) 30px 31px);
    cursor: crosshair;
}
.signature-existing-wrap {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(219,228,239,0.85);
    background: #fbfdff;
}
.signature-existing-image {
    display: block;
    max-width: 100%;
    max-height: 150px;
    margin-top: 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(219,228,239,0.85);
}

.richtext-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.richtext-toolbar button {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(219,228,239,0.9);
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}
.richtext-toolbar button:hover {
    background: #f4f8fd;
}

@media (max-width: 1100px) {
    .filter-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}

@media (max-width: 900px) {
    .grid.two-up,
    .footer-grid,
    .stats-grid,
    .compact-grid,
    .compact-grid-2 {
        grid-template-columns: 1fr;
    }
    .hero-bar,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-brand {
        align-items: flex-start;
    }
    .header-notice-text {
        max-width: 100%;
        border-radius: 16px;
    }
    .filter-panel .field-row,
    .filter-panel .field-row.search-query-row { max-width: none; }
    .filter-grid { grid-template-columns: 1fr; }
    .status-card { min-width: 0; }
    .inline-actions-tight { flex-wrap: wrap; }
    .split-head { flex-direction: column; }
}

@media (max-width: 640px) {
    .topbar,
    .hero-bar,
    .container {
        width: min(var(--container-max), calc(100% - 20px));
    }
    .card,
    .detail-card,
    .form-section-block,
    .detail-card-section {
        padding: 18px;
        border-radius: 18px;
    }
    .form-card .smart-form > .field-row {
        padding: 14px;
    }
    .brand-logo {
        width: 66px;
        height: 66px;
        border-radius: 18px;
    }
    .hero-bar h1 {
        font-size: 30px;
    }
    .main-nav {
        width: 100%;
    }
    .main-nav a {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.fields-manager-layout {
    display: grid;
    gap: 18px;
}
.fields-table-card,
.fields-editor-card {
    width: 100%;
}
.fields-table-wrap {
    overflow-x: auto;
}
.fields-table {
    table-layout: auto;
}
.fields-table th,
.fields-table td {
    font-size: 14px;
    white-space: normal;
}
.fields-table th:nth-child(1),
.fields-table td:nth-child(1) { width: 150px; }
.fields-table th:nth-child(4),
.fields-table td:nth-child(4) { width: 120px; }
.fields-table th:nth-child(5),
.fields-table td:nth-child(5),
.fields-table th:nth-child(6),
.fields-table td:nth-child(6) { width: 84px; }
.fields-table th:nth-child(8),
.fields-table td:nth-child(8),
.fields-table th:nth-child(9),
.fields-table td:nth-child(9) { width: 100px; }
.fields-edit-grid {
    gap: 16px;
}
.wrap-anywhere,
.file-link,
.file-meta,
.file-name-preview {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.file-name-preview {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
}
.smart-form input[type="file"] {
    max-width: 100%;
}
.profile-photo-preview {
    display: block;
    width: 100%;
    max-width: 210px;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(219,228,239,0.85);
    background: #fff;
    margin-top: 10px;
}
.file-meta {
    display: block;
    margin-top: 8px;
}
@media (min-width: 1100px) {
    .fields-table-wrap { overflow-x: visible; }
}
@media (max-width: 900px) {
    .fields-table th,
    .fields-table td { font-size: 13px; }
}
