:root {
  --bg: #eef2f7;
  --panel: rgba(255,255,255,.66);
  --panel-solid: #fff;
  --text: #1d1d1f;
  --muted: #5f6670;
  --line: rgba(255,255,255,.62);
  --line-strong: rgba(123,139,160,.22);
  --blue: #006fed;
  --blue-hover: #005fd1;
  --danger: #ff3b30;
  --ok: #34c759;
  --glass: rgba(255,255,255,.58);
  --glass-strong: rgba(255,255,255,.78);
  --glass-tint: rgba(234,244,255,.56);
  --shadow: 0 18px 48px rgba(24, 35, 55, .12);
  --shadow-soft: 0 8px 24px rgba(24, 35, 55, .08);
  --highlight: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(255,255,255,.32);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(232,238,247,.94) 38%, rgba(247,250,255,.96) 100%),
    linear-gradient(120deg, rgba(0,113,227,.10), rgba(52,199,89,.08) 42%, rgba(255,255,255,0) 72%);
  background-attachment: fixed;
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(160deg, rgba(255,255,255,.72), rgba(255,255,255,0) 34%),
    linear-gradient(24deg, rgba(0,113,227,.08), rgba(255,255,255,0) 44%),
    linear-gradient(315deg, rgba(52,199,89,.08), rgba(255,255,255,0) 42%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250,252,255,.62);
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  border-bottom: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 1px 0 rgba(34,45,63,.06), 0 12px 28px rgba(34,45,63,.05);
}
.nav { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: .01em; min-width: 0; }
.brand-logo { width: 32px; height: 32px; border-radius: 10px; object-fit: contain; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.78); box-shadow: var(--highlight), 0 8px 18px rgba(24,35,55,.12); flex: 0 0 auto; }
.brand span { overflow-wrap: anywhere; }
.navlinks { display: flex; align-items: center; gap: 22px; color: #424245; font-size: 14px; }
.navlinks a { padding: 6px 0; border-radius: 999px; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.navlinks a.active, .navlinks a:hover { color: var(--blue); }
.hero { padding: 72px 0 54px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.08; margin: 0 0 18px; letter-spacing: 0; }
.hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 26px; }
.glass {
  background: linear-gradient(145deg, rgba(255,255,255,.80), rgba(255,255,255,.46));
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  border-radius: 26px;
  position: relative;
  overflow: hidden;
}
.glass::before, .card::before, .panel::before, .btn::before, .pill::before, .subnav a::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,.64), rgba(255,255,255,0) 38%, rgba(255,255,255,.22) 100%);
  opacity: .72;
}
.hero-card { padding: 28px; min-height: 300px; display: grid; align-content: center; background: linear-gradient(145deg, rgba(255,255,255,.76), rgba(229,241,255,.50)); }
.hero-banner-image { width: 100%; aspect-ratio: 16/9; min-height: 230px; object-fit: cover; border-radius: 24px; border: 1px solid rgba(255,255,255,.72); box-shadow: var(--highlight), 0 20px 38px rgba(24,35,55,.14); }
.hero-card .device { height: 190px; border-radius: 26px; background: linear-gradient(135deg, #1d1d1f, #4b5663), linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,0)); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -18px 44px rgba(0,0,0,.28), 0 24px 48px rgba(24,35,55,.24); position: relative; overflow: hidden; }
.hero-card .device::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.34), rgba(255,255,255,0) 34%), linear-gradient(24deg, rgba(0,113,227,.38), rgba(255,255,255,0) 55%); }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.72); background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.46)); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--highlight), 0 8px 18px rgba(24,35,55,.08); font-weight: 550; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--highlight), 0 12px 24px rgba(24,35,55,.12); }
.btn.primary { background: linear-gradient(145deg, rgba(0,125,250,.92), rgba(0,95,209,.84)); color: #fff; border-color: rgba(255,255,255,.54); box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 14px 28px rgba(0,113,227,.24); }
.btn.primary:hover { background: var(--blue-hover); }
.btn.danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn.disabled { color: var(--muted); background: rgba(245,245,247,.54); border-color: rgba(210,210,215,.72); cursor: not-allowed; box-shadow: none; }
.section { padding: 42px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section h2 { font-size: 30px; line-height: 1.2; margin: 0; }
/* baseline spacing refs for release checks:
.home-hero { padding-bottom: 30px; }
.home-section { padding: 26px 0; }
.home-section + .home-section { padding-top: 20px; }
.home-section .section-head { margin-bottom: 12px; }
*/
.home-hero { padding-bottom: 18px; }
.home-hero h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.02; margin-bottom: 10px; }
.home-hero p { font-size: 15px; line-height: 1.42; margin-bottom: 16px; }
.home-section { padding: 20px 0; }
.home-section { font-size: 14px; line-height: 1.42; }
.home-section + .home-section { padding-top: 12px; }
.home-section .section-head { margin-bottom: 8px; }
.home-section .section-head h2 { font-size: 28px; line-height: 1.16; }
.home-section .grid { gap: 12px; }
.home-section .card h3 { font-size: 17px; line-height: 1.22; }
.home-section .card-body { line-height: 1.42; }
.home-section .news-media-copy h3 { font-size: 19px; line-height: 1.14; }
.home-section .news-media-copy p { line-height: 1.34; }
.home-section .pill { font-size: 13px; }
.home-section:last-of-type { padding-bottom: 20px; }
.muted { color: var(--muted); }
.news-list-head { margin-bottom: 10px; }
.news-list-head h1 { margin: 0; line-height: 1.08; }
.news-list-summary { text-align: right; margin: 8px 0 0; font-size: 13px; line-height: 1.25; }
.product-list-summary { text-align: right; margin: 8px 0 0; font-size: 13px; line-height: 1.25; }
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid .thumb { border-radius: 16px; border: 1px solid rgba(255,255,255,.72); }
.card { position: relative; background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.44)); backdrop-filter: blur(24px) saturate(1.45); -webkit-backdrop-filter: blur(24px) saturate(1.45); border: 1px solid rgba(255,255,255,.74); border-radius: 22px; overflow: hidden; box-shadow: var(--highlight), var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.92); box-shadow: var(--highlight), 0 18px 36px rgba(24,35,55,.14); }
.card-body { padding: 18px; }
.thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, rgba(255,255,255,.64), rgba(219,232,247,.68)); display: grid; place-items: center; color: #7a818d; font-weight: 600; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.has-image { background: rgba(255,255,255,.46); }
.card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.news-media-list { display: grid; gap: 10px; }
.news-media-item { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: stretch; padding: 10px; min-height: 192px; }
.news-media-item:hover { transform: translateY(-2px); }
.news-media-thumb { width: 280px; height: 172px; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255,255,255,.74); background: rgba(255,255,255,.48); box-shadow: var(--highlight), 0 8px 18px rgba(24,35,55,.06); align-self: center; }
.news-media-thumb .thumb { width: 100%; height: 100%; aspect-ratio: auto; }
.news-media-copy { min-width: 0; display: grid; align-content: center; gap: 5px; padding: 2px 6px 2px 0; }
.news-media-copy h3 { margin: 0; font-size: 20px; line-height: 1.22; overflow-wrap: anywhere; }
.news-media-copy p { margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pillbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { position: relative; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.74); background: rgba(255,255,255,.56); backdrop-filter: blur(18px) saturate(1.45); -webkit-backdrop-filter: blur(18px) saturate(1.45); box-shadow: var(--highlight), 0 6px 16px rgba(24,35,55,.06); font-size: 14px; color: #424245; }
.pill.active, .pill:hover { background: rgba(232,244,255,.72); color: var(--blue); border-color: rgba(185,220,255,.76); }
.home-tag-panel { display: flex; flex-wrap: wrap; gap: 10px; }
.home-consult { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.home-consult h2 { margin: 0 0 8px; }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 22px; }
.subnav a { position: relative; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.74); background: rgba(255,255,255,.50); color: #424245; font-size: 14px; backdrop-filter: blur(18px) saturate(1.45); -webkit-backdrop-filter: blur(18px) saturate(1.45); box-shadow: var(--highlight), 0 6px 16px rgba(24,35,55,.06); }
.subnav a.active, .subnav a:hover { background: rgba(232,244,255,.74); color: var(--blue); border-color: rgba(185,220,255,.78); }
.about-panel article { max-width: 780px; }
.wide-banner { aspect-ratio: 21/7; min-height: 180px; max-height: 320px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.74); margin: 0 0 22px; background: rgba(255,255,255,.50); box-shadow: var(--highlight), var(--shadow-soft); }
.wide-banner img { width: 100%; height: 100%; object-fit: cover; }
.about-theme-banner { margin-top: 4px; }
.page-banner {
  width: min(1200px, calc(100vw - 40px));
  height: min(300px, calc((100vw - 40px) * .25));
  min-height: 220px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.76);
  background: rgba(255,255,255,.50);
  box-shadow: var(--highlight), var(--shadow-soft);
}
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
.solution-detail-banner { margin: 4px 0 24px; }
.secretary-layout { align-items: start; }
.secretary-question-form { background: rgba(255,255,255,.46); border: 1px solid rgba(255,255,255,.72); border-radius: 18px; padding: 18px; box-shadow: var(--highlight); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.content-admin-layout { grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr); gap: 22px; }
.content-module-page { display: grid; gap: 18px; max-width: 1040px; }
.content-module-tabs { margin-top: -8px; }
.content-publish-panel { position: sticky; top: 22px; }
.content-module-page .content-publish-panel { position: relative; top: auto; max-width: 720px; }
.content-manage-panel { min-width: 0; display: grid; gap: 14px; }
.module-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; min-width: 0; }
.module-head h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.module-head span { font-size: 13px; text-align: right; }
.software-admin-layout { grid-template-columns: minmax(320px, .82fr) minmax(720px, 1.55fr); }
.panel { position: relative; background: linear-gradient(145deg, rgba(255,255,255,.74), rgba(255,255,255,.46)); backdrop-filter: blur(24px) saturate(1.45); -webkit-backdrop-filter: blur(24px) saturate(1.45); border: 1px solid rgba(255,255,255,.74); border-radius: 24px; padding: 22px; box-shadow: var(--highlight), var(--shadow-soft); }
.software-intro { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: stretch; margin-bottom: 18px; }
.software-intro-media { aspect-ratio: 21/8; min-height: 220px; max-height: 360px; border-radius: 22px; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.70), rgba(232,244,255,.66)); border: 1px solid rgba(255,255,255,.74); box-shadow: var(--highlight), var(--shadow-soft); }
.software-intro-media img { width: 100%; height: 100%; object-fit: cover; }
.software-intro-placeholder { display: grid; place-items: center; color: #6e6e73; font-weight: 650; }
.software-intro-copy { max-width: 780px; }
.software-intro-copy h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.25; }
.software-intro-copy p { margin: 0; font-size: 16px; }
.software-list-page { padding-top: 22px; }
.software-list-page .software-intro { gap: 12px; margin-bottom: 12px; }
.software-list-page .software-intro-copy h2 { margin-bottom: 6px; line-height: 1.16; }
.software-list-page .software-intro-copy p { line-height: 1.48; }
.software-list-page .filterbar { margin-bottom: 10px; }
.software-list-page .pillbar { margin-bottom: 12px; }
.software-list-summary { text-align: right; margin: 8px 0 0; font-size: 13px; line-height: 1.25; }
.software-list-page .grid { gap: 14px; }
.software-list-page .card-body { padding: 14px; }
.software-download-panel { display: grid; gap: 16px; }
.software-detail-images { display: grid; gap: 14px; }
.software-detail-image { margin: 0; padding: 12px; border-radius: 18px; border: 1px solid rgba(255,255,255,.70); background: rgba(255,255,255,.42); box-shadow: var(--highlight), 0 8px 18px rgba(24,35,55,.06); }
.software-detail-image figcaption { margin: 0 0 8px; font-weight: 650; color: var(--text); line-height: 1.35; }
.software-detail-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; border: 1px solid rgba(255,255,255,.72); background: rgba(255,255,255,.58); }
.software-download-area { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(134,148,166,.20); }
.software-download-area h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.software-download-options { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stat-link { display: block; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.stat-link:hover { border-color: #b9dcff; box-shadow: 0 10px 28px rgba(0,113,227,.08); transform: translateY(-1px); }
.stat-mini { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.68); border-radius: 14px; background: rgba(255,255,255,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.72); }
.stat-mini strong { font-size: 22px; line-height: 1.1; color: var(--text); }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.footer { margin-top: 60px; padding: 30px 0 24px; background: rgba(255,255,255,.52); backdrop-filter: blur(24px) saturate(1.45); -webkit-backdrop-filter: blur(24px) saturate(1.45); border-top: 1px solid rgba(255,255,255,.72); color: var(--muted); box-shadow: 0 -10px 28px rgba(24,35,55,.05); font-size: 13px; line-height: 1.45; }
.footer strong { color: var(--text); font-size: 14px; line-height: 1.35; }
.footer p { margin: 6px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 28px; align-items: start; }
.footer-links { display: grid; gap: 5px; margin-top: 8px; line-height: 1.35; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--blue); }
.footer-friends { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(134,148,166,.22); font-size: 13px; line-height: 1.35; }
.footer-friends span { color: var(--text); font-weight: 700; }
.footer-friends a { color: var(--muted); }
.footer-friends a:hover { color: var(--blue); }
.footer-qr { display: inline-grid; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.footer-qr img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; padding: 6px; background: rgba(255,255,255,.94); border: 1px solid rgba(134,148,166,.22); box-shadow: var(--highlight), 0 8px 18px rgba(24,35,55,.08); }
.form { display: grid; gap: 14px; }
.form-section { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.70); border-radius: 18px; background: rgba(255,255,255,.34); box-shadow: var(--highlight); }
.form-section h2 { margin: 0; font-size: 18px; line-height: 1.35; }
.form-section p { margin: 0; }
.admin-image-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.admin-image-row label { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
input, textarea, select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 14px;
  padding: 9px 11px;
  font: inherit;
  background: rgba(255,255,255,.56);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76), 0 4px 12px rgba(24,35,55,.04);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(0,113,227,.22); border-color: var(--blue); }
.rich-editor { display: grid; gap: 0; border: 1px solid rgba(255,255,255,.72); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.42); box-shadow: var(--highlight), 0 10px 22px rgba(24,35,55,.05); }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-bottom: 1px solid rgba(123,139,160,.14); background: rgba(255,255,255,.48); backdrop-filter: blur(18px) saturate(1.35); -webkit-backdrop-filter: blur(18px) saturate(1.35); }
.rich-toolbar .btn { min-height: 30px; padding: 0 9px; border-radius: 10px; font-size: 12px; }
.rich-textarea { min-height: 260px; border: 0; border-radius: 0; background: rgba(255,255,255,.36); box-shadow: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.65; }
.rich-textarea:focus { outline-offset: -2px; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: rgba(255,255,255,.58); backdrop-filter: blur(28px) saturate(1.5); -webkit-backdrop-filter: blur(28px) saturate(1.5); border-right: 1px solid rgba(255,255,255,.74); box-shadow: 10px 0 28px rgba(24,35,55,.06); padding: 22px; position: sticky; top: 0; height: 100vh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; overflow: hidden; }
.sidebar-head h3 { margin: 0 0 6px; line-height: 1.25; }
.sidebar-head p { margin: 0; }
.sidebar-scroll { min-height: 0; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(95,102,112,.42) rgba(255,255,255,.28); }
.sidebar-scroll::-webkit-scrollbar { width: 8px; }
.sidebar-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,.28); border-radius: 999px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(95,102,112,.36); border-radius: 999px; border: 2px solid rgba(255,255,255,.36); }
.sidebar a { display: block; padding: 9px 10px; border-radius: 9px; color: #424245; font-size: 14px; margin: 2px 0; }
.sidebar a:hover, .sidebar a.active { background: rgba(232,244,255,.72); color: var(--blue); box-shadow: inset 0 1px 0 rgba(255,255,255,.72); }
.sidebar-group { margin: 8px 0; padding: 8px; border: 1px solid rgba(123,139,160,.14); border-radius: 14px; background: rgba(255,255,255,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.62); }
.sidebar-group.active { border-color: rgba(185,220,255,.78); background: rgba(232,244,255,.42); }
.sidebar-group-title { display: flex; align-items: center; gap: 8px; padding: 4px 8px 7px; color: #1d1d1f; font-size: 13px; font-weight: 700; line-height: 1.25; }
.sidebar-group-title::before { content: ""; width: 6px; height: 18px; border-radius: 999px; background: linear-gradient(180deg, var(--blue), #34c759); box-shadow: 0 4px 10px rgba(0,113,227,.20); }
.sidebar-subnav { display: grid; gap: 3px; padding-left: 14px; border-left: 1px solid rgba(123,139,160,.20); margin-left: 10px; }
.sidebar .sidebar-subnav a { margin: 0; padding: 8px 10px; font-size: 13px; }
.sidebar-logout { margin: 2px 0; }
.sidebar-logout button { width: 100%; min-height: 0; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: #424245; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.sidebar-logout button:hover { background: rgba(232,244,255,.72); color: var(--blue); }
.admin-main { padding: 26px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.table-wrap { width: 100%; overflow-x: auto; border-radius: 20px; box-shadow: var(--shadow-soft); }
.table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.58); backdrop-filter: blur(24px) saturate(1.45); -webkit-backdrop-filter: blur(24px) saturate(1.45); border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.74); box-shadow: var(--highlight), var(--shadow-soft); }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid rgba(123,139,160,.14); text-align: left; vertical-align: top; font-size: 14px; }
.table th { background: rgba(255,255,255,.48); color: #5f6670; font-weight: 600; }
.table.compact th, .table.compact td { padding: 9px 10px; font-size: 13px; }
.software-admin-table { min-width: 980px; table-layout: fixed; }
.software-admin-table .check-col { width: 42px; text-align: center; }
.software-admin-table .software-info-col { width: 34%; min-width: 300px; }
.software-admin-table .software-desc { display: block; margin-top: 5px; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; }
.software-admin-table .software-actions { min-width: 190px; }
.code-block { max-width: 420px; max-height: 180px; overflow: auto; margin: 0; padding: 10px; border: 1px solid rgba(255,255,255,.68); border-radius: 12px; background: rgba(255,255,255,.54); color: var(--muted); font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.74); font-size: 12px; font-weight: 650; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.72); }
.status-badge.ok { color: #0b6b2a; background: #eaf8ee; border-color: #b9e8c7; }
.status-badge.draft { color: #6f4b00; background: #fff7df; border-color: #f1d58f; }
.status-badge.off { color: #6e6e73; background: #f5f5f7; border-color: #d2d2d7; }
.status-badge.pending { color: #075ca8; background: #eaf4ff; border-color: #b9dcff; }
.status-badge.contacted { color: #0b6b2a; background: #eaf8ee; border-color: #b9e8c7; }
.status-badge.closed { color: #6e6e73; background: #f5f5f7; border-color: #d2d2d7; }
.status-badge.neutral { color: #424245; background: rgba(255,255,255,.62); }
.notice { padding: 12px 14px; border-radius: 18px; background: rgba(232,244,255,.70); color: #075ca8; margin-bottom: 16px; border: 1px solid rgba(255,255,255,.74); box-shadow: var(--highlight), var(--shadow-soft); backdrop-filter: blur(18px) saturate(1.45); -webkit-backdrop-filter: blur(18px) saturate(1.45); }
.notice.warning { background: rgba(255,247,230,.72); color: #8a4b00; border: 1px solid rgba(255,216,153,.74); }
.login-box { width: min(420px, calc(100% - 32px)); margin: 90px auto; padding: 28px; }
.narrow { max-width: 520px; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.copy-row .btn { min-height: 40px; padding: 0 12px; white-space: nowrap; }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filterbar input, .filterbar select { width: auto; min-width: 170px; }
.inline-edit { display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 8px; align-items: center; }
.inline-edit input { min-width: 0; }
.setting-preview { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(255,255,255,.74); border-radius: 16px; background: rgba(255,255,255,.44); box-shadow: var(--highlight); }
.setting-preview img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: rgba(255,255,255,.70); border: 1px solid rgba(255,255,255,.74); box-shadow: var(--highlight), 0 8px 18px rgba(24,35,55,.08); }
.check-list { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(255,255,255,.74); border-radius: 16px; background: rgba(255,255,255,.44); }
.check-list label { display: flex; align-items: center; gap: 8px; }
.check-list input[type="checkbox"] { width: auto; min-height: auto; }
.tag-row, .tag-cloud { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.tag-cloud { padding: 18px; }
.tag-cloud .pill span { color: var(--muted); font-size: 12px; }
.media-file { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; }
.media-preview { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; border: 1px solid rgba(255,255,255,.74); background: rgba(255,255,255,.62); box-shadow: var(--highlight), 0 6px 14px rgba(24,35,55,.08); }
.banner-preview-stack { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.file-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.50); border: 1px solid rgba(255,255,255,.74); color: var(--muted); font-size: 12px; font-weight: 650; box-shadow: var(--highlight); }
.maintenance-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.maintenance-box { width: min(520px, 100%); padding: 34px; text-align: center; }
.maintenance-box h1 { margin: 0 0 10px; font-size: 34px; }
.maintenance-box p { color: var(--muted); margin: 0 0 22px; }
.not-found { max-width: 720px; margin: 0 auto; text-align: center; }
.not-found h1 { margin: 0 0 10px; font-size: 38px; line-height: 1.18; }
.search-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin: 22px auto; max-width: 520px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 820px) {
  .container { width: calc(100% - 24px); }
  .nav { height: auto; padding: 12px 0 10px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .navlinks {
    width: 100%;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .navlinks::-webkit-scrollbar { display: none; }
  .navlinks a { flex: 0 0 auto; white-space: nowrap; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 16px; }
  .hero { padding: 28px 0 18px; }
  .home-hero { padding-top: 0; }
  .home-hero { padding-bottom: 12px; }
  .home-hero h1 { font-size: 28px; line-height: 1.08; margin-bottom: 8px; }
  .home-hero p { font-size: 14px; line-height: 1.46; margin-bottom: 12px; }
  .actions { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .actions .btn { width: 100%; min-height: 44px; padding: 0 14px; }
  .hero-card { padding: 14px; min-height: 0; }
  .hero-banner-image { min-height: 160px; border-radius: 18px; }
  .section { padding: 24px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 10px; }
  .section h2 { font-size: 21px; line-height: 1.16; }
  .home-section { padding: 12px 0; font-size: 13px; line-height: 1.48; }
  .home-section + .home-section { padding-top: 8px; }
  .home-section .section-head { margin-bottom: 8px; }
  .home-section .section-head h2 { font-size: 19px; line-height: 1.16; }
  .home-section .grid { gap: 8px; }
  .home-section .card h3 { font-size: 16px; line-height: 1.24; }
  .home-section .card-body { padding: 12px; line-height: 1.48; }
  .home-section .news-media-copy h3 { font-size: 17px; line-height: 1.18; }
  .home-section .news-media-copy p { line-height: 1.42; -webkit-line-clamp: 2; }
  .home-section .pill { font-size: 12px; padding: 7px 11px; }
  .pillbar, .subnav { gap: 8px; margin-bottom: 12px; }
  .subnav a { font-size: 13px; padding: 7px 11px; }
  .card { border-radius: 18px; }
  .panel, .form-section, .secretary-question-form { padding: 16px; border-radius: 16px; }
  .wide-banner { min-height: 150px; margin-bottom: 14px; border-radius: 16px; }
  .content-publish-panel { position: relative; top: auto; }
  .module-head { align-items: flex-start; flex-direction: column; }
  .module-head span { text-align: left; }
  .page-banner {
    width: min(750px, calc(100vw - 28px));
    height: min(350px, calc((100vw - 28px) * .4667));
    min-height: 160px;
    border-radius: 18px;
  }
  .footer { margin-top: 34px; padding: 20px 0 18px; font-size: 12px; line-height: 1.5; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-friends { gap: 6px 10px; margin-top: 14px; padding-top: 12px; }
  .grid.cols-3, .grid.cols-4, .gallery-grid { grid-template-columns: 1fr; }
  .news-media-list { gap: 8px; }
  .news-media-item { grid-template-columns: 1fr; min-height: 0; gap: 10px; padding: 8px; }
  .news-media-thumb { width: 100%; height: auto; aspect-ratio: 280 / 172; }
  .news-media-copy { padding: 0 2px 4px; align-content: start; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; max-height: none; overflow: visible; }
  .sidebar-scroll { max-height: 320px; }
  .admin-main { padding: 14px; }
  .filterbar { grid-template-columns: 1fr; }
  .admin-image-row { grid-template-columns: 1fr; }
  .search-inline { grid-template-columns: 1fr; }
  .home-consult { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  body { line-height: 1.58; background-attachment: scroll; }
  .container { width: calc(100% - 16px); }
  .nav { padding-top: 10px; }
  .brand { font-size: 15px; }
  .hero { padding-top: 22px; }
  .home-hero { padding-bottom: 12px; }
  .home-hero h1 { font-size: 24px; line-height: 1.1; margin-bottom: 6px; }
  .home-hero p { font-size: 13px; line-height: 1.44; margin-bottom: 10px; }
  .section { padding: 18px 0; }
  .section h2 { font-size: 19px; }
  .home-section { padding: 10px 0; font-size: 12px; line-height: 1.45; }
  .home-section .section-head h2 { font-size: 18px; }
  .home-section .card-body { padding: 12px; }
  .card h3 { font-size: 16px; line-height: 1.28; }
  .news-media-copy p { -webkit-line-clamp: 2; }
  .actions .btn, .search-inline .btn, .copy-row .btn { min-height: 42px; font-size: 14px; }
  .footer { padding: 18px 0 16px; }
  .footer-grid { gap: 12px; }
  .sidebar { padding: 16px; }
  .admin-main { padding: 12px; }
}
