/* ==========================================================================
   ValueNomics — PC Web Prototype
   Design tokens
   ========================================================================== */

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/woff2/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/woff2/Pretendard-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/woff2/Pretendard-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/woff2/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/woff2/Pretendard-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root{
  /* Color */
  --navy-900:#12134A;
  --navy-800:#1B1E5C;
  --navy-700:#2E3192;
  --navy-600:#3B3FAE;
  --indigo-500:#4F5BD5;
  --indigo-100:#EAEBFB;
  --mint-500:#12B79E;
  --mint-100:#E4F9F5;
  --bg:#F6F7FB;
  --surface:#FFFFFF;
  --ink-900:#14152B;
  --ink-700:#33344F;
  --ink-600:#5A5E7A;
  --ink-400:#9295B0;
  --line:#E4E6F1;
  --line-strong:#CACDE3;
  --danger:#E5484D;
  --danger-bg:#FDECEC;
  --amber:#B5740A;
  --amber-bg:#FBF0DC;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:20px;
  --shadow-sm: 0 1px 2px rgba(18,19,74,.06);
  --shadow-md: 0 8px 24px rgba(18,19,74,.08);
  --shadow-lg: 0 20px 48px rgba(18,19,74,.14);
  --header-h: 76px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:auto; }
body{
  font-family:'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color:var(--ink-900);
  background:var(--bg);
  min-width:1280px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
ul{ list-style:none; }
img{ display:block; max-width:100%; }
input, textarea, select{ font-family:inherit; font-size:inherit; color:inherit; }
:focus-visible{ outline:2px solid var(--indigo-500); outline-offset:2px; }

.mono{ font-family:var(--mono); }

/* ---------- Layout shell ---------- */
.wrap{ max-width:1200px; margin:0 auto; padding:0 24px; }
.page-shell{ min-height:100vh; display:flex; flex-direction:column; }
.main{ flex:1; }

/* ---------- App Header (shared across inner app pages) ---------- */
.app-header{
  position:sticky; top:0; z-index:100;
  height:var(--header-h);
  background:var(--surface);
  border-bottom:1px solid var(--line);
}
.app-header .wrap{ height:100%; display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:20px; letter-spacing:-.02em; color:var(--navy-800); }
.brand .logo-mark{ width:30px; height:30px; }
.app-nav{ display:flex; align-items:center; gap:36px; }
.app-nav a{ font-size:15px; font-weight:600; color:var(--ink-600); padding:8px 2px; border-bottom:2px solid transparent; }
.app-nav a.active, .app-nav a:hover{ color:var(--navy-800); border-color:var(--navy-700); }
.header-right{ display:flex; align-items:center; gap:18px; }
.icon-btn{ width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--bg); border:1px solid var(--line); color:var(--ink-700); transition:.15s; }
.icon-btn:hover{ background:var(--indigo-100); border-color:var(--indigo-100); color:var(--navy-800); }
/* Keep the entire logo inside the circular avatar, including square corners. */
.member-avatar-image{ width:100%; height:100%; object-fit:contain; object-position:center; padding:15%; display:block; }
.company-image-preview{ width:160px; height:160px; display:flex; align-items:center; justify-content:center; margin-bottom:12px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.company-image-preview img{ width:100%; height:100%; object-fit:contain; object-position:center; padding:10px; }
.company-image-preview span{ text-align:center; font-size:13px; color:var(--ink-400); }
.company-image-preview [hidden]{ display:none; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:48px; padding:0 24px; border-radius:var(--radius-sm);
  font-weight:700; font-size:15px; border:1px solid transparent; white-space:nowrap;
  text-align:center; line-height:1.2; vertical-align:middle;
  transition:.15s ease;
}
.btn-lg{ height:52px; padding:0 30px; font-size:16px; }
.btn-sm{ height:38px; padding:0 16px; font-size:14px; border-radius:8px; }
.btn-primary{ background:var(--navy-700); color:#fff; }
.btn-primary:hover{ background:var(--navy-800); }
.btn-primary:disabled{ background:#C7C9E6; cursor:not-allowed; }
.btn-mint{ background:var(--mint-500); color:#fff; }
.btn-mint:hover{ background:#0D9D87; }
.btn-outline{ background:#fff; color:var(--ink-700); border-color:var(--line-strong); }
.btn-outline:hover{ border-color:var(--navy-700); color:var(--navy-700); }
.btn-ghost{ background:transparent; color:var(--ink-600); }
.btn-ghost:hover{ color:var(--navy-800); }
.btn-danger-outline{ background:#fff; color:var(--danger); border-color:#F3C6C7; }
.btn-danger-outline:hover{ background:var(--danger-bg); }
.btn-kakao{ background:#FEE500; color:#191600; }
.btn-kakao:hover{ background:#F5DA00; }
.btn-block{ width:100%; }

/* ---------- Cards / surfaces ---------- */
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md); }
.card-pad{ padding:28px; }
.section-title{ font-size:28px; font-weight:800; letter-spacing:-.02em; color:var(--ink-900); }
.eyebrow{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:700; color:var(--navy-700); background:var(--indigo-100); padding:6px 12px; border-radius:999px; }

/* ---------- Badges ---------- */
.badge{ display:inline-flex; align-items:center; height:26px; padding:0 10px; border-radius:6px; font-size:12px; font-weight:700; white-space:nowrap; }
.badge-wait{ background:#EFF0F7; color:var(--ink-600); }
.badge-progress{ background:var(--indigo-100); color:var(--indigo-500); }
.badge-done{ background:var(--mint-100); color:var(--mint-500); }
.badge-cancel{ background:var(--danger-bg); color:var(--danger); }
.badge-deadline{ background:var(--amber-bg); color:var(--amber); }

/* ---------- Form elements ---------- */
.field{ margin-bottom:20px; }
.field label:not(.btn){ display:block; font-size:14px; font-weight:700; color:var(--ink-700); margin-bottom:8px; }
.field .req{ color:var(--danger); }
.field .hint{ font-size:12.5px; color:var(--ink-400); font-weight:500; margin-left:6px; }
.input, .textarea, .select{
  width:100%; height:50px; padding:0 16px; border:1px solid var(--line-strong); border-radius:10px;
  background:#fff; font-size:15px; transition:.15s;
}
.input:focus, .textarea:focus, .select:focus{ border-color:var(--navy-700); }
.textarea{ height:auto; padding:14px 16px; resize:vertical; min-height:120px; line-height:1.6; }
.error-text{ color:var(--danger); font-size:13px; font-weight:600; margin-top:6px; }
.success-text{ color:var(--mint-500); font-size:13px; font-weight:600; margin-top:6px; }
.field-row{ display:flex; gap:10px; }
.field-row .input{ flex:1; }
.phone-qr-panel{ display:flex; align-items:center; gap:16px; margin-top:12px; padding:16px; border:1px solid #d9def0; border-radius:8px; background:#f8faff; color:#4e5877; font-size:14px; line-height:1.55; }
.phone-qr-panel[hidden]{ display:none !important; }
.phone-qr-code{ display:flex; flex:0 0 112px; flex-direction:column; align-items:center; }
.phone-qr-panel img{ width:112px; height:112px; border:1px solid #e2e6f2; border-radius:8px; background:#fff; padding:6px; object-fit:contain; }
.phone-qr-timer{ margin-top:8px; color:#e5484d; font-size:13px; line-height:1; font-variant-numeric:tabular-nums; }
.phone-qr-panel p{ margin:0; }
.phone-confirm-row{ margin-top:10px; }
.phone-confirm-row[hidden]{ display:none !important; }
.checkbox-row, .radio-row{ display:flex; align-items:center; gap:8px; font-size:15px; color:var(--ink-700); }
.checkbox-row input, .radio-row input{ width:18px; height:18px; accent-color:var(--navy-700); }
.file-drop{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  border:1.5px dashed var(--line-strong); border-radius:10px; padding:14px 16px; background:#FBFBFD; font-size:14px; color:var(--ink-400);
}
.file-chip{ display:flex; align-items:center; justify-content:space-between; padding:11px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:14px; color:var(--ink-700); margin-bottom:8px; }
.file-chip button{ background:none; border:none; color:var(--ink-400); font-size:16px; }
.file-chip button:hover{ color:var(--danger); }

/* ---------- Tabs ---------- */
.tabs{ display:flex; border-bottom:1px solid var(--line); }
.tabs button{ flex:1; background:none; border:none; padding:16px 0; font-size:15px; font-weight:700; color:var(--ink-400); border-bottom:2.5px solid transparent; }
.tabs button.active{ color:var(--navy-800); border-color:var(--navy-700); }

/* ---------- Toast ---------- */
.toast{
  position:fixed; left:50%; bottom:40px; transform:translate(-50%,20px);
  background:rgba(20,21,43,.92); color:#fff; padding:14px 22px; border-radius:10px; font-size:14px; font-weight:600;
  opacity:0; pointer-events:none; transition:.25s ease; z-index:999; box-shadow:var(--shadow-lg);
}
.toast.show{ opacity:1; transform:translate(-50%,0); }

/* ---------- Modal ---------- */
.modal-backdrop{
  position:fixed; inset:0; background:rgba(18,19,74,.45); display:none; align-items:center; justify-content:center; z-index:900;
}
.modal-backdrop.show{ display:flex; }
.modal{ width:420px; background:#fff; border-radius:var(--radius-lg); padding:36px 32px 28px; text-align:center; position:relative; box-shadow:var(--shadow-lg); }
.modal .modal-close{ position:absolute; top:18px; right:18px; background:none; border:none; font-size:20px; color:var(--ink-400); }
.modal .modal-icon{ width:56px; height:56px; border-radius:50%; background:var(--indigo-100); color:var(--navy-700); display:flex; align-items:center; justify-content:center; margin:0 auto 18px; font-size:26px; font-weight:800; }
.modal h3{ font-size:18px; font-weight:700; line-height:1.5; margin-bottom:26px; }
.modal .modal-actions{ display:flex; gap:10px; }
.modal .modal-actions .btn{ flex:1; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy-900); color:#B9BAE0; padding:56px 0 36px; }
.site-footer .brand{ color:#fff; margin-bottom:14px; }
.site-footer .foot-cols{ display:flex; justify-content:space-between; gap:40px; margin-bottom:36px; }
.site-footer .foot-contact{ font-size:14px; line-height:2; }
.site-footer .foot-links{ display:flex; gap:24px; font-size:13.5px; }
.site-footer .foot-links a:hover{ color:#fff; }
.site-footer .legal{ font-size:12.5px; line-height:1.9; color:#82849C; border-top:1px solid rgba(255,255,255,.08); padding-top:24px; }
.site-footer .copyright{ font-size:12px; color:#65678A; margin-top:14px; }

/* ---------- Utility ---------- */
.flex{ display:flex; }
.items-center{ align-items:center; }
.justify-between{ justify-content:space-between; }
.gap-8{ gap:8px; } .gap-12{ gap:12px; } .gap-16{ gap:16px; } .gap-24{ gap:24px; }
.mt-8{ margin-top:8px;} .mt-12{margin-top:12px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;} .mt-48{margin-top:48px;}
.mb-8{ margin-bottom:8px;} .mb-12{margin-bottom:12px;} .mb-16{margin-bottom:16px;} .mb-24{margin-bottom:24px;}
.text-muted{ color:var(--ink-600); }
.text-faint{ color:var(--ink-400); }
.text-center{ text-align:center; }
.divider{ height:1px; background:var(--line); border:none; margin:28px 0; }
.empty-state{ text-align:center; color:var(--ink-400); font-size:14.5px; padding:60px 0; }
.skeleton-note{ text-align:center; color:var(--ink-400); font-size:13px; padding:18px 0; }

/* ---------- Simple app content layout ---------- */
.app-body{ padding:44px 0 100px; }
.page-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; }
.page-title{ font-size:26px; font-weight:800; letter-spacing:-.02em; }
.breadcrumb{ font-size:13.5px; color:var(--ink-400); margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.breadcrumb a:hover{ color:var(--navy-700); }

/* ---------- List rows (generic) ---------- */
.list-row{
  display:block; background:#fff; border:1px solid var(--line); border-radius:var(--radius-md);
  padding:22px 26px; margin-bottom:12px; transition:.15s;
}
.list-row:hover{ border-color:var(--navy-600); box-shadow:var(--shadow-sm); }
.list-row-top{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.list-row-title{ font-size:16.5px; font-weight:700; color:var(--ink-900); margin-bottom:6px; }
.list-row-meta{ font-size:13.5px; color:var(--ink-400); display:flex; gap:14px; }

/* ---------- Dropdown filter ---------- */
.dropdown{ position:relative; display:inline-block; }
.dropdown-trigger{
  display:flex; align-items:center; gap:8px; height:42px; padding:0 16px; background:#fff;
  border:1px solid var(--line-strong); border-radius:9px; font-size:14px; font-weight:600; color:var(--ink-700);
}
.dropdown-trigger:hover{ border-color:var(--navy-600); }
.dropdown-trigger .chev{ font-size:11px; color:var(--ink-400); }
.dropdown-menu{
  display:none; position:absolute; top:calc(100% + 6px); left:0; min-width:180px; background:#fff; border:1px solid var(--line);
  border-radius:10px; box-shadow:var(--shadow-md); padding:6px; z-index:60;
}
.dropdown-menu.open{ display:block; }
.dropdown-menu li{ padding:10px 12px; border-radius:7px; font-size:14px; font-weight:600; color:var(--ink-700); }
.dropdown-menu li:hover{ background:var(--bg); }
.dropdown-menu li.selected{ color:var(--navy-700); background:var(--indigo-100); }
.filter-bar{ display:flex; align-items:center; gap:10px; margin-bottom:22px; }

/* ---------- Toggle switch ---------- */
.toggle-row{ display:flex; align-items:center; gap:10px; font-size:14px; font-weight:600; color:var(--ink-700); }
.toggle-switch{ position:relative; width:42px; height:24px; }
.toggle-switch input{ opacity:0; width:0; height:0; }
.toggle-switch .slider{ position:absolute; inset:0; background:var(--line-strong); border-radius:999px; cursor:pointer; transition:.2s; }
.toggle-switch .slider::before{ content:''; position:absolute; width:18px; height:18px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; box-shadow:var(--shadow-sm); }
.toggle-switch input:checked + .slider{ background:var(--navy-700); }
.toggle-switch input:checked + .slider::before{ transform:translateX(18px); }

/* ---------- Two-column app layout (list + filter or content + sidebar) ---------- */
.two-col{ display:grid; grid-template-columns:1fr 340px; gap:32px; align-items:start; }
.sticky-box{ position:sticky; top:calc(var(--header-h) + 24px); }
