  :root {
    --green: #3d6b4f;
    --green-light: #f0f7f2;
    --green-mid: #c8e6d0;
    --dark: #1c2b20;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --border: #e5e7eb;
    --white: #ffffff;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --radius: 16px;
  }
  * { margin:0; padding:0; box-sizing:border-box; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Noto Sans KR', -apple-system, sans-serif; color: var(--dark); background: #f8faf9; line-height: 1.6; }
  a { color: inherit; text-decoration: none; }

  /* ── HERO (고정 헤더) ── */
  .hero {
    background: var(--dark);
    padding: 0;
    text-align: center;
    position: sticky; top: 0; z-index: 100;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  }
  .hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(61,107,79,0.45) 0%, transparent 65%);
    pointer-events: none;
  }
  .hero-inner {
    position: relative; z-index: 1;
    max-width: 860px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 12px 24px; flex-wrap: wrap;
  }
  .hero-id { display: flex; align-items: baseline; gap: 10px; text-align: left; }
  .hero-id .hero-name { font-size: 1rem; font-weight: 800; color: var(--white); letter-spacing: -0.3px; white-space: nowrap; }
  .hero-id .hero-role { font-size: 0.78rem; color: rgba(255,255,255,0.55); white-space: nowrap; }

  /* ── NAV ── */
  nav {
    display: flex; align-items: center;
    position: relative; z-index: 1;
  }
  .nav-logo { display: none; }
  .nav-links { display: flex; gap: 22px; }
  .nav-links a {
    font-size: 0.83rem; color: rgba(255,255,255,0.55);
    font-weight: 500; transition: color .15s; cursor: grab;
    user-select: none; padding: 6px 4px; border-radius: 6px;
    position: relative;
  }
  .nav-links a:hover { color: rgba(255,255,255,1); }
  .nav-links a.dragging { opacity: 0.4; cursor: grabbing; }
  .nav-links a.drag-over { color: rgba(255,255,255,1); background: rgba(255,255,255,0.12); }
  .nav-links a.active { color: var(--white); }
  .nav-links a.active::after {
    content: ''; position: absolute; left: 4px; right: 4px; bottom: -2px;
    height: 2px; background: #7ecf9a; border-radius: 2px;
  }

  /* ── 섹션 드래그 ── */
  .section { transition: box-shadow .2s, opacity .2s; }
  .section.sec-dragging { opacity: 0.35; }
  .section.sec-over {
    box-shadow: 0 0 0 2px var(--green), 0 4px 20px rgba(61,107,79,0.15);
    border-radius: var(--radius);
  }
  .drag-handle {
    display: inline-flex; align-items: center; gap: 6px;
    cursor: grab; user-select: none;
  }
  .drag-handle::before {
    content: '⠿'; font-size: 1rem; color: var(--gray); opacity: 0.5;
    transition: opacity .15s;
  }
  .drag-handle:hover::before { opacity: 1; }
  .btn-g:hover { background: rgba(255,255,255,0.08); }

  /* ── LAYOUT ── */
  .page { max-width: 860px; margin: 0 auto; padding: 0 24px; }

  /* ── SECTION ── */
  .section { padding: 40px 0 64px; display: block; animation: secIn .25s ease; }
  @keyframes secIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  .sec-header { margin-bottom: 28px; }
  .sec-label {
    font-size: 0.75rem; font-weight: 700; color: var(--green);
    letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px;
  }
  .sec-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.3px; }
  .sec-sub { font-size: 0.88rem; color: var(--gray); margin-top: 4px; }

  /* ── PROFILE ── */
  .profile-card {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 32px;
    display: flex; gap: 32px; align-items: flex-start;
  }
  .profile-left { flex-shrink: 0; text-align: center; }
  .profile-avatar {
    width: 96px; height: 96px; border-radius: 50%;
    background: var(--green-light); border: 3px solid var(--green-mid);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; cursor: pointer; overflow: hidden; margin-bottom: 12px;
  }
  .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .avatar-hint { font-size: 0.72rem; color: var(--gray); }
  .profile-right { flex: 1; }
  .profile-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
  .profile-role { font-size: 0.88rem; color: var(--gray); margin-bottom: 20px; }
  .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .info-row {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid var(--border); align-items: baseline;
  }
  .info-row:nth-last-child(-n+2) { border-bottom: none; }
  .info-key { font-size: 0.8rem; color: var(--gray); width: 52px; flex-shrink: 0; font-weight: 500; }
  .info-val { font-size: 0.88rem; font-weight: 600; }
  .profile-quote {
    margin-top: 20px; padding: 14px 16px;
    background: var(--green-light); border-radius: 10px;
    font-size: 0.85rem; color: var(--dark); border-left: 3px solid var(--green);
  }

  /* ── WORK ── */
  .work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .work-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px 16px; text-align: center;
    transition: border-color .2s, box-shadow .2s;
  }
  .work-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
  .work-icon { font-size: 1.6rem; margin-bottom: 8px; }
  .work-name { font-size: 0.85rem; font-weight: 700; }

  /* ── BOARD ── */
  .board-wrap {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
  }
  .board-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; border-bottom: 1px solid var(--border);
  }
  .board-head-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 1rem; font-weight: 800;
  }
  .btn-admin-edit {
    font-size: 0.78rem; color: #2563eb; font-weight: 600;
    background: none; border: none; cursor: pointer; padding: 4px 8px;
    border-radius: 6px; transition: background .15s;
  }
  .btn-admin-edit:hover { background: #eff6ff; }
  .post-list { display: flex; flex-direction: column; }
  .post-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 24px; border-bottom: 1px solid var(--border);
    gap: 12px; transition: background .15s;
  }
  .post-row:last-child { border-bottom: none; }
  .post-row:hover { background: #f8faf9; }
  .post-row-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
  .post-badge {
    flex-shrink: 0; background: #2563eb; color: #fff;
    font-size: 0.7rem; font-weight: 700; padding: 2px 7px;
    border-radius: 4px; letter-spacing: 0.3px;
  }
  .post-row-title {
    font-size: 0.9rem; font-weight: 500; color: var(--dark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .post-row-arrow { font-size: 0.75rem; color: #bbb; flex-shrink: 0; }
  .post-row-date { font-size: 0.78rem; color: #aaa; flex-shrink: 0; white-space: nowrap; }
  .btn-add {
    background: var(--green); color: var(--white); border: none;
    border-radius: 8px; padding: 9px 18px; font-size: 0.85rem;
    font-weight: 700; cursor: pointer; transition: opacity .15s;
  }
  .btn-add:hover { opacity: 0.85; }
  .btn-del {
    flex-shrink: 0; background: none; border: 1px solid #fca5a5;
    color: #ef4444; border-radius: 6px; padding: 3px 8px;
    font-size: 0.72rem; cursor: pointer; transition: background .15s;
  }
  .btn-del:hover { background: #fee2e2; }
  .empty { text-align: center; padding: 40px 0; color: var(--gray); font-size: 0.88rem; }
  .post-detail-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
  .post-detail-date { font-size: 0.78rem; color: var(--gray); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
  .post-detail-body { font-size: 0.9rem; line-height: 1.7; color: var(--dark); white-space: pre-wrap; }

  /* ── VIDEO ── */
  .video-toolbar { display: flex; gap: 8px; margin-bottom: 16px; }
  .btn-blue { background: #2563eb; }
  .video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .video-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
    transition: box-shadow .2s;
  }
  .video-card:hover { box-shadow: var(--shadow); }
  .video-thumb { position: relative; padding-top: 56.25%; background: #111; }
  .video-thumb iframe, .video-thumb video {
    position: absolute; inset: 0; width: 100%; height: 100%; border: none;
  }
  .video-meta { padding: 14px 16px; }
  .video-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
  .video-date { font-size: 0.75rem; color: var(--gray); }

  /* ── UPLOAD PROGRESS ── */
  #upload-progress { margin-bottom: 16px; }
  .progress-wrap {
    background: var(--green-light); border: 1px solid var(--green-mid);
    border-radius: 10px; padding: 16px 20px;
  }
  .progress-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--green); }
  .progress-bar { height: 6px; background: var(--green-mid); border-radius: 3px; overflow: hidden; }
  .progress-fill { height: 100%; background: var(--green); border-radius: 3px; transition: width .3s; }

  /* ── MODAL ── */
  .modal-bg {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 200;
    align-items: center; justify-content: center;
  }
  .modal-bg.open { display: flex; }
  .modal {
    background: var(--white); border-radius: 20px; padding: 32px;
    width: 92%; max-width: 460px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  }
  .modal-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 24px; }
  .field { margin-bottom: 14px; }
  .field label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--gray); margin-bottom: 5px; letter-spacing: 0.3px; }
  .field input, .field textarea {
    width: 100%; padding: 10px 13px; border: 1.5px solid var(--border);
    border-radius: 9px; font-size: 0.9rem; font-family: inherit; color: var(--dark);
    transition: border-color .15s; background: var(--white);
  }
  .field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
  .field textarea { resize: vertical; min-height: 90px; }
  .modal-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }
  .btn-cancel {
    background: var(--gray-light); border: none; border-radius: 8px;
    padding: 10px 18px; font-size: 0.88rem; cursor: pointer; font-weight: 600; color: var(--gray);
  }
  .btn-submit {
    background: var(--green); color: var(--white); border: none;
    border-radius: 8px; padding: 10px 22px; font-size: 0.88rem;
    font-weight: 700; cursor: pointer; transition: opacity .15s;
  }
  .btn-submit:hover { opacity: 0.85; }
  .btn-danger { background: #ef4444; }

  /* ── FOOTER ── */
  footer {
    background: var(--dark); color: rgba(255,255,255,0.45);
    text-align: center; padding: 40px 24px; font-size: 0.82rem; line-height: 1.9;
  }
  footer strong { color: rgba(255,255,255,0.8); }

  /* ── TOAST ── */
  .toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
    background: var(--dark); color: var(--white); padding: 12px 22px;
    border-radius: 10px; font-size: 0.88rem; z-index: 999;
    opacity: 0; transition: opacity .25s; pointer-events: none; white-space: nowrap;
  }
  .toast.show { opacity: 1; }

  @media (max-width: 600px) {
    .hero { padding: 0; }
    .hero-inner { padding: 10px 24px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .hero-id { gap: 8px; }
    .hero-id .hero-role { display: none; }
    .nav-links { gap: 14px; }
    .profile-card { flex-direction: column; gap: 20px; }
    .info-grid { grid-template-columns: 1fr; }
    .info-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .info-row:last-child { border-bottom: none; }
    .work-grid { grid-template-columns: repeat(2, 1fr); }
  }
