:root {
  --ink: #101b2d;
  --muted: #64748b;
  --line: #dbe3ec;
  --soft: #f5f7fa;
  --paper: #ffffff;
  --navy: #12335b;
  --teal: #147d79;
  --green: #157347;
  --danger: #ad2e24;
  --radius: 14px;
  --frame: min(1140px, calc(100% - 40px));
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--navy); text-underline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.18; }
h1 { font-size: clamp(2rem, 4vw, 4.2rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.45rem, 2vw, 2rem); }
h3 { font-size: 1.05rem; }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 24px 0; padding: 18px; }
legend { font-weight: 750; padding: 0 7px; }
label { color: #263549; display: grid; font-weight: 650; gap: 7px; }
input, select, textarea { background: #fff; border: 1px solid #bfcbd8; border-radius: 8px; color: var(--ink); min-height: 44px; padding: 10px 12px; width: 100%; }
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #5f9dde; outline-offset: 2px; }
small { color: var(--danger); font-weight: 500; min-height: 1.2em; }
.site-frame { margin-inline: auto; max-width: var(--frame); }
.site-header { background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { align-items: center; display: flex; justify-content: space-between; min-height: 72px; }
.brand { align-items: center; color: var(--ink); display: inline-flex; font-size: .98rem; gap: 10px; text-decoration: none; }
.brand strong, .brand small { display: block; line-height: 1.2; }.brand small { color: var(--muted); font-size: .72rem; font-weight: 600; margin-top: 2px; }
.brand-mark { align-items: center; background: var(--navy); border-radius: 8px; color: white; display: inline-flex; font-size: .92rem; font-weight: 800; height: 36px; justify-content: center; letter-spacing: -.06em; width: 36px; }
.primary-nav { display: flex; flex-wrap: wrap; gap: 24px; }.primary-nav a { color: #31425b; font-size: .9rem; font-weight: 700; text-decoration: none; }.primary-nav a:hover { color: var(--teal); }
.site-footer { background: var(--ink); color: #d7e1ee; margin-top: 84px; padding: 30px 0; }.footer-inner { align-items: center; display: flex; font-size: .85rem; justify-content: space-between; }.footer-inner strong { color: white; }.footer-inner p { margin: 4px 0 0; }
.skip-link { background: #fff; border: 2px solid var(--navy); color: var(--ink); left: 16px; padding: 8px 12px; position: fixed; top: -60px; z-index: 20; }.skip-link:focus { top: 12px; }
.search-hero { background: #e9f1f6; border-bottom: 1px solid var(--line); padding: clamp(48px, 8vw, 92px) 0 clamp(72px, 10vw, 110px); }.hero-grid { align-items: end; display: grid; gap: 48px; grid-template-columns: 1.7fr .7fr; }.eyebrow { color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .1em; margin-bottom: 12px; text-transform: uppercase; }.hero-copy { color: #3f5065; font-size: 1.1rem; max-width: 620px; }.hero-stat { border-left: 3px solid var(--teal); color: #4a5b6b; padding: 14px 0 14px 22px; }.stat-number { color: var(--navy); display: block; font-size: 2rem; font-weight: 850; letter-spacing: -.05em; }
.search-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(22, 44, 68, .08); margin-top: -44px; padding: 24px; position: relative; }.search-form { display: flex; gap: 12px; }.search-form input { font-size: 1.05rem; min-height: 52px; }.button { align-items: center; border: 1px solid transparent; border-radius: 8px; display: inline-flex; font-size: .92rem; font-weight: 750; justify-content: center; min-height: 42px; padding: 8px 16px; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }.button-dark { background: var(--navy); color: #fff; }.button-dark:hover { background: #0b2747; }.button-outline { background: #fff; border-color: #9eafc1; color: #193554; }.button-outline:hover { background: #f3f7fa; }.button-danger { background: #fff; border-color: #d9aaa6; color: var(--danger); }.button-danger:hover { background: #fff2f1; }
.filters { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 18px; }.filters label { color: var(--muted); font-size: .75rem; gap: 4px; }.filters select { font-size: .85rem; min-height: 39px; padding: 7px; }
.results-section, .detail-page, .registration-page, .admin-page { padding-top: 56px; }.section-heading { align-items: end; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 24px; }.section-heading h2 { margin-bottom: 0; }.result-summary, .muted { color: var(--muted); }.expert-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }.expert-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 15px; min-height: 260px; padding: 20px; }.expert-card:hover { border-color: #96b0c9; box-shadow: 0 6px 20px rgba(22, 44, 68, .08); }.avatar { align-items: center; background: #dce9ed; border-radius: 50%; color: var(--navy); display: flex; flex: 0 0 auto; font-size: 1.25rem; font-weight: 850; height: 46px; justify-content: center; width: 46px; }.avatar-large { font-size: 2rem; height: 78px; width: 78px; }.expert-card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; }.expert-card-link { color: var(--ink); text-decoration: none; }.expert-card-link:hover h3 { color: var(--teal); text-decoration: underline; }.expert-card h3 { margin-bottom: 4px; }.expert-position, .expert-faculty { color: var(--muted); font-size: .84rem; margin-bottom: 4px; }.expert-bio { color: #415164; font-size: .88rem; margin: 14px 0; }.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }.tag { background: #edf3f7; border-radius: 100px; color: #335169; font-size: .73rem; font-weight: 700; padding: 3px 9px; }.availability { color: #617185; font-size: .77rem; font-weight: 800; margin-top: auto; }.availability::before { background: #94a3b8; border-radius: 50%; content: ""; display: inline-block; height: 7px; margin-right: 6px; width: 7px; }.availability.available { color: var(--green); }.availability.available::before { background: #36a269; }.pagination { align-items: center; display: flex; gap: 14px; justify-content: center; margin-top: 30px; }.page-label { color: var(--muted); font-weight: 650; }.empty-state { background: var(--soft); border: 1px dashed #bdc9d5; border-radius: 12px; color: var(--muted); grid-column: 1 / -1; padding: 34px; text-align: center; }.empty-state h3 { color: var(--ink); }.notice { border-radius: 9px; margin: 0 0 18px; padding: 12px 14px; }.notice-error { background: #fff2f1; border: 1px solid #ecbab6; color: #8a261d; }
.back-link { display: inline-block; font-weight: 750; margin-bottom: 22px; }.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: auto; max-width: 860px; padding: clamp(24px, 5vw, 48px); }.profile-card section { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }.profile-card section h2 { font-size: 1.1rem; }.profile-heading { align-items: center; display: flex; gap: 20px; }.profile-heading h1 { font-size: clamp(1.8rem, 4vw, 3.2rem); margin-bottom: 6px; }.profile-position { color: var(--muted); margin: 0; }.profile-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 24px; }.profile-meta .availability { margin: 0; }.contact-list, .resource-links { display: flex; flex-direction: column; gap: 8px; }.resource-links { flex-direction: row; flex-wrap: wrap; }.resource-links a { background: #eef3f6; border-radius: 7px; font-size: .86rem; font-weight: 750; padding: 7px 10px; text-decoration: none; }
.split-intro { align-items: end; display: grid; gap: 40px; grid-template-columns: 1.4fr .7fr; margin-bottom: 38px; }.split-intro h1 { margin-bottom: 0; }.split-intro > p { color: var(--muted); font-size: 1.05rem; }.form-card, .login-card, .success-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 38px); }.registration-page > .form-card { max-width: 900px; }.form-grid { display: grid; gap: 18px; }.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }.form-help { color: var(--muted); font-size: .86rem; margin: 0 0 10px; }.tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }.tag-choice { background: #fff; border: 1px solid #b9c8d5; border-radius: 999px; color: #304961; font-size: .84rem; font-weight: 700; padding: 7px 11px; }.tag-choice:hover, .tag-choice.is-selected { background: var(--navy); border-color: var(--navy); color: #fff; }.check-row { display: flex; flex-wrap: wrap; gap: 20px; }.check-row label, .check-consent { align-items: center; display: flex; font-size: .92rem; font-weight: 650; gap: 8px; }.check-row input, .check-consent input { min-height: auto; width: auto; }.counter { color: var(--muted); display: block; font-size: .78rem; text-align: right; }.form-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; margin-top: 30px; }.form-actions p { color: var(--muted); font-size: .78rem; margin: 0; }.honeypot { height: 0; overflow: hidden; position: absolute; width: 0; }.success-card { border-color: #93c7aa; margin-bottom: 30px; max-width: 700px; }.success-card h2 { color: var(--green); }
.admin-page { min-height: 60vh; }.login-card { margin: 6vh auto; max-width: 480px; }.login-card form { display: grid; gap: 16px; margin-top: 25px; }.admin-top { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 30px; }.admin-top h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 7px; }.admin-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 22px; margin-bottom: 25px; overflow-x: auto; }.admin-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 800; padding: 10px 2px; white-space: nowrap; }.admin-tabs button.is-active { border-color: var(--teal); color: var(--ink); }.admin-panel { padding-bottom: 20px; }.request-list { display: grid; gap: 12px; }.request-card { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 11px; display: flex; gap: 20px; justify-content: space-between; padding: 18px; }.request-card h3 { margin-bottom: 3px; }.request-card p { margin-bottom: 4px; }.button-stack { display: flex; flex-wrap: wrap; gap: 8px; }.admin-editor { display: grid; gap: 20px; grid-template-columns: minmax(190px, .45fr) minmax(0, 1fr); }.admin-list { background: var(--soft); border: 1px solid var(--line); border-radius: 11px; max-height: 740px; overflow-y: auto; padding: 8px; }.admin-expert-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); color: #344b62; font-size: .84rem; padding: 11px 8px; text-align: left; width: 100%; }.admin-expert-item:hover { background: #e6f0f3; color: var(--ink); }.taxonomy-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }.taxonomy-grid .form-card { padding: 20px; }.taxonomy-grid form { display: grid; gap: 9px; grid-template-columns: 1fr; }.taxonomy-list { margin-top: 18px; max-height: 340px; overflow: auto; }.taxonomy-item { align-items: center; border-top: 1px solid var(--line); display: flex; font-size: .86rem; gap: 10px; justify-content: space-between; padding: 10px 0; }.taxonomy-item.is-inactive { color: var(--muted); opacity: .7; }.mini-button { background: #fff; border: 1px solid #b5c5d3; border-radius: 6px; color: #314d6a; font-size: .72rem; font-weight: 700; padding: 4px 7px; white-space: nowrap; }.audit-list { border: 1px solid var(--line); border-radius: 10px; max-height: 600px; overflow: auto; }.audit-item { border-bottom: 1px solid var(--line); color: #46576a; font-family: ui-monospace, Consolas, monospace; font-size: .75rem; padding: 10px 12px; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); }
@media (max-width: 900px) { .filters { grid-template-columns: repeat(3, 1fr); }.expert-grid { grid-template-columns: repeat(2, 1fr); }.taxonomy-grid { grid-template-columns: 1fr; }.admin-editor { grid-template-columns: 1fr; }.admin-list { max-height: 220px; }.hero-grid, .split-intro { grid-template-columns: 1fr; }.hero-stat { max-width: 330px; }.header-inner { padding-inline: 20px; }.site-frame { width: calc(100% - 40px); } }
@media (max-width: 600px) { .primary-nav { gap: 11px; }.primary-nav a { font-size: .78rem; }.brand small { display: none; }.search-form { flex-direction: column; }.filters, .two-columns, .expert-grid { grid-template-columns: 1fr; }.search-panel { padding: 16px; }.results-section, .detail-page, .registration-page, .admin-page { padding-top: 36px; }.section-heading, .admin-top, .request-card, .footer-inner { align-items: flex-start; flex-direction: column; }.expert-card { min-height: 0; }.form-actions { align-items: flex-start; flex-direction: column; }.button { width: auto; }.site-footer { margin-top: 55px; } }

/* V3.1 visual and responsive refinements: no build step or external assets. */
:root {
  --ink: #10243b;
  --muted: #63758a;
  --line: #d7e1ea;
  --soft: #f4f8fb;
  --navy: #123b63;
  --teal: #0e7c76;
  --radius: 16px;
  --frame: min(1160px, calc(100% - 32px));
}

body { background: #f8fafc; }
.site-frame { width: calc(100% - 32px); }
.button { min-height: 44px; }
.site-header { background: rgba(255, 255, 255, .98); box-shadow: 0 1px 0 rgba(16, 36, 59, .04); }
.header-inner { gap: 24px; min-height: 76px; }
.brand { gap: 12px; }
.brand-mark { background: var(--navy); border-radius: 12px; font-size: .72rem; height: 42px; letter-spacing: -.08em; width: 42px; }
.brand strong { font-size: 1rem; }
.brand small { font-size: .74rem; }
.primary-nav { align-items: center; gap: 8px; }
.primary-nav a { align-items: center; border-radius: 9px; display: inline-flex; min-height: 44px; padding: 8px 12px; }
.primary-nav a:hover, .primary-nav a.is-current { background: #edf5f5; color: var(--teal); }
.mobile-nav { display: none; }

.search-hero { background: #eaf3f8; padding: clamp(52px, 7vw, 82px) 0 clamp(58px, 8vw, 88px); }
.hero-grid { grid-template-columns: 1fr; }
.hero-copy { font-size: 1.05rem; line-height: 1.75; }
.quick-links { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.quick-links > span { color: var(--muted); font-size: .85rem; font-weight: 750; margin-right: 4px; }
.quick-links a { background: #fff; border: 1px solid #bfd4dc; border-radius: 999px; color: #1b5362; font-size: .86rem; font-weight: 750; padding: 8px 13px; text-decoration: none; }
.quick-links a:hover, .quick-links a:focus-visible { background: #e4f2f1; border-color: var(--teal); color: #0b5b57; }
.search-panel { border-radius: 18px; margin-top: -34px; padding: 20px; }
.search-form { gap: 10px; }
.search-form input { min-height: 54px; }
.search-form .button { min-width: 92px; }
.filter-toolbar { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-top: 14px; }
.filter-toolbar p { font-size: .82rem; margin: 0; }
.button-quiet { background: transparent; border-color: transparent; color: var(--navy); padding-inline: 8px; }
.button-quiet:hover { background: #edf3f7; }
.filter-drawer { margin-top: 8px; }
.filter-drawer > summary { align-items: center; color: var(--navy); cursor: pointer; display: flex; font-size: .86rem; font-weight: 800; gap: 8px; justify-content: space-between; list-style: none; padding: 10px 0; }
.filter-drawer > summary::-webkit-details-marker { display: none; }
.filter-drawer > summary::after { border-bottom: 2px solid currentColor; border-right: 2px solid currentColor; content: ""; height: 7px; transform: rotate(45deg) translateY(-2px); transition: transform .16s ease; width: 7px; }
.filter-drawer[open] > summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.filter-count { color: var(--teal); }
.filters { margin-top: 14px; }
.results-section, .detail-page, .registration-page, .admin-page { padding-top: 48px; }
.section-heading { margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.expert-grid { align-items: stretch; gap: 16px; }
.expert-card { min-height: 230px; padding: 19px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.expert-card:hover, .expert-card:focus-visible { border-color: #8eb7c0; box-shadow: 0 10px 24px rgba(22, 44, 68, .1); transform: translateY(-2px); }
.expert-card-note { color: var(--muted); font-size: .78rem; margin: 13px 0 0; }
.expert-match { background: #f5faf9; border-left: 3px solid var(--teal); color: #31515a; font-size: .8rem; line-height: 1.55; margin: 12px 0 0; padding: 7px 9px; }
.expert-match-label { color: var(--teal); font-weight: 800; }
.search-hit { background: #d6f1e7; border-radius: 3px; color: inherit; padding: 0 2px; }
.expert-card .availability { margin-top: auto; padding-top: 14px; }
.empty-state { padding: 42px 26px; }
.pagination { margin-bottom: 8px; }

.profile-card { box-shadow: 0 12px 32px rgba(22, 44, 68, .06); }
.profile-meta { align-items: center; }
.profile-time { color: var(--muted); font-size: .84rem; }
.contact-list { align-items: flex-start; }
.contact-fallback { margin-top: 5px; }
.resource-links a { color: var(--navy); }

.split-intro { margin-bottom: 28px; }
.split-intro > p { line-height: 1.75; }
.form-section { background: #fbfdff; margin: 0 0 20px; padding: 20px; }
.form-section legend { color: var(--navy); }
.form-section:last-of-type { margin-bottom: 0; }
.form-help { margin-top: 2px; }
.check-consent { background: #f4f8fb; border: 1px solid var(--line); border-radius: 10px; margin-top: 20px; padding: 12px 14px; }
.form-actions { margin-top: 24px; }
.form-actions p { line-height: 1.5; }

.login-card { box-shadow: 0 12px 32px rgba(22, 44, 68, .06); }
.admin-tabs { gap: 8px; }
.admin-tabs button { border-radius: 8px 8px 0 0; min-height: 44px; padding-inline: 12px; }
.admin-tabs button.is-active { background: #edf5f5; }
.admin-list { background: #f8fbfd; }

@media (min-width: 901px) {
  .filter-drawer:not([open]) .filters { display: grid; }
  .filter-drawer > summary { display: none; }
}

@media (max-width: 900px) {
  .site-frame { width: calc(100% - 40px); }
  .hero-grid, .split-intro { gap: 24px; }
  .expert-grid { gap: 14px; }
}

@media (max-width: 600px) {
  .site-frame { width: calc(100% - 32px); }
  .header-inner { min-height: 68px; padding-inline: 0; }
  .brand-mark { height: 40px; width: 40px; }
  .brand strong { font-size: .94rem; }
  .primary-nav { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav > summary { align-items: center; background: #f3f7fa; border: 1px solid #c8d5df; border-radius: 9px; color: var(--navy); cursor: pointer; display: flex; font-size: .8rem; font-weight: 800; justify-content: center; list-style: none; min-height: 44px; min-width: 60px; padding: 8px 11px; }
  .mobile-nav > summary::-webkit-details-marker { display: none; }
  .mobile-nav > summary::before { border-bottom: 2px solid currentColor; border-top: 2px solid currentColor; content: ""; height: 11px; margin-right: 7px; width: 15px; }
  .mobile-nav > summary::after { border-bottom: 2px solid currentColor; content: ""; height: 2px; margin-left: -22px; margin-right: 7px; transform: translateY(5px); width: 15px; }
  .mobile-nav[open] > summary { background: #e5f1f0; border-color: #89beb9; }
  .mobile-nav nav { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgba(22, 44, 68, .14); display: grid; gap: 4px; min-width: 206px; padding: 8px; position: absolute; right: 0; top: calc(100% + 8px); z-index: 7; }
  .mobile-nav nav a { border-radius: 8px; color: var(--ink); font-size: .88rem; font-weight: 750; min-height: 44px; padding: 10px 12px; text-decoration: none; }
  .mobile-nav nav a:hover, .mobile-nav nav a.is-current { background: #edf5f5; color: var(--teal); }
  .search-hero { padding: 42px 0 62px; }
  h1 { font-size: clamp(2rem, 9vw, 2.65rem); }
  .hero-copy { font-size: .98rem; }
  .quick-links { flex-wrap: nowrap; margin-inline: -2px; max-width: calc(100vw - 32px); overflow-x: auto; padding-bottom: 3px; }
  .quick-links > span { flex: 0 0 auto; }
  .quick-links a { flex: 0 0 auto; }
  .search-panel { margin-top: -26px; padding: 14px; }
  .filter-toolbar { align-items: flex-start; gap: 8px; }
  .filter-toolbar .button { font-size: .78rem; min-height: 38px; }
  .filters { gap: 10px; }
  .results-section, .detail-page, .registration-page, .admin-page { padding-top: 36px; }
  .section-heading { align-items: flex-start; gap: 6px; }
  .section-heading .result-summary { font-size: .84rem; }
  .expert-card { gap: 12px; padding: 16px; }
  .expert-card h3 { font-size: 1rem; }
  .expert-position, .expert-faculty, .expert-card-note { font-size: .8rem; }
  .profile-card { padding: 22px 18px; }
  .profile-heading { align-items: flex-start; gap: 14px; }
  .avatar-large { height: 60px; width: 60px; }
  .profile-heading h1 { font-size: clamp(1.65rem, 7vw, 2.25rem); }
  .form-card, .login-card, .success-card { padding: 18px 15px; }
  fieldset, .form-section { padding: 15px; }
  .form-actions .button-dark { width: 100%; }
  .form-actions { gap: 11px; }
  .site-footer { margin-top: 48px; padding: 26px 0; }
  .footer-inner { gap: 14px; }
  .footer-inner p { margin-bottom: 0; }
  .admin-top { gap: 18px; }
  .admin-top > .button { width: 100%; }
  .admin-tabs { margin-inline: -2px; padding-bottom: 2px; }
  .admin-editor { gap: 14px; }
  .request-card { gap: 14px; }
  .request-card .button-stack { width: 100%; }
  .request-card .button-stack .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Expert profile image: shown on detail view only; search cards remain lightweight. */
.profile-avatar { background: #edf1f5; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 24px rgba(20, 52, 73, .12); flex: 0 0 auto; height: 132px; object-fit: cover; width: 132px; }
.profile-image-editor { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; }
.profile-image-editor legend { flex-basis: 100%; }
.admin-profile-image { background: #edf1f5; border: 1px solid var(--line); border-radius: 16px; height: 112px; object-fit: cover; width: 112px; }
.profile-image-controls { display: grid; gap: 8px; min-width: min(100%, 280px); }
.profile-image-controls input[type="file"] { max-width: 100%; }
.profile-image-status { color: var(--muted); font-size: .82rem; margin: 0; }
@media (max-width: 600px) {
  .profile-avatar { border-radius: 16px; height: 82px; width: 82px; }
  .admin-profile-image { height: 92px; width: 92px; }
}
