/* ===================================================================
   OGANNA Design Studio — 設計系統
   風格參考：awwwards.com 精選（Studio OL 的編輯感疊圖排版、
   Allgood Studio 的粗體無襯線+斜體襯線標題混搭）
   定位：多角色設計工作室（品牌識別／編輯排版／插畫／網站設計）
=================================================================== */

:root {
  --ink: #141414;
  --ink-soft: #3a3a38;
  --paper: #faf9f6;
  --paper-deep: #f0eee8;
  --line: #e2ded4;
  --grey: #6f6b62;
  --grey-light: #a39d8f;
  --white: #ffffff;
  --accent: #e8442a;
  --accent-dark: #c23420;
  --accent-tint: #fdeae6;

  --max-width: 1320px;
  --gutter: 32px;
  --radius-s: 6px;
  --radius-m: 14px;

  --font-sans: "Inter", "Noto Sans TC", "Hiragino Sans", -apple-system, sans-serif;
  --font-serif: "Source Serif 4", "Noto Serif TC", "Hiragino Mincho ProN", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
em, .serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1em; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 120px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 900px) {
  .section { padding: 72px 0; }
}

/* ---------- 排版比例 ---------- */
h1, .h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
h2, .h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3, .h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); display: inline-block; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; }

/* ---------- 按鈕 ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 32px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 600; font-size: .95rem; transition: all .25s ease; }
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-arrow::after { content: "→"; transition: transform .25s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 26px 0; mix-blend-mode: normal; transition: background .3s, padding .3s; }
.site-header.scrolled { background: rgba(250,249,246,.92); backdrop-filter: blur(10px); padding: 16px 0; border-bottom: 1px solid var(--line); }
.site-header .header-row { display: flex; align-items: center; justify-content: space-between; }
.logo-link img { height: 28px; }
.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav a { font-size: .92rem; font-weight: 600; position: relative; padding: 4px 0; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--ink); transition: width .25s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

/* 日文版選單文字較長，縮小字級與間距以維持單行顯示 */
html[lang="ja"] .main-nav { gap: 20px; }
html[lang="ja"] .main-nav a { font-size: .76rem; }
.header-right { display: flex; align-items: center; gap: 26px; }
.lang-switch { display: flex; gap: 6px; font-size: .82rem; font-weight: 700; }
.lang-switch a { padding: 4px 8px; border-radius: 4px; color: var(--grey); }
.lang-switch a.active, .lang-switch a:hover { color: var(--ink); background: var(--paper-deep); }
/* 漢堡選單：純三條線（無圓圈底色），線條加粗，與螢幕邊緣保持距離 */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 34px; height: 34px; border: none; border-radius: 0; background: none; padding: 0; margin-right: 14px; }
.hamburger span { display: block; width: 28px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 140px; padding-bottom: 0; position: relative; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { max-width: 980px; }
.hero h1 .serif-italic { color: var(--accent); }
.hero-meta { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 60px; gap: 40px; flex-wrap: wrap; }
.hero-meta .lede { margin: 0; }
.scroll-cue { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.scroll-cue .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* 滿版 Banner 輪播（首頁／Services 共用）：圖片＋選填文字疊層，帶視差滾動 */
.quad-hero { position: relative; overflow: hidden; aspect-ratio: 16/9; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); margin-top: 70px; margin-bottom: 0; background: var(--ink); display: block; }
.quad-hero img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.quad-hero iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; z-index: 1; }
/* 底部漸層暗化：確保疊圖文字在任何圖片上都清楚可讀（放在 slide 內、文字之下） */
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,0) 40%, rgba(20,20,20,.55) 100%); pointer-events: none; z-index: 1; }
.banner-text { z-index: 2; }
.banner-text {
  position: absolute; left: 6%; bottom: 10%; z-index: 2;
  display: inline-flex; align-items: baseline; gap: 14px;
  font-family: var(--font-serif); font-style: italic; color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 3rem); line-height: 1.25;
  text-shadow: 0 2px 24px rgba(0,0,0,.45); max-width: 70%;
  will-change: transform;
}
a.banner-text .banner-text-arrow { font-family: var(--font-sans); font-style: normal; font-size: .7em; transition: transform .25s ease; }
a.banner-text:hover span:first-child { text-decoration: underline; text-underline-offset: 6px; }
a.banner-text:hover .banner-text-arrow { transform: translateX(8px); }
/* 左右切換：純箭頭、加大、無白底圓形 */
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: auto; height: auto; border: none; border-radius: 0; background: none; color: #fff; font-size: 3.4rem; line-height: 1; padding: 10px 16px; text-shadow: 0 2px 16px rgba(0,0,0,.5); transition: transform .2s ease, color .2s ease; align-items: center; justify-content: center; }
.hero-arrow:hover { color: var(--accent); background: none; }
.hero-arrow.prev { left: 14px; }
.hero-arrow.prev:hover { transform: translateY(-50%) translateX(-4px); }
.hero-arrow.next { right: 14px; }
.hero-arrow.next:hover { transform: translateY(-50%) translateX(4px); }

/* ---------- Marquee 客戶跑馬燈：滿版無接縫，速度放慢，hover 暫停 ---------- */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-wrap .container { max-width: none; padding: 0; }
.marquee { display: flex; gap: 0; width: max-content; animation: marquee 90s linear infinite; align-items: center; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
.marquee img { height: 220px; width: auto; opacity: .55; filter: grayscale(1); object-fit: cover; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 60px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .lede { margin: 0; }

/* ---------- 作品格 Portfolio Grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.work-card { display: block; position: relative; }
.work-card .thumb { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4/3; background: var(--paper-deep); }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-card:hover .thumb img { transform: scale(1.04); }
.work-card .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; }
.work-card .meta h3 { margin: 0; font-size: 1.3rem; }
.work-card .tag { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.work-card .cat { font-size: .85rem; color: var(--grey); margin-top: 4px; }
.work-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.filter-row { display: flex; gap: 10px; margin-bottom: 50px; flex-wrap: wrap; }
.filter-pill { padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--grey); }
.filter-pill.active, .filter-pill:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-deep); }

/* ---------- 服務項目 Services ---------- */
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 90px 1fr 1fr 40px; gap: 30px; align-items: center; padding: 38px 0; border-bottom: 1px solid var(--line); transition: background .25s; }
.service-row:hover { background: var(--paper-deep); }
.service-row .num { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--accent); }
.service-row h3 { margin: 0; }
.service-row p { margin: 0; color: var(--grey); font-size: .95rem; }
.service-row .arrow { font-size: 1.4rem; transition: transform .25s; }
.service-row:hover .arrow { transform: translateX(6px); }
@media (max-width: 800px) {
  .service-row { grid-template-columns: 50px 1fr; }
  .service-row p, .service-row .arrow { grid-column: 2; }
}

/* ---------- 統計條 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 50px 0; }
.stat-row .stat .num { font-size: 2.6rem; font-weight: 700; font-family: var(--font-serif); font-style: italic; color: var(--accent); }
.stat-row .stat .label { font-size: .85rem; color: var(--grey); margin-top: 6px; }

/* ---------- 流程 Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.process-step { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }
.process-step .step-num { font-family: var(--font-serif); font-style: italic; font-size: 2rem; color: var(--accent-tint); -webkit-text-stroke: 1.5px var(--accent); color: transparent; display: block; margin-bottom: 18px; }
.process-step h3 { font-size: 1.05rem; }
.process-step p { font-size: .88rem; color: var(--grey); margin: 0; }

/* ---------- 見證/引言 ---------- */
.quote-block { max-width: 880px; }
.quote-block p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.5; color: var(--ink); }
.quote-block .who { font-size: .9rem; color: var(--grey); font-weight: 700; margin-top: 20px; }

/* ---------- 新聞 News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.news-card .thumb { aspect-ratio: 4/3; border-radius: var(--radius-m); overflow: hidden; background: var(--paper-deep); margin-bottom: 18px; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .date { font-size: .78rem; color: var(--grey); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
/* 列表整齊化：標題與摘要皆最多顯示 2 行，超出以 … 截斷；固定 2 行高度讓卡片對齊 */
.news-card h3 {
  font-size: 1.15rem; margin: 8px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(1.15rem * 1.15 * 2);
}
.news-card p {
  color: var(--grey); font-size: .9rem; margin-bottom: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-detail-body { max-width: 760px; margin: 0 auto; font-size: 1.05rem; color: var(--ink-soft); }
.news-detail-body h2 { margin-top: 1.4em; }
.news-detail-body img { border-radius: var(--radius-m); margin: 30px 0; }

/* ---------- 分頁 Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 70px; flex-wrap: wrap; }
.page-link { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--grey); }
.page-link:hover { border-color: var(--ink); color: var(--ink); }
.page-link.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- 麵包屑 / 頁首 subheader ---------- */
.page-hero { padding: 200px 0 80px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .82rem; color: var(--grey); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; }

/* ---------- 表單 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 8px; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--white); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field-hint { font-size: .78rem; color: var(--grey); margin-top: 6px; }

/* 驗證碼 */
.captcha-box { border: 1.5px dashed var(--line); border-radius: var(--radius-m); padding: 22px; background: var(--paper-deep); }
.captcha-challenge { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.captcha-challenge .equation { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 22px; user-select: none; letter-spacing: .05em; }
.captcha-challenge button.refresh { border: 1px solid var(--line); border-radius: 50%; width: 40px; height: 40px; background: var(--white); }
.captcha-box input { max-width: 160px; }
.captcha-note { font-size: .76rem; color: var(--grey); display: flex; align-items: center; gap: 6px; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcac0; padding: 90px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; padding: 50px 0 70px; }
.footer-top .footer-logo { height: 26px; margin-bottom: 20px; }
.footer-top p { color: #969083; font-size: .9rem; max-width: 320px; }
.footer-top h5 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }
.footer-top a { display: block; color: #b3ada0; font-size: .92rem; padding: 6px 0; }
.footer-top a:hover { color: var(--accent); }
.footer-cta { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; padding: 20px 0 60px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-cta a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 26px; font-size: .8rem; color: #8b8579; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); padding: 0; }
.footer-social a:hover { background: var(--accent); color: #fff; }

/* ---------- 作品詳情：上一件／下一件導覽 ---------- */
.work-pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.work-pager a { display: flex; flex-direction: column; gap: 8px; padding: 44px 32px; transition: background .25s; }
.work-pager a:hover { background: var(--paper-deep); }
.work-pager a.next { text-align: right; align-items: flex-end; border-left: 1px solid var(--line); }
.work-pager .dir { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.work-pager .wp-title { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.8rem); color: var(--ink); }
.work-pager a:hover .wp-title { color: var(--accent); }
@media (max-width: 600px) { .work-pager a { padding: 28px 18px; } }

/* ---------- 影片燈箱 Lightbox ---------- */
.lightbox-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,10,.92); align-items: center; justify-content: center; padding: 5vw; }
.lightbox-overlay.open { display: flex; }
.lightbox-inner { position: relative; width: 100%; max-width: 1100px; }
.lightbox-frame { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 10px; overflow: hidden; background: #000; }
.lightbox-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox-close { position: absolute; top: -46px; right: 0; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 1.4rem; line-height: 1; }
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); }
.work-card.has-video .thumb { cursor: pointer; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: rgba(20,20,20,.55); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .25s, background .25s; }
.play-icon svg { margin-left: 4px; }
#pd-hero-thumb:hover .play-icon { background: var(--accent); transform: translate(-50%, -50%) scale(1.08); }
.lightbox-fallback { display: block; text-align: center; color: #cfcac0; font-size: .82rem; margin-top: 12px; }
.lightbox-fallback a { text-decoration: underline; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav, .lang-switch { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(20,20,20,.08); padding: 8px 32px 20px; z-index: 199;
  }
  .main-nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-header .header-row { position: relative; justify-content: center; }
  .header-right { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .header-right > .btn-dark { display: none; }
  .hamburger { display: flex; }
  .work-grid, .work-grid.cols-3, .news-grid, .process-grid, .stat-row { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .work-grid, .work-grid.cols-3, .news-grid, .process-grid, .stat-row { grid-template-columns: 1fr; }
  .quad-hero { aspect-ratio: 4/3; }
  .banner-text { max-width: 82%; }
  .hero-arrow { font-size: 2.4rem; }
  /* 手機版：footer 只留 Logo／簡介／社群，其餘連結欄位隱藏以縮短頁面長度 */
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > div:nth-child(n+2) { display: none; }
  .section { padding: 60px 0; }
}

/* =====================================================
   後台管理
===================================================== */
.admin-body { background: #f4f2ee; font-family: var(--font-sans); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--ink); color: #cfcac0; padding: 26px 18px; }
.admin-sidebar .admin-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; padding: 0 10px 26px; }
.admin-sidebar .admin-logo img { height: 22px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-s); font-size: .9em; margin-bottom: 4px; color: #cfcac0; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: var(--accent); color: #fff; }
.admin-nav .nav-label { font-size: .72em; text-transform: uppercase; letter-spacing: .1em; color: #8b8579; margin: 18px 10px 8px; }
.admin-main { padding: 30px 36px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-topbar h1 { font-size: 1.4em; margin: 0; }
.admin-card { background: var(--white); border-radius: var(--radius-m); box-shadow: 0 2px 10px rgba(20,20,20,.06); padding: 24px; margin-bottom: 22px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 26px; }
.admin-stat { background: var(--white); border-radius: var(--radius-m); box-shadow: 0 2px 10px rgba(20,20,20,.06); padding: 22px; border-left: 4px solid var(--accent); }
.admin-stat .num { font-size: 1.7em; font-weight: 700; }
.admin-stat .label { font-size: .82em; color: var(--grey); }
.admin-table-scroll { overflow-x: auto; }
.admin-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: .8em; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); padding: 10px 14px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: .88em; vertical-align: middle; white-space: nowrap; }
.admin-table tr:hover td { background: var(--accent-tint); }
.admin-table img.thumb-sm { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; }
.admin-toolbar { display: flex; justify-content: space-between; margin-bottom: 18px; gap: 14px; flex-wrap: wrap; }
.admin-toolbar .search-box { flex: 1; max-width: 320px; padding: 10px 16px; border-radius: var(--radius-s); border: 1.5px solid var(--line); }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); display: inline-flex; align-items: center; justify-content: center; color: var(--grey); margin-right: 4px; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.status-pill { padding: 4px 12px; border-radius: 999px; font-size: .78em; font-weight: 700; }
.status-published { background: #dcf5e0; color: #2e8b57; }
.status-scheduled { background: #fff3d6; color: #b8860b; }
.status-draft { background: #f0ebe8; color: var(--grey-light); }
.status-spam { background: #fde2e2; color: #c23420; }
.editor-toolbar { border: 1px solid var(--line); border-bottom: none; border-radius: var(--radius-s) var(--radius-s) 0 0; background: #f7f4f1; padding: 8px 12px; font-size: .8em; color: var(--grey); }
.editor-body { border: 1px solid var(--line); border-radius: 0 0 var(--radius-s) var(--radius-s); min-height: 220px; padding: 14px; font-size: .92em; color: var(--ink-soft); }
.toggle-switch { width: 40px; height: 22px; border-radius: 999px; background: var(--line); position: relative; display: inline-block; cursor: pointer; }
.toggle-switch.on { background: #2e8b57; }
.toggle-switch .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; }
.toggle-switch.on .knob { left: 20px; }
.schedule-box { border: 1.5px dashed var(--accent); background: var(--accent-tint); border-radius: var(--radius-m); padding: 18px 20px; }
.login-box { max-width: 380px; margin: 100px auto; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 13px 26px; border-radius: 999px; font-size: .88rem; box-shadow: 0 20px 60px rgba(20,20,20,.2); z-index: 500; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
}
