/* ============================================
   目安箱 — 株式会社リフィード
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

:root {
    --green: #47B39D;
    --green-dark: #3a9682;
    --green-pale: rgba(71,179,157,0.07);
    --blue: #348edb;
    --blue-pale: rgba(52,142,219,0.07);
    --text: #241913;
    --text-sub: #5c544f;
    --text-hint: #9e9894;
    --bg: #f5f4f2;
    --bg-alt: #eceae7;
    --white: #fff;
    --red: #d4483b;
    --red-pale: rgba(212,72,59,0.07);
    --orange: #d4922a;
    --orange-pale: rgba(212,146,42,0.08);
    --purple: #7c6bae;
    --purple-pale: rgba(124,107,174,0.08);
    --line: #ddd9d5;
    --line-light: #e9e6e2;
    --sh-s: 0 1px 3px rgba(0,0,0,0.04);
    --sh-m: 0 2px 8px rgba(0,0,0,0.06);
    --r: 8px;
    --r-l: 12px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box }
html { font-size:15px; -webkit-font-smoothing:antialiased }
body {
    font-family: 'Noto Sans JP', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
}
a { color: var(--green-dark); text-decoration: none }
a:hover { text-decoration: underline }

/* ============================================
   投稿ページ
   ============================================ */
.post-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
}
.post-topbar-inner {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}
.post-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.post-topbar-logo {
    width: 32px; height: 32px;
    background: var(--green);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}
.post-topbar-text {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.post-topbar-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}
.post-topbar-company {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-hint);
}

.post-page {
    max-width: 620px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2rem;
}
.post-hero {
    background: linear-gradient(135deg, #f8fbfa 0%, #eef7f4 50%, #f0f4f8 100%);
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    padding: 2.25rem 2rem 1.75rem;
    margin-bottom: 1.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.post-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), #6dc4b0, var(--green));
}
.post-hero-inner {
    position: relative;
}
.post-hero-brand {
    margin-bottom: 1rem;
}
.post-hero-logo {
    height: 40px;
    width: auto;
}
.post-hero-divider {
    width: 32px;
    height: 2px;
    background: var(--green);
    margin: 0 auto 1rem;
    border-radius: 1px;
    opacity: 0.5;
}
.post-hero h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.6rem;
    letter-spacing: 0.08em;
}
.post-hero-desc {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 1.15rem;
}
.post-hero-security {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    background: linear-gradient(135deg, #fff5f5, #fff0f0);
    border: 1px solid rgba(212,72,59,0.18);
    border-radius: 8px;
    font-size: 0.76rem;
    color: #b33a2e;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 4px rgba(212,72,59,0.08);
}
.post-hero-security svg {
    flex-shrink: 0;
    color: #d4483b;
}
.post-hero .sp-hide { display: inline }

.post-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    padding: 2rem 2rem 1.75rem;
    box-shadow: var(--sh-s);
}

/* ---- 投稿完了 ---- */
.post-complete {
    text-align: center;
    padding: 3rem 2rem;
}
.complete-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    background: var(--green-pale);
    border-radius: 50%;
    color: var(--green);
    margin-bottom: 1.25rem;
    animation: completePopIn 0.4s ease;
}
@keyframes completePopIn {
    0% { transform: scale(0.5); opacity: 0 }
    70% { transform: scale(1.08) }
    100% { transform: scale(1); opacity: 1 }
}
.post-complete h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.post-complete p {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.post-footer {
    text-align: center;
    padding: 1.5rem 1rem 2.5rem;
    font-size: 0.7rem;
    color: var(--text-hint);
}

/* ---- Form ---- */
.fg { margin-bottom: 1.35rem }
.fg-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.fg-label label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}
.fg-label .req {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--red);
    background: var(--red-pale);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    line-height: 1.5;
    letter-spacing: 0.03em;
}
.fg-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 0.3rem;
    min-height: 1.2rem;
}
.fg-counter {
    font-size: 0.7rem;
    color: var(--text-hint);
    margin-left: auto;
    transition: color 0.15s;
}
.fg-counter.warn { color: var(--orange) }
.fg-counter.over { color: var(--red); font-weight: 600 }

.fc {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text);
    background: #fafaf9;
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.fc::placeholder { color: #c2bcb6 }
.fc:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-pale);
    background: var(--white);
}
.fc.has-error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-pale);
}
textarea.fc {
    min-height: 200px;
    resize: vertical;
    line-height: 1.8;
}
select.fc {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239e9894' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.fg-error {
    font-size: 0.75rem;
    color: var(--red);
    display: none;
}
.fg-error.show { display: block }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    border-radius: var(--r);
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px) }
.btn-primary {
    background: var(--green);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--green-dark);
    box-shadow: 0 2px 8px rgba(71,179,157,0.25);
    text-decoration: none;
}
.btn-secondary {
    background: var(--white);
    color: var(--text-sub);
    border: 1.5px solid var(--line);
}
.btn-secondary:hover {
    border-color: #ccc6c0;
    background: var(--bg);
    text-decoration: none;
}
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.78rem }
.btn-block { width: 100%; padding: 0.85rem }
.btn-submit { font-size: 0.92rem; padding: 0.9rem; margin-top: 0.5rem }
.btn-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.btn:disabled { opacity: 0.7; cursor: not-allowed }

/* ---- Confirm ---- */
.confirm-section { display: none }
.confirm-section.active { display: block; animation: fadeSlideIn 0.25s ease }
.form-section.hidden { display: none }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px) }
    to   { opacity: 1; transform: translateY(0) }
}

.confirm-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--line-light);
}
.confirm-header-icon { color: var(--blue); display: flex; align-items: center }
.confirm-dl {}
.confirm-dl dt {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-hint);
    margin-bottom: 0.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.confirm-dl dd {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--line-light);
    word-break: break-word;
}
.confirm-dl dd.body-val {
    white-space: pre-wrap;
}
.confirm-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.confirm-actions .btn { flex: 1 }

/* ---- Security Notice ---- */
.security-notice {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.76rem;
    color: var(--text-hint);
    line-height: 1.6;
    background: var(--green-pale);
    border-radius: var(--r);
}
.security-notice-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: var(--green);
}

/* ============================================
   ログインページ
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    padding: 2.5rem 2rem 2rem;
}
.auth-logo { text-align: center; margin-bottom: 1.75rem }
.auth-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--green);
    border-radius: 11px;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: var(--white);
}
.auth-logo h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}
.auth-logo .company-name {
    font-size: 0.68rem;
    color: var(--text-hint);
    margin-top: 0.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}
.auth-logo p {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-top: 0.4rem;
}
.form-group { margin-bottom: 1.15rem }
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 0.35rem;
}
/* reuse .fc for login inputs too via class */
.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control::placeholder { color: #bbb5af }
.form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 2.5px var(--green-pale);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239e9894' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--r);
    font-size: 0.85rem;
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
}
.alert-error {
    background: var(--red-pale);
    color: #a0362c;
}
.alert-success {
    background: var(--green-pale);
    color: var(--green-dark);
}

/* ============================================
   Layout（管理画面）
   ============================================ */
.app-layout { display: flex; min-height: 100vh }
.sidebar-spacer { width: 240px; flex-shrink: 0 }

/* ---- Sidebar ---- */
.sidebar {
    width: 240px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform 0.2s;
    border-right: 1px solid var(--line);
}
.sidebar-brand {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--line-light);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.sidebar-brand-icon {
    width: 32px; height: 32px;
    background: var(--green);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; color: var(--white); flex-shrink: 0;
}
.sidebar-brand h2 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}
.sidebar-brand small {
    display: block;
    font-size: 0.6rem;
    color: var(--text-hint);
    font-weight: 500;
    margin-top: 1px;
}

.sidebar-nav { flex: 1; padding: 0.6rem 0.55rem; display: flex; flex-direction: column; gap: 1px }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-sub);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s;
}
.sidebar-nav a:hover { background: var(--bg); color: var(--text) }
.sidebar-nav a.active { background: var(--green-pale); color: var(--green-dark); font-weight: 600 }
.sidebar-nav a .nav-icon { width: 20px; text-align: center; font-size: 0.95rem }

.sidebar-user {
    padding: 0.85rem 0.9rem;
    border-top: 1px solid var(--line-light);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.sidebar-user-avatar {
    width: 30px; height: 30px;
    background: var(--green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; color: var(--white); flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0 }
.sidebar-user-info .name { font-size: 0.78rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.sidebar-user-info .role { font-size: 0.65rem; color: var(--text-hint) }
.sidebar-user .logout-btn {
    color: var(--text-hint);
    text-decoration: none;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--line);
    transition: all 0.15s;
    background: var(--white);
}
.sidebar-user .logout-btn:hover { color: var(--red); border-color: var(--red); background: var(--red-pale) }

/* ---- Main ---- */
.main-content {
    flex: 1;
    padding: 2rem 2.25rem;
    max-width: 1050px;
    min-width: 0;
}
.page-header { margin-bottom: 1.75rem }
.page-header h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.page-header p {
    color: var(--text-hint);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ---- Cards ---- */
.card {
    background: var(--white);
    border-radius: var(--r-l);
    border: 1px solid var(--line);
    overflow: hidden;
}
.card-header {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--line-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
}
.card-header h2 { font-size: 0.85rem; font-weight: 600; color: var(--text) }
.card-body { padding: 1.35rem }

/* ---- Stats ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: box-shadow 0.15s;
}
.stat-card:hover { box-shadow: var(--sh-m) }
.stat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; flex-shrink: 0;
}
.stat-icon.total   { background: var(--green-pale); color: var(--green-dark) }
.stat-icon.pending { background: var(--orange-pale); color: var(--orange) }
.stat-icon.done    { background: var(--green-pale); color: var(--green-dark) }
.stat-icon.recent  { background: var(--blue-pale); color: var(--blue) }
.stat-content .stat-value { font-size: 1.3rem; font-weight: 700; color: var(--text); line-height: 1.2 }
.stat-content .stat-label { font-size: 0.7rem; color: var(--text-hint); margin-top: 0.05rem; font-weight: 500 }

/* ---- Table ---- */
.table-wrap { overflow-x: auto }
table { width: 100%; border-collapse: collapse }
table th, table td { padding: 0.7rem 0.9rem; text-align: left; font-size: 0.85rem; border-bottom: 1px solid var(--line-light) }
table th { font-weight: 600; color: var(--text-hint); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg); white-space: nowrap }
table tbody tr:hover td { background: rgba(71,179,157,0.03) }
table td a { color: var(--green-dark); font-weight: 500 }
table td a:hover { color: var(--green) }

/* ---- Badges ---- */
.badge {
    display: inline-block;
    padding: 0.12rem 0.55rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-pending   { background: var(--orange-pale); color: #916a10 }
.badge-confirmed { background: var(--blue-pale); color: #1e6aaf }
.badge-progress  { background: var(--purple-pale); color: #5c4e8a }
.badge-done      { background: var(--green-pale); color: var(--green-dark) }
.badge-hold      { background: var(--bg-alt); color: var(--text-hint) }
.badge-encrypted {
    background: var(--green-pale);
    color: var(--green-dark);
    font-size: 0.68rem;
    vertical-align: middle;
}

/* ---- Filter ---- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    padding: 0.85rem 1.1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line-light);
}
.filter-bar .form-control { width: auto; min-width: 140px; padding: 0.45rem 0.7rem; font-size: 0.8rem }
.filter-bar select.form-control { padding-right: 2rem }

/* ---- Detail ---- */
.detail-card { max-width: 780px }
.detail-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.detail-topbar-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.detail-topbar-title h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}
.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line-light);
}
.detail-meta dt { font-weight: 600; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-hint); margin-bottom: 0.2rem }
.detail-meta dd { color: var(--text); font-size: 0.85rem }
.detail-meta .dd-poster { font-weight: 600 }
.detail-meta .dd-mono { font-family: 'SF Mono', 'Consolas', monospace }
.detail-ua {
    padding: 0.65rem 1.35rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line-light);
}
.detail-ua dt { font-weight: 600; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-hint); margin-bottom: 0.15rem }
.detail-ua dd { font-size: 0.85rem; color: var(--text-sub); word-break: break-all; font-family: 'SF Mono', 'Consolas', monospace; line-height: 1.5 }
.detail-title-section {
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid var(--line-light);
}
.detail-title-section h2 { font-size: 1.1rem; font-weight: 700; color: var(--text) }
.detail-body { padding: 1.35rem; white-space: pre-wrap; line-height: 1.9; color: var(--text); font-size: 0.9rem }
.detail-admin-form { padding: 1.25rem 1.35rem; background: var(--bg); border-top: 1px solid var(--line-light) }
.detail-admin-form h3 { font-size: 0.78rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-hint); text-transform: uppercase; letter-spacing: 0.04em }
.admin-action-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.admin-action-row .form-group:first-child { flex: 0 0 180px }

/* ---- Mobile List (admin) ---- */
.desktop-only { display: block }
.mobile-only { display: none }
.mobile-list { padding: 0 }
.mobile-item {
    display: block;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--line-light);
    text-decoration: none;
    color: var(--text);
    transition: background 0.12s;
}
.mobile-item:hover { background: rgba(71,179,157,0.03); text-decoration: none }
.mobile-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3rem }
.mobile-item-id { font-size: 0.72rem; color: var(--text-hint); font-weight: 500 }
.mobile-item-title { font-size: 0.9rem; font-weight: 600; color: var(--green-dark); line-height: 1.4; margin-bottom: 0.3rem }
.mobile-item-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--text-hint) }
.mobile-item-poster { font-weight: 500; color: var(--text-sub) }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 0.3rem; justify-content: center; padding: 1.1rem 0 }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 0.4rem;
    border-radius: 6px; font-size: 0.8rem; font-weight: 500;
    text-decoration: none; border: 1px solid var(--line);
    color: var(--text-sub); background: var(--white);
    transition: all 0.15s;
}
.pagination a:hover { border-color: var(--green); color: var(--green-dark) }
.pagination .active { background: var(--green); color: var(--white); border-color: var(--green) }

/* ---- Empty ---- */
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-hint) }
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 0.5rem; opacity: 0.25 }
.empty-state p { font-size: 0.85rem }

/* ---- Mobile ---- */
.mobile-toggle {
    display: none; position: fixed; top: 0.75rem; left: 0.75rem; z-index: 200;
    width: 38px; height: 38px; border-radius: 8px;
    background: var(--white); border: 1px solid var(--line);
    box-shadow: var(--sh-m); font-size: 1rem; color: var(--text);
    cursor: pointer; align-items: center; justify-content: center;
}
.mobile-overlay { display: none; position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,0.2) }
.mobile-overlay.show { display: block }

@media(max-width:1024px) {
    .stats-grid { grid-template-columns: repeat(2,1fr) }
    .detail-meta { grid-template-columns: repeat(2,1fr) }
}
@media(max-width:768px) {
    .mobile-toggle { display: flex }
    .sidebar { transform: translateX(-100%) }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,0.08) }
    .sidebar-spacer { display: none }
    .main-content { padding: 3.5rem 0.85rem 2rem }
    .filter-bar { flex-direction: column; padding: 0.75rem }
    .filter-bar .form-control { width: 100% }
    .filter-bar .btn { width: 100% }
    .auth-card { padding: 2rem 1.5rem }
    .post-page { padding: 1.5rem 1rem 1.5rem }
    .post-hero { padding: 1.75rem 1.25rem 1.5rem; margin-bottom: 1.25rem }
    .post-hero h1 { font-size: 1.15rem }
    .post-hero .sp-hide { display: none }
    .post-hero-logo { height: 34px }
    .post-card { padding: 1.5rem 1.25rem 1.25rem }
    .post-complete { padding: 2.5rem 1.5rem }
    .post-topbar { padding: 0 1rem }
    .confirm-actions { flex-direction: column-reverse; gap: 0.5rem }
    .detail-meta { grid-template-columns: 1fr 1fr; padding: 0.85rem 1rem; gap: 0.75rem }
    .detail-ua { padding: 0.6rem 1rem }
    .detail-title-section { padding: 1rem }
    .detail-body { padding: 1rem }
    .detail-admin-form { padding: 1rem }
    .admin-action-row { flex-direction: column }
    .admin-action-row .form-group:first-child { flex: none; width: 100% }
    .admin-action-row .btn { width: 100%; padding: 0.6rem }
    .desktop-only { display: none }
    .mobile-only { display: block }
    .page-header h1 { font-size: 1.05rem }
    .page-header p { font-size: 0.75rem }
    .detail-topbar { gap: 0.6rem }
    .detail-topbar-title h1 { font-size: 1rem }
    .stat-card { padding: 0.75rem }
    .stat-icon { width: 36px; height: 36px; font-size: 0.95rem }
    .stat-content .stat-value { font-size: 1.15rem }
    .pagination a, .pagination span { min-width: 30px; height: 30px; font-size: 0.75rem }
}
@media(max-width:480px) {
    .stats-grid { grid-template-columns: repeat(2,1fr) }
    .detail-meta { grid-template-columns: 1fr }
    .main-content { padding: 3.25rem 0.65rem 1.5rem }
}
