:root {
  --ink: #171b2f;
  --muted: #687087;
  --line: #dde0e9;
  --paper: #f6f4ed;
  --white: #fff;
  --navy: #20295f;
  --navy-2: #131941;
  --coral: #f06b5e;
  --mint: #46b9a8;
  --yellow: #f4c94d;
  --pending: #b7791f;
  --pending-bg: #fff7db;
  --confirmed: #18745e;
  --confirmed-bg: #e5f7f1;
  --rejected: #9b3c39;
  --rejected-bg: #fdeceb;
  --shadow: 0 12px 34px rgba(35, 39, 66, .08);
  --radius: 18px;
  font-family: 'Manrope', 'Gowun Dodum', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar { height: 84px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 41px; height: 41px; border-radius: 12px; background: var(--navy); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 9px; transform: rotate(-2deg); }
.brand-mark i { display: block; width: 5px; border-radius: 6px; background: var(--yellow); }
.brand-mark i:nth-child(1) { height: 10px; }
.brand-mark i:nth-child(2) { height: 21px; background: var(--coral); }
.brand-mark i:nth-child(3) { height: 15px; background: var(--mint); }
.brand strong { display: block; font-size: 21.25px; letter-spacing: .09em; color: var(--navy-2); }
.brand small { display: block; margin-top: 1px; font-size: 11.25px; letter-spacing: .08em; color: var(--muted); }
.event-pill { color: var(--muted); font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.event-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(70,185,168,.16); }

.demo-warning { background: #fff8d8; border-bottom: 1px solid #eddc94; padding: 10px clamp(20px, 5vw, 72px); display: flex; align-items: center; gap: 10px; color: #67530e; }
.demo-warning svg { width: 20px; height: 20px; fill: #aa7d00; flex: none; }
.demo-warning div { display: flex; gap: 10px; align-items: baseline; }
.demo-warning strong { font-size: 15px; white-space: nowrap; }
.demo-warning span { font-size: 13.75px; }

.role-nav { background: var(--navy); padding: 0 clamp(20px, 5vw, 72px); min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.role-tabs { align-self: stretch; display: flex; }
.role-tab { color: #c7cbe1; background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 0 24px; font-size: 17.5px; font-weight: 800; transition: .2s ease; }
.role-tab:hover { color: #fff; background: rgba(255,255,255,.05); }
.role-tab.is-active { color: #fff; border-bottom-color: var(--coral); }
.tab-icon { font-size: 8.75px; color: var(--yellow); margin-right: 7px; }
.identity-picker { display: flex; align-items: center; gap: 10px; color: #fff; }
.identity-picker label { font-size: 13.75px; color: #aeb3d0; font-weight: 700; }
.identity-picker select { min-width: 210px; background: #30396f; color: #fff; border: 1px solid #535b8a; border-radius: 9px; padding: 9px 34px 9px 12px; font-size: 15px; }
.role-tabs[hidden] { display: none; }
.role-nav.is-portal-nav { justify-content: flex-end; }
.portal-label { color: #fff; font-size: 15px; font-weight: 800; }
.signed-user { display: flex; align-items: center; gap: 14px; }
.signed-user > div { display: flex; flex-direction: column; text-align: right; }
.signed-user strong { font-size: 13.75px; }
.signed-user span { color: #aeb3d0; font-size: 11.25px; }

main { flex: 1; }
.page { padding: 48px clamp(20px, 5vw, 72px) 72px; max-width: 1500px; width: 100%; margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); gap: 24px; align-items: stretch; margin-bottom: 32px; }
.hero-copy { position: relative; overflow: hidden; min-height: 242px; background: var(--navy); color: #fff; border-radius: 24px; padding: 38px 40px; box-shadow: var(--shadow); }
.hero-copy::before { content: ''; position: absolute; width: 280px; height: 280px; border: 46px solid rgba(255,255,255,.055); border-radius: 50%; right: -82px; top: -110px; }
.hero-copy::after { content: ''; position: absolute; width: 150px; height: 60px; background: var(--coral); right: -40px; bottom: -30px; transform: rotate(-14deg); }
.eyebrow { display: block; color: var(--coral); font-size: 13.75px; letter-spacing: .16em; font-weight: 800; margin-bottom: 14px; }
.hero h1 { position: relative; margin: 0; max-width: 760px; font-family: 'Gowun Dodum', sans-serif; font-size: clamp(37.5px, 5vw, 62.5px); font-weight: 400; line-height: 1.2; letter-spacing: -.035em; }
.hero h1 strong { color: var(--yellow); font-weight: 400; }
.hero-copy p { position: relative; max-width: 640px; margin: 20px 0 0; color: #c9cde3; font-size: 17.5px; line-height: 1.75; }
.hero-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.hero-card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hero-card-title h2 { margin: 0; font-size: 18.75px; }
.date-stamp { background: var(--coral); color: #fff; border-radius: 9px; padding: 6px 9px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
.timeline { display: grid; gap: 10px; }
.timeline-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(88px, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.timeline-row:first-child { border-top: 0; }
.timeline-row strong { font-size: 15px; color: var(--navy); word-break: keep-all; overflow-wrap: break-word; }
.timeline-row span { font-size: 15px; color: var(--muted); }
.timeline-row em { font-style: normal; font-size: 12.5px; padding: 4px 7px; border-radius: 99px; background: #eef0f8; color: var(--navy); }

.section-head { margin: 34px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head h2 { margin: 0; font-family: 'Gowun Dodum', sans-serif; font-size: 33.75px; font-weight: 400; letter-spacing: -.02em; }
.section-head p { margin: 7px 0 0; font-size: 15px; color: var(--muted); }
.section-kicker { color: var(--coral); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; }
.head-actions { display: flex; align-items: center; gap: 8px; }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.search-box { position: relative; flex: 1; min-width: 240px; }
.search-box input { width: 100%; padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); }
.search-box::before { content: '⌕'; position: absolute; left: 15px; top: 8px; color: var(--muted); font-size: 25px; }
.filter-chip { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 10px 13px; border-radius: 99px; font-size: 13.75px; font-weight: 700; }
.filter-chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.recommendation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.recommendation-card { position: relative; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--company-color); border-radius: 16px; padding: 20px; box-shadow: 0 5px 18px rgba(35,39,66,.05); }
.recommendation-card .company-identity { margin: 12px 0 14px; }
.recommendation-card h3 { margin: 0; font-size: 18.75px; }
.recommendation-card .company-identity span { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.recommendation-card > p { min-height: 48px; color: #535b70; font-size: 13.75px; line-height: 1.6; }
.recommendation-rank { display: inline-flex; padding: 5px 8px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 11.25px; font-weight: 800; }
.match-reason { min-height: 50px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.match-reason strong { width: 100%; color: var(--muted); font-size: 11.25px; }
.match-reason span { background: var(--confirmed-bg); color: var(--confirmed); border-radius: 6px; padding: 5px 7px; font-size: 11.25px; font-weight: 800; }
.company-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: hidden; }
.company-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.company-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--company-color); }
.company-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.company-identity { display: flex; align-items: center; gap: 11px; }
.company-logo { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--company-color) 13%, white); color: var(--company-color); font-weight: 800; }
.table-no { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); padding: 5px 8px; border-radius: 99px; }
.company-card h3 { margin: 0; font-size: 18.75px; }
.company-category { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.company-card > p { color: #535b70; font-size: 15px; line-height: 1.65; min-height: 40px; margin: 17px 0 12px; }
.keywords { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.keywords span { font-size: 11.25px; padding: 4px 7px; background: #f2f3f7; color: #697087; border-radius: 5px; }
.slot-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.slot-option { position: relative; }
.slot-option input { position: absolute; opacity: 0; pointer-events: none; }
.slot-option label { min-height: 54px; border: 1px solid var(--line); border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12.5px; color: var(--muted); transition: .16s ease; cursor: pointer; }
.slot-option label strong { color: var(--ink); font-size: 12.5px; }
.slot-option label small { font-size: 11.25px; color: var(--confirmed); }
.slot-option input:checked + label { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #f2f3fb; }
.slot-option input:disabled + label { background: #f3f3f3; color: #aaa; cursor: not-allowed; }
.slot-option input:disabled + label small { color: #999; }
.card-action { margin-top: 12px; width: 100%; }

.btn { border: 0; border-radius: 9px; padding: 11px 15px; font-size: 13.75px; font-weight: 800; transition: .16s ease; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-2); }
.btn-secondary { background: #eef0f6; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-danger { background: var(--coral); color: #fff; }
.btn-small { padding: 7px 10px; font-size: 12.5px; }

.status { display: inline-flex; align-items: center; gap: 5px; width: fit-content; border-radius: 99px; padding: 5px 8px; font-size: 11.25px; font-weight: 800; white-space: nowrap; }
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pending { color: var(--pending); background: var(--pending-bg); }
.status-waitlist { color: var(--pending); background: var(--pending-bg); }
.status-confirmed { color: var(--confirmed); background: var(--confirmed-bg); }
.status-rejected { color: var(--rejected); background: var(--rejected-bg); }
.status-cancelled { color: var(--rejected); background: var(--rejected-bg); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(35,39,66,.035); }
.panel-header { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-header h3 { margin: 0; font-size: 17.5px; }
.panel-body { padding: 20px 22px; }
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.request-list { display: grid; gap: 10px; }
.request-row { display: grid; grid-template-columns: 48px minmax(130px, 1fr) minmax(110px, .7fr) auto; align-items: center; gap: 14px; padding: 14px; background: #fafafc; border: 1px solid #eceef3; border-radius: 12px; }
.request-row .request-date { font-size: 11.25px; color: var(--muted); text-align: center; }
.request-row .request-date strong { display: block; color: var(--navy); font-size: 18.75px; }
.request-main strong { display: block; font-size: 15px; }
.request-main span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.request-slot { font-size: 12.5px; color: var(--muted); }
.request-slot strong { display: block; color: var(--ink); font-size: 13.75px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.schedule { display: grid; gap: 10px; }
.schedule-row { display: grid; grid-template-columns: 105px 1fr; gap: 12px; align-items: stretch; }
.schedule-time { background: var(--navy); border-radius: 10px; color: #fff; padding: 13px; display: flex; flex-direction: column; justify-content: center; }
.schedule-time strong { font-size: 13.75px; }
.schedule-time span { font-size: 11.25px; color: #bfc4dd; margin-top: 3px; }
.schedule-booking { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; min-height: 60px; }
.schedule-booking.is-empty { border-style: dashed; color: #9ca1b0; font-size: 12.5px; }
.schedule-booking strong { font-size: 13.75px; display: block; }
.schedule-booking span { font-size: 11.25px; color: var(--muted); }

.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; width: 46px; height: 46px; border: 12px solid var(--stat-color, var(--navy)); opacity: .08; border-radius: 50%; right: -15px; bottom: -15px; }
.stat span { display: block; color: var(--muted); font-size: 12.5px; }
.stat strong { display: block; margin-top: 7px; font-size: 33.75px; color: var(--stat-color, var(--navy)); }
.stat small { color: var(--muted); font-size: 10px; }

.slot-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.slot-column { border: 1px solid var(--line); background: #fff; border-radius: 14px; overflow: hidden; }
.slot-column-head { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.slot-column-head strong { font-size: 15px; }
.slot-column-head span { color: #bec3dd; font-size: 11.25px; }
.visitor-list { padding: 10px; display: grid; gap: 8px; min-height: 108px; }
.visitor { padding: 11px; border-radius: 9px; background: #f7f7fa; border: 1px solid #eceef3; }
.visitor-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.visitor strong { font-size: 13.75px; }
.visitor > span { font-size: 11.25px; color: var(--muted); }
.guest-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; color: var(--muted); font-size: 10px; }
.guest-keywords { margin: 9px 0 0; }
.guest-section-label { padding: 10px 12px 0; color: var(--confirmed); font-size: 11.25px; font-weight: 800; }
.guest-section-label.is-waiting { color: var(--pending); border-top: 1px solid var(--line); padding-top: 12px; }
.empty.compact { min-height: 54px; padding: 10px; }
.attendance { display: flex; gap: 11px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.guest-ack { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding: 10px 11px; border-radius: 10px; background: #fff5e7; color: #7b520b; font-size: 11.25px; font-weight: 700; }
.guest-ack.is-complete { background: #e8f7f1; color: #116b4c; }
.check-label { font-size: 11.25px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.check-label input { accent-color: var(--navy); }
.empty { display: grid; place-items: center; text-align: center; min-height: 100px; padding: 20px; color: #969bab; font-size: 12.5px; }
.empty strong { display: block; color: #73798a; font-size: 15px; margin-bottom: 4px; }

.admin-layout { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 18px; align-items: start; }
.form-grid { display: grid; gap: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 800; margin-bottom: 6px; }
.field select, .field input, .field textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 11px 12px; color: var(--ink); font-size: 13.75px; }
.form-note { background: #f4f5fa; color: var(--muted); border-radius: 9px; padding: 10px; font-size: 11.25px; line-height: 1.55; }
.edit-banner { background: var(--pending-bg); color: var(--pending); border-radius: 9px; padding: 10px; font-size: 12.5px; display: flex; align-items: center; justify-content: space-between; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th { text-align: left; padding: 11px 12px; color: var(--muted); font-size: 11.25px; background: #fafafc; border-bottom: 1px solid var(--line); }
.data-table td { padding: 12px; font-size: 12.5px; border-bottom: 1px solid #eceef3; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td strong { display: block; font-size: 13.75px; }
.data-table td span { color: var(--muted); font-size: 11.25px; }
.audit-list { display: grid; gap: 0; max-height: 430px; overflow-y: auto; }
.audit-item { display: grid; grid-template-columns: 8px 100px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.audit-item:last-child { border-bottom: 0; }
.audit-dot { width: 8px; height: 8px; background: var(--mint); border-radius: 50%; margin-top: 4px; }
.audit-item time { font-size: 11.25px; color: var(--muted); }
.audit-item p { margin: 0; font-size: 12.5px; line-height: 1.55; }
.audit-item p strong { color: var(--navy); }

.privacy-note { margin-top: 22px; border: 1px solid #e6d58d; background: #fffae6; color: #6e5c16; padding: 14px 16px; border-radius: 12px; font-size: 12.5px; line-height: 1.6; }
.absence-banner, .free-meetup-notice { margin: 0 0 24px; padding: 22px 24px; border-radius: 16px; border: 1px solid #efb0aa; background: #fff1ef; }
.absence-banner > div, .free-meetup-notice > div { display: grid; gap: 6px; }
.absence-banner strong { color: var(--rejected); font-size: 17.5px; }
.absence-banner small { color: var(--muted); }
.free-meetup-notice { border-color: #b9c2ec; background: linear-gradient(135deg, #f0f2ff, #fff); }
.free-meetup-notice h2 { margin: 0; font-family: 'Gowun Dodum', sans-serif; font-size: 27.5px; font-weight: 400; color: var(--navy); }
.free-meetup-notice p { margin: 0; color: #535b70; line-height: 1.7; }
.free-meetup-company { margin-top: 36px; }
.free-meetup-company textarea { width: 100%; resize: vertical; min-height: 160px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; color: var(--ink); }
.note-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.note-actions small { color: var(--muted); }

.section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.booking-notice, .pending-alert { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 34px; padding: 20px 22px; border-radius: 16px; border: 1px solid #bedfd4; background: #eefaf6; }
.booking-notice > div, .pending-alert > div { display: grid; gap: 5px; }
.booking-notice strong, .pending-alert strong { color: var(--navy); font-size: 16.25px; line-height: 1.45; }
.booking-notice small, .pending-alert small { color: var(--muted); font-size: 11.25px; }
.pending-alert { border-color: #ecd691; background: #fff8df; }
.pending-alert > div > span { width: max-content; padding: 4px 8px; border-radius: 999px; background: var(--pending); color: #fff; font-size: 10px; font-weight: 800; }
.onsite-guide { margin: 34px 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 14px rgba(35,39,66,.035); }
.onsite-guide h2 { margin: 5px 0 7px; font-family: 'Gowun Dodum', sans-serif; font-size: 27.5px; font-weight: 400; }
.onsite-guide > div > p { margin: 0; color: var(--muted); font-size: 12.5px; }
.guide-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.guide-steps li { display: flex; align-items: flex-start; gap: 10px; padding: 16px; background: #f6f7fb; border-radius: 12px; color: var(--ink); font-size: 12.5px; line-height: 1.55; }
.guide-steps li > strong { flex: 0 0 auto; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11.25px; }
.guide-steps b { color: var(--confirmed); }
.slot-option.is-waitlist label { border-color: #e1c66b; background: #fffaf0; }
.slot-option.is-waitlist label small { color: #806815; font-weight: 800; }

.matching-matrix-panel { margin-bottom: 18px; }
.panel-header > div > span { display: block; margin-top: 4px; color: var(--muted); font-size: 11.25px; }
.matching-matrix { min-width: 760px; }
.matching-matrix th:not(:first-child), .matching-matrix td:not(:first-child) { text-align: center; }
.matching-matrix th span { display: block; margin-top: 3px; font-weight: 500; }
.matching-matrix td strong { color: var(--navy); }
.matching-matrix .matrix-pending { display: block; margin-top: 3px; color: var(--pending); font-weight: 700; }
.management-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.management-panel { overflow: hidden; }
.management-panel summary { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; color: var(--navy); font-weight: 800; cursor: pointer; }
.management-panel summary span { color: var(--muted); font-size: 11.25px; }
.management-list { max-height: 360px; overflow-y: auto; border-top: 1px solid var(--line); }
.management-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #eceef3; }
.management-item:last-child { border-bottom: 0; }
.management-item div { min-width: 0; }
.management-item strong, .management-item span { display: block; }
.management-item strong { color: var(--ink); font-size: 12.5px; }
.management-item span, .management-item small { color: var(--muted); font-size: 10px; }
.management-item small { flex: 0 0 auto; color: var(--navy); font-weight: 800; }
.company-management-main { width: 100%; }
.registration-state { color: #9a3412; }
.registration-state.is-complete { color: var(--confirmed); }

body.dashboard-mode { background: #071326; }
body.dashboard-mode .topbar, body.dashboard-mode .demo-warning, body.dashboard-mode .role-nav, body.dashboard-mode .app-shell > footer, body.dashboard-mode .skip-link { display: none !important; }
body.dashboard-mode .app-shell { min-height: 100vh; background: #071326; }
body.dashboard-mode #main-content { min-height: 100vh; }
.led-dashboard { min-height: 100vh; padding: 2.2vh 2vw 1.2vh; background: radial-gradient(circle at 15% 0%, #162d53, #071326 48%); color: #fff; display: grid; grid-template-rows: auto 1fr auto; gap: 1.1vh; }
.led-dashboard:has(.led-free) { grid-template-rows: auto auto 1fr auto; }
.led-header { display: flex; align-items: center; justify-content: space-between; gap: 3vw; border-bottom: 2px solid rgba(255,255,255,.14); padding-bottom: 1.4vh; }
.led-brand { color: #72e0d0; font-size: clamp(16px, 1.2vw, 24px); font-weight: 800; letter-spacing: .14em; }
.led-header h1 { margin: .5vh 0 0; font-size: clamp(30px, 2.7vw, 56px); letter-spacing: -.04em; }
.led-event { text-align: right; min-width: 0; }
.led-current { text-align: left; display: grid; gap: .6vh; line-height: 1.1; }
.led-current span { color: #ffcc62; font-size: clamp(28px, 4vw, 88px); font-weight: 800; }
.led-current strong { font-size: clamp(24px, 2.5vw, 60px); font-variant-numeric: tabular-nums; }
.led-event small { display: block; margin-top: .7vh; color: #92a2bb; font-size: clamp(11px, .8vw, 16px); }
.led-free { display: flex; align-items: center; justify-content: center; gap: 1.5vw; padding: 1vh 2vw; border: 1px solid rgba(114,224,208,.4); border-radius: 12px; background: rgba(35,107,104,.3); }
.led-free strong { color: #72e0d0; font-size: clamp(21px, 1.7vw, 34px); }
.led-free span { color: #dce8f5; font-size: clamp(14px, 1vw, 20px); }
.led-grid { min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: .8vw; }
.led-copyright { display: flex; justify-content: flex-end; font-size: clamp(10px, .7vw, 14px); line-height: 1.2; }
.led-copyright .insession-copyright { color: #92a2bb; }
.led-copyright .insession-copyright img { width: clamp(52px, 4vw, 72px); padding: 2px 4px; border-radius: 5px; }
.led-copyright .insession-copyright:hover, .led-copyright .insession-copyright:focus-visible { color: #fff; }
.led-company { min-height: 0; border: 1px solid rgba(255,255,255,.14); border-top: 4px solid #72e0d0; border-radius: 12px; background: rgba(255,255,255,.075); padding: 1.1vh .85vw; display: grid; grid-template-rows: auto 1fr; }
.led-company-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6vw; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: .7vh; }
.led-company-head .led-table { flex: none; color: #72e0d0; font-size: clamp(15px, 1.9vw, 48px); font-weight: 800; font-variant-numeric: tabular-nums; }
.led-company-head strong { font-size: clamp(16px, 1.7vw, 44px); overflow-wrap: anywhere; }
.led-company-head { justify-content: flex-start; }
.led-guests { display: grid; align-content: center; gap: .7vh; min-height: 0; }
.led-guest { display: grid; gap: .15vh; padding: .45vh .5vw; border-radius: 7px; background: rgba(255,255,255,.08); line-height: 1.18; overflow-wrap: anywhere; }
.led-guest strong { font-size: clamp(15px, 1.45vw, 38px); }
.led-guest span { color: #c3cedd; font-size: clamp(13px, 1.15vw, 30px); }
.led-empty, .led-free-label { color: #8192aa; text-align: center; font-size: clamp(13px, .85vw, 18px); }
.led-free-label { color: #72e0d0; font-weight: 800; }
@media (max-aspect-ratio: 4/3) {
  .led-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
}
@media (max-width: 480px) and (max-aspect-ratio: 4/3) {
  .led-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .led-header { align-items: flex-start; flex-direction: column; }
  .led-event { text-align: left; }
}

.auth-page { max-width: 1180px; margin: 0 auto; padding: 54px clamp(20px, 5vw, 72px) 74px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; align-items: stretch; }
.auth-intro { background: var(--navy); color: #fff; border-radius: 24px; padding: 46px 42px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.auth-intro::after { content: ''; position: absolute; width: 230px; height: 230px; border: 42px solid rgba(255,255,255,.06); border-radius: 50%; right: -110px; bottom: -110px; }
.auth-intro h1 { position: relative; margin: 0; font-family: 'Gowun Dodum', sans-serif; font-size: clamp(37.5px, 5vw, 56.25px); font-weight: 400; line-height: 1.25; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.auth-intro h1 strong { color: var(--yellow); font-weight: 400; }
.auth-intro > p { position: relative; color: #c9cde3; font-size: 16.25px; line-height: 1.75; margin: 22px 0 34px; word-break: keep-all; overflow-wrap: break-word; }
.auth-steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-steps li { display: flex; align-items: center; gap: 12px; font-size: 13.75px; color: #e1e4f3; word-break: keep-all; overflow-wrap: break-word; }
.auth-steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--yellow); font-size: 11.25px; font-weight: 800; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px 34px 34px; box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; background: #eff0f5; border-radius: 11px; margin-bottom: 30px; }
.auth-tab { border: 0; background: transparent; color: var(--muted); border-radius: 8px; padding: 11px; font-size: 13.75px; font-weight: 800; }
.auth-tab.is-active { background: #fff; color: var(--navy); box-shadow: 0 3px 12px rgba(32,41,95,.09); }
.auth-form h2 { margin: 7px 0 5px; font-family: 'Gowun Dodum', sans-serif; font-size: 31.25px; font-weight: 400; }
.auth-form > p { margin: 0 0 22px; color: var(--muted); font-size: 13.75px; }
.auth-form { display: grid; gap: 13px; }
.auth-field label { font-size: 13.75px; }
.auth-field input, .auth-field select, .auth-field textarea { font-size: 15px; padding: 13px 14px; }
.auth-field textarea { width: 100%; resize: vertical; min-height: 104px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); }
.interest-fieldset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 4px 0; padding: 14px; background: #f5f6fa; border: 1px solid var(--line); border-radius: 12px; }
.interest-fieldset > div:first-child { grid-column: 1 / -1; }
.interest-fieldset > div:first-child strong { display: block; font-size: 13.75px; }
.interest-fieldset > div:first-child span { display: block; margin-top: 3px; color: var(--muted); font-size: 11.25px; line-height: 1.5; }
.interest-fieldset .auth-field label { font-size: 11.25px; }
.interest-fieldset .auth-field select { padding: 10px 8px; font-size: 12.5px; }
.company-profile-fields { display: grid; gap: 13px; margin: 4px 0; padding: 16px; background: #f5f6fa; border: 1px solid var(--line); border-radius: 12px; }
.company-profile-heading strong { display: block; font-size: 15px; }
.company-profile-heading span { display: block; margin-top: 4px; color: var(--muted); font-size: 11.25px; line-height: 1.5; }
.company-keyword-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.company-keyword-grid .auth-field label { font-size: 11.25px; }
.required-note { color: var(--coral); font-size: 10px; }
.file-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 11.25px; line-height: 1.5; }
.file-field input[type="file"] { background: #fff; }
.brochure-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 10px 12px; border: 1px solid #cdd3e5; border-radius: 9px; background: #f7f8fc; color: var(--navy); text-decoration: none; font-size: 12.5px; font-weight: 800; }
.brochure-link:hover { border-color: var(--navy); }
.brochure-link span { color: var(--muted); font-size: 10px; font-weight: 600; text-align: right; }
.company-profile-summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 24px; align-items: center; margin-bottom: 22px; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(35,39,66,.035); }
.company-profile-summary h2 { margin: 4px 0 8px; font-family: 'Gowun Dodum', sans-serif; font-size: 27.5px; font-weight: 400; }
.company-profile-summary p { margin: 0; color: var(--muted); line-height: 1.65; }
.company-profile-meta .keywords { margin: 0 0 10px; }
.company-profile-meta .brochure-link { margin: 0; }
.profile-unregistered { display: block; color: var(--muted); font-size: 11.25px; line-height: 1.6; }
.auth-submit { width: 100%; margin-top: 5px; padding: 14px 16px; font-size: 15px; }
.consent-label { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 11.25px; line-height: 1.5; }
.consent-label input { margin-top: 3px; accent-color: var(--navy); }
.privacy-notice { color: var(--muted); font-size: 13px; line-height: 1.6; }
.privacy-notice summary { cursor: pointer; color: var(--navy); font-weight: 700; }
.privacy-notice p { margin: 8px 0; }
.auth-warning { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 11.25px; line-height: 1.6; }
.auth-warning strong { color: var(--rejected); }
footer { background: var(--navy-2); color: #fff; padding: 30px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
footer div { display: flex; align-items: baseline; gap: 12px; }
footer strong { letter-spacing: .09em; font-size: 16.25px; }
footer span, footer p { color: #9399bb; font-size: 11.25px; margin: 0; }
footer a { color: #c7cbe0; font-size: 11.25px; text-decoration: none; }
footer a:hover, footer a:focus-visible { color: #fff; text-decoration: underline; }
.footer-meta { justify-content: flex-end; flex-wrap: wrap; }
.insession-copyright { display: inline-flex; align-items: center; gap: 7px; color: #c7cbe0; text-decoration: none; }
.insession-copyright img { display: block; width: 64px; height: auto; padding: 3px 5px; border-radius: 6px; background: #fff; }
.insession-copyright:hover, .insession-copyright:focus-visible { text-decoration: none; }

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.toast { background: var(--navy-2); color: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 14px 40px rgba(17,20,47,.28); font-size: 13.75px; line-height: 1.5; animation: toast-in .22s ease both; border-left: 4px solid var(--mint); }
.toast.is-error { border-left-color: var(--coral); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.dialog { border: 0; border-radius: 18px; padding: 0; width: min(420px, calc(100% - 30px)); box-shadow: 0 24px 80px rgba(18,22,55,.3); }
.dialog::backdrop { background: rgba(16,20,43,.52); backdrop-filter: blur(3px); }
.dialog form { padding: 28px; }
.dialog-kicker { color: var(--coral); font-size: 11.25px; letter-spacing: .15em; font-weight: 800; }
.dialog h2 { font-family: 'Gowun Dodum', sans-serif; font-weight: 400; margin: 8px 0 10px; }
.dialog p { color: var(--muted); font-size: 13.75px; line-height: 1.65; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

.email-settings { margin: 0 0 34px; border-color: #cbd3ef; background: linear-gradient(135deg, #fff 0%, #f6f7ff 100%); }
.email-settings .panel-body { display: grid; gap: 18px; padding: 24px 26px; }
.email-settings-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.email-settings-copy { display: grid; gap: 5px; min-width: 0; }
.email-settings-copy h2 { margin: 0; font-family: 'Gowun Dodum', sans-serif; font-size: 27.5px; font-weight: 400; color: var(--navy); }
.email-settings-copy p { margin: 0; color: #4d536b; line-height: 1.65; }
.email-settings-copy small { color: var(--muted); line-height: 1.6; }
.connection-state { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 8px 11px; background: #eef0f8; color: #606880; font-size: 11.25px; font-weight: 800; }
.connection-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.connection-state.is-connected { background: #e7f8f1; color: #147453; }
.connection-state.is-ready { background: #fff3db; color: #8c5b00; }
.connection-state.is-error { background: #fff0ee; color: #aa382d; }
.connection-state.is-loading { color: #68708d; }
.email-callback { display: grid; gap: 6px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.86); }
.email-callback span { color: var(--muted); font-size: 11.25px; font-weight: 700; }
.email-callback code { overflow-wrap: anywhere; color: var(--navy); font-family: Consolas, 'Courier New', monospace; font-size: 11.25px; line-height: 1.5; }
.email-settings-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.email-warning { padding: 12px 14px; border-radius: 10px; background: #fff5e7; color: #7b520b; font-size: 11.25px; font-weight: 700; }
.email-history { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.email-history-head, .email-history-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; }
.email-history-head { background: #f2f4fb; color: var(--navy); }
.email-history-head span { color: var(--muted); font-size: 11.25px; }
.email-history-row { border-top: 1px solid var(--line); }
.email-history-row > div { display: grid; gap: 2px; min-width: 0; }
.email-history-row span, .email-history-row small { color: var(--muted); font-size: 10.5px; overflow-wrap: anywhere; }
.email-history-row small { color: #a43b32; }
.email-delivery-status { flex: 0 0 auto; font-size: 10.5px; color: #626982; }
.email-delivery-status.is-sent { color: #147453; }
.email-delivery-status.is-failed { color: #aa382d; }
.email-history-empty { padding: 13px 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 11.25px; }

@media (max-width: 1060px) {
  .company-grid { grid-template-columns: repeat(2, 1fr); }
  .recommendation-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .slot-columns { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { height: 70px; }
  .event-pill { display: none; }
  .demo-warning { align-items: flex-start; }
  .demo-warning div { display: block; }
  .demo-warning span { display: block; margin-top: 3px; line-height: 1.4; }
  .role-nav { padding: 0; display: block; }
  .role-tabs { height: 58px; width: 100%; }
  .role-tab { flex: 1; padding: 0 8px; }
  .identity-picker { padding: 11px 20px; background: #181f4b; }
  .identity-picker select { flex: 1; min-width: 0; }
  .page { padding-top: 26px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 210px; padding: 30px 26px; }
  .hero-card { padding: 22px; }
  .company-grid { grid-template-columns: 1fr; }
  .recommendation-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: span 2; }
  .request-row { grid-template-columns: 42px 1fr auto; }
  .request-slot { grid-column: 2 / -1; }
  .row-actions { grid-column: 2 / -1; justify-content: flex-start; }
  footer { display: block; }
  .footer-meta { justify-content: flex-start; margin-top: 8px; }
  .role-nav.is-portal-nav { min-height: 58px; }
  .signed-user { width: 100%; justify-content: space-between; }
  .signed-user > div { text-align: left; }
  .auth-page { grid-template-columns: 1fr; padding-top: 28px; }
  .auth-intro { padding: 32px 26px; }
  .auth-intro h1 { font-size: clamp(31px, 8vw, 48px); }
  .auth-card { padding: 24px 20px 28px; }
  .interest-fieldset { grid-template-columns: 1fr; }
  .interest-fieldset > div:first-child { grid-column: auto; }
  .company-keyword-grid, .company-profile-summary { grid-template-columns: 1fr; }
  .booking-notice, .pending-alert { align-items: flex-start; flex-direction: column; }
  .booking-notice .btn, .pending-alert .btn { width: 100%; }
  .guide-steps, .management-grid { grid-template-columns: 1fr; }
  .onsite-guide { padding: 22px 18px; }
  .section-actions { width: 100%; justify-content: flex-start; }
  .email-settings-main { flex-direction: column; }
  .email-settings-actions .btn { width: 100%; text-align: center; }
  .guest-ack, .email-history-head, .email-history-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .brand small { display: none; }
  .role-tab { font-size: 15px; }
  .page { padding-left: 14px; padding-right: 14px; }
  .hero-copy { border-radius: 18px; }
  .hero h1 { font-size: 37.5px; }
  .timeline-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .timeline-row strong { grid-column: 1; }
  .timeline-row span { grid-column: 1; grid-row: 2; }
  .timeline-row em { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .slot-picker { gap: 4px; }
  .schedule-row { grid-template-columns: 88px 1fr; }
  .panel-header, .panel-body { padding-left: 15px; padding-right: 15px; }
  .section-head { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
