:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f9fafc;
  --ink: #202733;
  --muted: #5c6675;
  --blue: #245bcc;
  --blue-dark: #1749ae;
  --blue-soft: #eaf1ff;
  --line: #e1e6ee;
  --line-strong: #cbd3df;
  --danger: #b9382f;
  --danger-soft: #fff0ee;
  --shadow: 0 12px 30px rgba(32, 39, 51, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 15px/1.6 "Noto Sans KR", sans-serif; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid rgba(36, 91, 204, .35); outline-offset: 3px; }

.site-header { position: sticky; z-index: 20; top: 0; min-height: 74px; padding: 12px max(24px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: auto minmax(280px, 500px) auto; gap: 28px; align-items: center; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand > span { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 10px; font: 700 18px/1 "Space Grotesk", sans-serif; }
.brand strong { font-size: 18px; letter-spacing: -.04em; }
.header-search { min-width: 0; display: flex; background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.header-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 91, 204, .1); }
.header-search input { min-width: 0; width: 100%; padding: 10px 14px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.header-search button { min-width: 76px; padding: 9px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #fff; background: var(--blue); border: 0; font-weight: 700; }
.header-search button:hover { background: var(--blue-dark); }
.header-search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.site-header nav { justify-self: end; display: flex; align-items: center; gap: 20px; white-space: nowrap; font-size: 14px; font-weight: 700; }
.site-header nav a:hover, .nav-button:hover { color: var(--blue); }
.inline-form { display: inline; margin: 0; }
.nav-button { padding: 0; color: inherit; background: none; border: 0; font-weight: 700; }

main { min-height: calc(100vh - 150px); }
.library-shell, .detail-shell, .admin-shell { max-width: 1240px; margin: 0 auto; padding: 38px 24px 72px; }
.section-kicker { margin: 0 0 6px; color: var(--blue); font: 700 11px/1.2 "Space Grotesk", sans-serif; letter-spacing: .14em; }
.library-heading { margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.library-heading h1, .admin-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 45px); line-height: 1.2; letter-spacing: -.05em; }
.library-heading p:not(.section-kicker), .admin-heading p:not(.section-kicker) { margin: 8px 0 0; color: var(--muted); }
.result-count { padding: 10px 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; white-space: nowrap; font-weight: 600; }
.result-count span { color: var(--blue); font: 700 22px/1 "Space Grotesk", sans-serif; }

.category-tabs { display: none; }
.library-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; align-items: start; }
.category-sidebar { padding: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.category-sidebar > p { margin: 5px 10px 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.category-sidebar a { min-height: 43px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #485261; border-radius: 8px; font-size: 14px; }
.category-sidebar a:hover { color: var(--blue); background: var(--blue-soft); }
.category-sidebar a.active { color: #fff; background: var(--blue); font-weight: 700; }
.filter-summary { margin-bottom: 14px; padding: 11px 14px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.filter-summary a { color: var(--blue); font-weight: 700; }

.app-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.app-row { min-width: 0; min-height: 126px; padding: 17px; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.app-row:hover { border-color: #b9c8e8; box-shadow: var(--shadow); transform: translateY(-1px); }
.app-icon { width: 92px; height: 92px; padding: 5px; display: grid; place-items: center; overflow: hidden; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; }
.app-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.app-icon img.is-fallback { padding: 2px; }
.app-row__main { min-width: 0; }
.category-label { display: inline-block; color: var(--blue); font-size: 11px; font-weight: 700; }
.app-row h2 { margin: 4px 0 1px; overflow: hidden; font-size: 17px; line-height: 1.35; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.app-row h2 a:hover { color: var(--blue); }
.app-row__main > p { margin: 0; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.app-row__meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12px; }
.app-row__meta span + span::before { content: "·"; margin-right: 12px; color: var(--line-strong); }
.row-link { align-self: stretch; min-width: 50px; display: flex; align-items: center; justify-content: flex-end; color: var(--blue); font-size: 12px; font-weight: 700; }
.row-link span { margin-left: 4px; font-size: 16px; }

.pagination { margin-top: 28px; display: flex; justify-content: center; gap: 7px; }
.pagination a { width: 38px; height: 38px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-weight: 700; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination a.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.empty-state { min-height: 360px; padding: 50px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.empty-state > span { width: 48px; height: 48px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-size: 28px; }
.empty-state strong { margin-top: 17px; font-size: 20px; }
.empty-state p { margin: 6px 0 16px; color: var(--muted); }
.empty-state a { color: var(--blue); font-weight: 700; }

.detail-shell { max-width: 1080px; }
.back-link { margin-bottom: 20px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 700; }
.back-link:hover { color: var(--blue); }
.detail-summary { padding: 24px; display: grid; grid-template-columns: 184px minmax(0, 1fr) 210px; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.detail-icon { width: 184px; height: 184px; padding: 9px; display: grid; place-items: center; overflow: hidden; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px; }
.detail-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.detail-title { min-width: 0; }
.detail-title h1 { margin: 7px 0 5px; font-size: clamp(29px, 4vw, 45px); line-height: 1.2; letter-spacing: -.05em; overflow-wrap: anywhere; }
.detail-title > p { margin: 0; color: var(--muted); font-size: 17px; overflow-wrap: anywhere; }
.detail-title > .detail-deck { max-width: 650px; margin-top: 13px; color: #354154; font-size: 14px; line-height: 1.65; }
.detail-updated { margin-top: 14px; color: var(--muted); font-size: 13px; }
.download-panel { min-width: 0; padding-left: 24px; display: grid; gap: 13px; border-left: 1px solid var(--line); }
.download-panel > strong { color: var(--ink); font: 700 23px/1.2 "Space Grotesk", sans-serif; overflow-wrap: anywhere; }
.primary-cta, .secondary-button { min-height: 44px; padding: 11px 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 9px; text-align: center; font-weight: 700; }
.primary-cta:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.primary-cta.is-disabled { cursor: not-allowed; color: #727b88; background: #eef1f5; border-color: var(--line); font-size: 13px; }
.secondary-button { color: var(--blue); background: var(--surface); }
.secondary-button:hover { background: var(--blue-soft); }
.app-facts { margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr) 2fr; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.app-facts div { min-width: 0; padding: 14px 17px; border-right: 1px solid var(--line); }
.app-facts div:last-child { border-right: 0; }
.app-facts dt { color: var(--muted); font-size: 12px; }
.app-facts dd { margin: 3px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.app-detail-guide { margin-top: 20px; }
.app-detail-guide h3 { margin: 28px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.app-detail-guide h3:first-child { margin-top: 0; }
.app-detail-guide p { line-height: 1.8; }
.app-detail-guide .app-overview { padding: 18px 20px; color: #2d3a4d; background: var(--blue-soft); border-left: 4px solid var(--blue); border-radius: 8px; }
.app-detail-guide ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.app-detail-guide li { min-width: 0; padding: 12px 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; line-height: 1.65; overflow-wrap: anywhere; }
.app-detail-guide li strong, .app-detail-guide li span { display: block; }
.app-detail-guide li span { margin-top: 3px; color: var(--muted); }
.store-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.store-facts div { padding: 11px 13px; border-bottom: 1px solid var(--line); }
.store-facts dt { color: var(--muted); font-size: 12px; }
.store-facts dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.source-note { color: var(--muted); font-size: 12px; }
.store-link { display: inline-flex; padding: 9px 13px; color: var(--blue); background: var(--blue-soft); border-radius: 8px; font-size: 13px; font-weight: 800; text-decoration: none !important; }
.app-faq details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.app-faq summary { cursor: pointer; font-weight: 800; }
.content-card, .comments, .admin-table { margin-top: 22px; padding: clamp(22px, 4vw, 38px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.app-intro-image { margin: 22px 0 0; padding: 0; overflow: hidden; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; }
.app-intro-image img { width: 100%; height: auto; max-height: 560px; display: block; object-fit: contain; background: var(--surface-soft); }
.app-intro-image figcaption { padding: 9px 14px; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); font-size: 12px; }
.app-detail-guide .practical-tips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0; list-style: none; }
.app-detail-guide .practical-tips li { padding: 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; }
.app-detail-guide .practical-tips strong { display: block; margin-bottom: 5px; color: var(--ink); }
.content-heading, .comments h2, .admin-table h2 { margin: 0 0 22px; font-size: 22px; letter-spacing: -.03em; }
.content-card > :last-child { margin-bottom: 0; }
.content-card p, .content-card li { color: #3e4856; }
.content-card img { max-width: 100%; height: auto; margin: 20px auto; border-radius: 9px; }
.content-card a:not(.download-cta) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.content-card .download-cta { display: none; }
.content-card .app-copy > .app-copy__cover,
.content-card .app-copy > h2,
.content-card .app-copy > .app-copy__meta,
.content-card .app-copy > dl,
.content-card .app-copy > .download-cta { display: none; }
.content-card > .app-copy__cover,
.content-card > h2:not(.content-heading),
.content-card > .app-copy__meta,
.content-card > dl,
.content-card > .download-cta { display: none; }
.technical-card { margin-top: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.technical-card h2 { margin: 0 0 16px; font-size: 20px; letter-spacing: -.03em; }
.technical-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.technical-facts div { min-width: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.technical-facts dt { color: var(--muted); font-size: 12px; }
.technical-facts dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.comments h2 span { color: var(--blue); font: 700 16px/1 "Space Grotesk", sans-serif; }
.comments article { padding: 17px 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; border-top: 1px solid var(--line); }
.comments article:first-of-type { border-top: 0; }
.comments time { color: var(--muted); font-size: 12px; }
.comments p { grid-column: 1 / -1; margin: 0; }
.detail-toc { margin-top: 18px; padding: 18px 20px; background: #eef4ff; border: 1px solid #d4e0f8; border-radius: 12px; }
.detail-toc strong { display: block; margin-bottom: 10px; font-size: 14px; }
.detail-toc div { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-toc a { padding: 7px 10px; color: var(--blue); background: #fff; border: 1px solid #d4e0f8; border-radius: 999px; font-size: 12px; font-weight: 700; }
.guide-section { scroll-margin-top: 100px; }
.guide-section + .guide-section { margin-top: 32px; padding-top: 1px; border-top: 1px solid var(--line); }
.guide-section p { max-width: 780px; margin: 10px 0; }
.app-actions { margin-top: 22px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #f0f5ff; border: 1px solid #d4e0f8; border-radius: 12px; }
.app-actions h2 { margin: 0; font-size: 21px; }
.app-actions p:not(.section-kicker) { margin: 5px 0 0; color: var(--muted); }
.action-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.action-buttons form { margin: 0; }
.reaction-button { min-height: 42px; padding: 9px 13px; color: #425069; background: #fff; border: 1px solid #cbd7ea; border-radius: 9px; font-weight: 700; }
.reaction-button:hover, .reaction-button.is-active { color: var(--blue); background: var(--blue-soft); border-color: #8facdf; }
.reaction-button:disabled { cursor: wait; opacity: .65; }
.reaction-button strong { margin-left: 3px; font-family: "Space Grotesk", sans-serif; }
.feedback-card { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.feedback-card summary { padding: 15px 18px; cursor: pointer; color: #455064; font-weight: 700; }
.feedback-card summary span { float: right; color: var(--blue); }
.interaction-form { padding: 4px 18px 20px; display: grid; gap: 13px; }
.interaction-form label { display: grid; gap: 6px; color: #414b5a; font-size: 13px; font-weight: 700; }
.interaction-form input, .interaction-form select, .interaction-form textarea { width: 100%; padding: 10px 11px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; }
.interaction-form textarea { min-height: 110px; resize: vertical; }
.interaction-form input:focus, .interaction-form select:focus, .interaction-form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 91, 204, .1); }
.interaction-flash { margin: 20px 0 0; padding: 12px 15px; color: #23623b; background: #edf9f1; border: 1px solid #bde0c9; border-radius: 9px; }
.interaction-flash.is-error { color: var(--danger); background: var(--danger-soft); border-color: #efc0bb; }
.comments-heading { margin-bottom: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.comments-heading h2 { margin: 0; }
.comments-heading > p { color: var(--muted); font-size: 13px; }
.comments .comment-item { position: relative; }
.comment-delete { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.comment-delete summary { cursor: pointer; }
.comment-delete form { margin-top: 8px; display: flex; gap: 8px; align-items: end; }
.comment-delete label { display: grid; gap: 4px; }
.comment-delete input { padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; }
.comment-delete button { padding: 8px 10px; color: var(--danger); background: var(--danger-soft); border: 1px solid #efc0bb; border-radius: 6px; }
.empty-comments { padding: 24px 0; color: var(--muted); text-align: center; }
.comment-form { margin-top: 24px; padding: 22px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; }
.comment-form h3 { margin: 0; }
.comment-form .primary-cta { justify-self: start; }
.guest-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preview-notice { margin-bottom: 12px; padding: 12px 15px; display: flex; justify-content: space-between; gap: 12px; color: #28456f; background: var(--blue-soft); border: 1px solid #c9dafa; border-radius: 9px; }
.preview-notice span { color: var(--muted); }
.preview-switch { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.preview-switch a { padding: 7px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 700; }
.preview-switch a.active { color: #fff; background: var(--blue); border-color: var(--blue); }

.admin-heading { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.admin-nav { margin-bottom: 24px; padding: 7px; display: flex; flex-wrap: wrap; gap: 5px; background: #e9edf3; border: 1px solid var(--line); border-radius: 11px; }
.admin-nav a { padding: 9px 13px; color: #586375; border-radius: 7px; font-size: 13px; font-weight: 800; }
.admin-nav a:hover { color: var(--blue); background: rgba(255,255,255,.7); }
.admin-nav a.active { color: #fff; background: var(--blue); }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.metric-grid article { min-height: 118px; padding: 17px; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.metric-grid span { color: var(--muted); font-size: 13px; font-weight: 700; }
.metric-grid strong { font: 700 37px/1 "Space Grotesk", sans-serif; }
.metric-grid .metric-alert { background: var(--danger-soft); border-color: #f1c6c1; }
.metric-grid .metric-alert strong { color: var(--danger); }
.metric-grid--links > a { display: block; }
.metric-grid--links article { height: 100%; transition: border-color .18s ease, transform .18s ease; }
.metric-grid--links > a:hover article { border-color: var(--blue); transform: translateY(-1px); }
.ops-block { margin-top: 36px; }
.ops-heading { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ops-heading h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.ops-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.metric-grid--compact article { min-height: 100px; }
.metric-grid--compact strong { font-size: 31px; }
.status-message { padding: 17px; display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.status-message span { color: var(--muted); }
.status-message--error { color: var(--danger); background: var(--danger-soft); border-color: #efc0bb; }
.admin-table { padding: 24px; }
.drive-table-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.drive-table-heading h2 { margin-bottom: 5px; }
.drive-table-heading .field-help { margin-bottom: 12px; }
.drive-check { width: 54px; text-align: center; }
.drive-check input { width: 18px; height: 18px; accent-color: var(--danger); }
.danger-button { min-height: 40px; padding: 9px 15px; color: #fff; background: var(--danger); border: 1px solid var(--danger); border-radius: 8px; font-weight: 800; }
.danger-button:disabled { opacity: .45; cursor: not-allowed; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; }
td { overflow-wrap: anywhere; }
.empty-inline { margin: 0; color: var(--muted); }
.admin-filter { padding: 14px; display: flex; flex-wrap: wrap; align-items: end; gap: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.admin-filter label:not(.check-filter) { min-width: 160px; display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-filter input[type="search"], .admin-filter input[type="date"], .admin-filter select { min-height: 40px; padding: 8px 10px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 7px; }
.admin-filter button { min-height: 40px; padding: 8px 17px; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 7px; font-weight: 800; }
.admin-filter > a { min-height: 40px; padding: 8px 13px; display: inline-flex; align-items: center; color: var(--muted); font-weight: 700; }
.admin-list-tabs { margin: 22px 0 12px; padding-bottom: 3px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.admin-list-tabs a { min-height: 42px; padding: 8px 13px; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 800; }
.admin-list-tabs a span { min-width: 24px; padding: 2px 7px; color: #4d5b70; background: var(--surface-soft); border-radius: 999px; text-align: center; font-size: 11px; }
.admin-list-tabs a:hover { color: var(--blue); border-color: #aebfda; }
.admin-list-tabs a.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.admin-list-tabs a.active span { color: var(--blue); background: #fff; }
.check-filter { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.admin-toolbar { margin: 18px 0 0; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.status-badge { display: inline-flex; padding: 4px 8px; color: #425069; background: #edf1f6; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-public, .status-completed, .status-ready { color: #17643b; background: #e3f5ea; }
.status-hidden, .status-pending, .status-waiting_update, .status-processing, .status-retry_wait { color: #76520b; background: #fff3d5; }
.status-deleted, .status-failed { color: var(--danger); background: var(--danger-soft); }
.status-not_ready, .status-operator_excluded, .status-fallback { color: #596273; background: #edf0f4; }
.status-used { color: #17643b; background: #e3f5ea; }
.status-recent { color: #175cd3; background: #eaf2ff; }
.status-unused { color: #9a3412; background: #fff0e8; }
.table-action { color: var(--blue); font-weight: 800; white-space: nowrap; }
.table-action--muted { color: var(--muted); }
.inline-form { display: inline; }
.inline-form button { padding: 0; color: var(--blue); background: none; border: 0; font-weight: 800; }
.notice-success { padding: 12px 14px; color: #17643b; background: #e3f5ea; border: 1px solid #b9dfc7; border-radius: 8px; }
.admin-editor { margin-top: 18px; }
.editor-card { margin-top: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.editor-card h2 { margin: 0 0 5px; font-size: 22px; }
.field-help { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.editor-field { min-width: 0; display: grid; gap: 7px; }
.editor-field > label, .field-heading > label { color: var(--ink); font-size: 13px; font-weight: 800; }
.editor-field input[type="text"], .editor-field input[type="url"], .editor-field select { width: 100%; min-height: 43px; padding: 9px 11px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 8px; }
.editor-field small { color: var(--muted); overflow-wrap: anywhere; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-mode { display: flex; gap: 9px; color: var(--muted); font-size: 11px; }
.field-mode label { display: inline-flex; align-items: center; gap: 4px; }
.segmented-options { display: flex; flex-wrap: wrap; gap: 7px; }
.segmented-options label input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-options span { padding: 9px 15px; display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 800; }
.segmented-options input:checked + span { color: #fff; background: var(--blue); border-color: var(--blue); }
.detail-editor-grid { margin: 18px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-editor-grid label { display: grid; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 800; }
.detail-editor-grid small { color: var(--muted); font-weight: 500; }
.detail-editor-grid textarea { width: 100%; padding: 10px 11px; resize: vertical; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 8px; line-height: 1.6; }

.auth-shell { max-width: 880px; margin: 0 auto; padding: 72px 24px 90px; display: grid; grid-template-columns: 1fr 420px; gap: 70px; align-items: start; }
.auth-intro { padding-top: 34px; }
.auth-intro h1 { margin: 0; font-size: 42px; letter-spacing: -.05em; }
.auth-intro p:not(.section-kicker) { color: var(--muted); }
.auth-card { padding: 28px; display: grid; gap: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.auth-card label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.auth-card input { width: 100%; padding: 11px 12px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; }
.auth-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 91, 204, .1); }
.auth-card button { min-height: 46px; color: #fff; background: var(--blue); border: 0; border-radius: 8px; font-weight: 700; }
.alert { margin: 0; padding: 11px 13px; color: var(--danger); background: var(--danger-soft); border: 1px solid #efc0bb; border-radius: 8px; }
.error-shell { max-width: 620px; margin: 0 auto; padding: 90px 24px; text-align: center; }
.error-code { color: var(--blue); font: 700 72px/1 "Space Grotesk", sans-serif; }
.error-shell h1 { margin: 18px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.error-shell p { margin: 0 0 25px; color: var(--muted); }

footer { max-width: 1240px; margin: 0 auto; padding: 26px 24px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
footer strong { color: var(--ink); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--blue); }
.admin-heading__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.service-page { max-width: 920px; }
.service-page > h1 { margin: 8px 0 6px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.05em; }
.service-page__updated { margin: 0; color: var(--muted); font-size: 12px; }
.service-page__content { line-height: 1.85; }
.service-page__content h2 { margin: 28px 0 10px; font-size: 22px; }
.service-page__content li + li { margin-top: 7px; }
.service-request-form { display: grid; gap: 15px; }
.service-request-form label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 800; }
.service-request-form label small { color: var(--muted); font-weight: 500; }
.service-request-form input, .service-request-form select, .service-request-form textarea,
.editor-card input[type="text"], .editor-card textarea { width: 100%; padding: 10px 11px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; }
.service-request-form textarea, .editor-card textarea { min-height: 150px; resize: vertical; line-height: 1.65; }
.pagination { margin: 18px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.pagination span, .pagination a { min-width: 36px; min-height: 36px; padding: 7px 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; }
.pagination span { color: var(--muted); }
.pagination a.active { color: #fff; background: var(--blue); border-color: var(--blue); }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: auto minmax(240px, 1fr) auto; gap: 16px; }
  .site-header nav { gap: 13px; }
  .brand strong { display: none; }
  .app-list { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-summary { grid-template-columns: 150px minmax(0, 1fr) 190px; }
  .detail-icon { width: 150px; height: 150px; }
  .app-facts { grid-template-columns: repeat(2, 1fr); }
  .app-facts div:nth-child(2) { border-right: 0; }
  .app-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .site-header { position: static; padding: 11px 18px; grid-template-columns: auto 1fr; }
  .brand { justify-self: start; }
  .site-header nav { justify-self: end; }
  .site-header nav > a:first-child { display: none; }
  .header-search { grid-column: 1 / -1; grid-row: 2; }
  .library-shell, .detail-shell, .admin-shell { padding: 25px 18px 54px; }
  .library-heading { margin-bottom: 16px; align-items: flex-start; }
  .library-heading p:not(.section-kicker) { font-size: 13px; }
  .result-count { padding: 7px 10px; }
  .result-count span { font-size: 18px; }
  .category-tabs { margin: 0 -18px 16px; padding: 0 18px 8px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tabs a { min-height: 40px; padding: 8px 13px; display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 700; }
  .category-tabs a.active { color: #fff; background: var(--blue); border-color: var(--blue); }
  .library-layout { display: block; }
  .category-sidebar { display: none; }
  .filter-summary { font-size: 13px; }
  .app-row { min-height: 112px; padding: 13px; grid-template-columns: 78px minmax(0, 1fr); gap: 13px; }
  .app-icon { width: 78px; height: 78px; }
  .row-link { display: none; }
  .app-row h2 { font-size: 16px; }
  .detail-summary { padding: 18px; grid-template-columns: 104px minmax(0, 1fr); gap: 17px; align-items: start; }
  .detail-icon { width: 104px; height: 104px; }
  .detail-title h1 { font-size: 27px; }
  .detail-title > p { font-size: 14px; }
  .download-panel { grid-column: 1 / -1; padding: 15px 0 0; display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; border-top: 1px solid var(--line); border-left: 0; }
  .app-facts { grid-template-columns: 1fr 1fr; }
  .app-facts div { padding: 12px 13px; }
  .content-card, .comments, .admin-table, .technical-card { margin-top: 16px; padding: 20px; }
  .app-intro-image { margin-top: 16px; }
  .app-detail-guide .practical-tips { grid-template-columns: 1fr; }
  .app-actions, .comments-heading { align-items: flex-start; flex-direction: column; }
  .action-buttons { width: 100%; justify-content: flex-start; }
  .guest-fields { grid-template-columns: 1fr; }
  .preview-notice { flex-direction: column; gap: 2px; }
  .admin-heading, .ops-heading { align-items: flex-start; flex-direction: column; }
  .drive-table-heading { align-items: stretch; flex-direction: column; }
  .admin-heading__actions { width: 100%; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-filter { width: 100%; }
  .editor-grid { grid-template-columns: 1fr; }
  .detail-editor-grid { grid-template-columns: 1fr; }
  .field-heading { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-message { flex-direction: column; }
  .auth-shell { padding: 45px 18px 70px; grid-template-columns: 1fr; gap: 20px; }
  .auth-intro { padding-top: 0; }
}

@media (max-width: 430px) {
  body { font-size: 14px; }
  .site-header nav { gap: 11px; font-size: 13px; }
  .header-search button { min-width: 52px; }
  .header-search button span { display: none; }
  .library-heading h1, .admin-heading h1 { font-size: 29px; }
  .library-heading > div > p:not(.section-kicker) { display: none; }
  .app-row__meta { gap: 3px 8px; font-size: 11px; }
  .app-row__meta span + span::before { margin-right: 8px; }
  .detail-summary { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .detail-icon { width: 88px; height: 88px; padding: 5px; }
  .detail-title h1 { font-size: 23px; }
  .detail-updated { margin-top: 8px; font-size: 11px; }
  .download-panel { grid-template-columns: 1fr 1.8fr; }
  .download-panel > strong { font-size: 18px; }
  .primary-cta.is-disabled { font-size: 11px; }
  .app-facts { grid-template-columns: 1fr; }
  .store-facts { grid-template-columns: 1fr; }
  .technical-facts { grid-template-columns: 1fr; }
  .app-facts div, .app-facts div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .app-facts div:last-child { border-bottom: 0; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article { min-height: 100px; }
  .metric-grid strong { font-size: 31px; }
  footer { flex-direction: column; }
}
