:root {
  color-scheme: light;
  --navy: #073b69;
  --blue: #0867c9;
  --blue-2: #1684eb;
  --ink: #132238;
  --muted: #66758a;
  --line: #e4ebf2;
  --soft: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 14px 36px rgba(7, 59, 105, 0.09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #eef3f8;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(85, 166, 234, 0.16), transparent 32rem),
    #eef3f8;
  min-width: 0;
}

#app { width: 100%; max-width: 100%; overflow-x: hidden; }

button, input, a { font: inherit; }
button { color: inherit; }

.site-shell {
  width: min(100%, 1120px);
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 80px rgba(18, 56, 90, 0.08);
  padding-bottom: 92px;
  overflow-x: clip;
}

.site-shell > main,
.brand-panel,
.content-section,
.category-grid,
.category-card,
.category-card > span {
  min-width: 0;
  max-width: 100%;
}

.brand-panel {
  position: relative;
  z-index: 5;
  overflow: visible;
  min-height: 296px;
  padding: 46px clamp(22px, 5vw, 64px) 34px;
  color: white;
  background-image:
    linear-gradient(90deg, rgba(3, 38, 72, .88) 0%, rgba(5, 67, 116, .68) 55%, rgba(11, 91, 151, .42) 100%),
    var(--hero-image, linear-gradient(135deg, #073b69 0%, #0b5e9f 56%, #73b4d9 145%));
  background-position: center;
  background-size: cover;
}

.brand-panel::before {
  content: "";
  position: absolute;
  width: 510px;
  height: 510px;
  right: -190px;
  top: -330px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(255,255,255,.035), 0 0 0 138px rgba(255,255,255,.025);
}

.admin-entry { position: absolute; z-index: 3; right: clamp(20px,5vw,58px); top: 28px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; color: white; background: rgba(255,255,255,.1); font-size: 12px; font-weight: 700; text-decoration: none; backdrop-filter: blur(10px); }
.admin-entry:hover { background: rgba(255,255,255,.18); }

.brand-word {
  position: relative;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1;
  font-weight: 820;
  letter-spacing: .04em;
}

.brand-panel > p { position: relative; margin: 12px 0 34px; font-size: 17px; letter-spacing: .14em; opacity: .92; }
.brand-lines { position: absolute; right: 4.5%; bottom: 82px; display: flex; gap: 10px; align-items: end; transform: rotate(-8deg); opacity: .28; }
.brand-lines i { display: block; width: 22px; border: 1px solid white; border-radius: 999px; }
.brand-lines i:nth-child(1) { height: 45px; }.brand-lines i:nth-child(2) { height: 78px; }.brand-lines i:nth-child(3) { height: 114px; }

.search { position: relative; display: flex; align-items: center; width: 100%; min-width: 0; height: 56px; max-width: 720px; border: 1px solid rgba(16,61,99,.08); border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: 0 16px 40px rgba(3,31,61,.16); }
.search-symbol { width: 56px; text-align: center; color: #315d82; font-size: 30px; line-height: 1; transform: rotate(-18deg); }
.search input { width: 100%; min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; touch-action: manipulation; }
.search input::placeholder { color: #8b9aab; }
.clear-search { width: 48px; height: 48px; border: 0; background: transparent; color: #738398; font-size: 25px; cursor: pointer; }
.search-suggestions { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 8px); width: 100%; max-width: 100%; overflow: auto; overscroll-behavior: contain; max-height: min(360px, calc(var(--visual-viewport-height, 100vh) * .46)); padding: 6px; border: 1px solid #dce6ef; border-radius: 15px; color: var(--ink); background: rgba(255,255,255,.99); box-shadow: 0 18px 44px rgba(3,31,61,.2); }
.search-suggestions[hidden] { display: none; }
.search-suggestions a, .search-suggestions button { width: 100%; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; min-height: 54px; padding: 7px 10px; border: 0; border-radius: 10px; color: inherit; background: transparent; text-align: left; text-decoration: none; cursor: pointer; }
.search-suggestions a:hover, .search-suggestions button:hover { background: #f1f7fc; }
.search-suggestions .file-icon { width: 34px; height: 38px; border-radius: 8px 8px 8px 3px; font-size: 9px; }
.search-suggestions strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.search-suggestions i { color: #91a0b1; font-style: normal; font-size: 22px; }

.content-section { padding: 30px clamp(20px, 5vw, 58px); }
.category-section { border-bottom: 10px solid var(--soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading h1, .section-heading h2 { margin: 3px 0 0; font-size: 26px; line-height: 1.25; letter-spacing: -.02em; }
.section-heading h2 { font-size: 22px; }
.section-heading.compact { align-items: center; }
.eyebrow { color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.scope-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; color: #36516d; background: #edf5fb; font-size: 12px; font-weight: 700; white-space: nowrap; }
.scope-pill i { width: 7px; height: 7px; border-radius: 50%; background: #27a86f; box-shadow: 0 0 0 3px rgba(39,168,111,.12); }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.category-card { position: relative; display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 13px; min-height: 104px; padding: 16px; text-align: left; border: 1px solid #e6edf4; border-radius: 17px; background: white; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.category-card:hover { transform: translateY(-2px); border-color: #b9d5ec; box-shadow: var(--shadow); }
.category-card strong, .category-card small { display: block; }
.category-card strong { font-size: 16px; }
.category-card small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-card em { position: absolute; right: 12px; top: 10px; color: #98a6b6; font-style: normal; font-size: 10px; }
.category-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: white; font-size: 19px; font-weight: 800; box-shadow: inset 0 1px rgba(255,255,255,.28); }
.category-icon.blue, .category-tag.blue { background: linear-gradient(135deg,#317cea,#6da9ff); }
.category-icon.cyan, .category-tag.cyan { background: linear-gradient(135deg,#08aab4,#52d0ce); }
.category-icon.orange, .category-tag.orange { background: linear-gradient(135deg,#f18431,#ffb55d); }
.category-icon.purple, .category-tag.purple { background: linear-gradient(135deg,#7b65db,#a996ff); }
.category-icon.green, .category-tag.green { background: linear-gradient(135deg,#25a567,#6bcd95); }
.category-icon.indigo, .category-tag.indigo { background: linear-gradient(135deg,#3874e8,#6e9cff); }
.category-icon.rose, .category-tag.rose { background: linear-gradient(135deg,#e65c79,#ff96aa); }

.latest-section { padding-bottom: 38px; }
.all-directory-section { padding-top: 24px; }
.text-button { border: 0; color: var(--blue); background: transparent; font-size: 14px; font-weight: 700; cursor: pointer; }
.resource-list { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; }
.resource-item { position: relative; border-bottom: 1px solid var(--line); }
.resource-item:last-child { border-bottom: 0; }
.resource-item .resource-row { padding-right: 102px; border-bottom: 0; }
.resource-actions { position: absolute; z-index: 2; right: 13px; top: 50%; display: flex; align-items: center; gap: 7px; transform: translateY(-50%); }
.favorite-button { position: absolute; z-index: 2; right: 13px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; transform: translateY(-50%); border: 1px solid #d9e5ef; border-radius: 11px; color: #8b99a9; background: #fff; font-size: 21px; cursor: pointer; }
.resource-actions .favorite-button { position: static; transform: none; }
.feedback-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d9e5ef; border-radius: 11px; color: #8090a2; background: #fff; font-size: 14px; letter-spacing: 1px; cursor: pointer; }
.favorite-button.saved { color: #f29a22; border-color: #f3d39f; background: #fff8eb; }
.resource-row { width: 100%; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; min-height: 76px; padding: 12px 15px; color: inherit; text-align: left; text-decoration: none; border: 0; border-bottom: 1px solid var(--line); background: white; cursor: pointer; }
.resource-row.ranked-row { grid-template-columns: 42px 48px 1fr auto; }
.rank-badge { display: grid; place-items: center; width: 38px; height: 42px; border-radius: 12px; line-height: 1; }
.rank-badge.medal { color: #7a5413; background: #fff7df; font-size: 26px; }
.rank-badge.number { color: #506379; background: #eef3f7; font-size: 15px; font-weight: 800; }
.resource-row:last-child { border-bottom: 0; }
.resource-row:hover { background: #f8fbfe; }
.resource-copy { min-width: 0; }
.resource-copy strong, .resource-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-copy strong { font-size: 16px; font-weight: 680; }
.resource-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.resource-title strong { min-width: 0; }
.new-badge { flex: 0 0 auto; padding: 3px 6px; border-radius: 6px; color: #0870d5; background: #e8f4ff; font-size: 10px; font-style: normal; font-weight: 800; }
.resource-copy small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.chevron { color: #90a0b2; font-size: 26px; font-weight: 300; }
.direct-open, .sync-state { justify-self: end; padding: 6px 9px; border-radius: 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.direct-open { color: #0870d5; background: #eaf4fd; }
.sync-state { color: #8795a5; background: #f0f3f6; }
.file-icon { display: grid; place-items: center; width: 44px; height: 48px; border-radius: 9px 9px 9px 4px; color: white; font-size: 11px; font-weight: 800; letter-spacing: -.02em; box-shadow: inset 0 1px rgba(255,255,255,.3); }
.file-icon.video { background: linear-gradient(145deg,#2578ef,#6aa4ff); font-size: 17px; }.file-icon.pdf { background: linear-gradient(145deg,#e74747,#ff7777); }.file-icon.excel { background: linear-gradient(145deg,#139957,#40bf7a); font-size: 17px; }.file-icon.ppt { background: linear-gradient(145deg,#f0792b,#ff9e4b); font-size: 17px; }.file-icon.word { background: linear-gradient(145deg,#2370d8,#4b94ee); font-size: 17px; }
.file-icon.image { background: linear-gradient(145deg,#8a62dc,#b48bf1); font-size: 16px; }

.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; width: min(100%, 1120px); transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); min-height: 70px; padding: 7px max(10px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)); border-top: 1px solid #dfe7ef; background: rgba(255,255,255,.96); backdrop-filter: blur(18px); box-shadow: 0 -10px 30px rgba(25,55,83,.06); }
.bottom-nav.has-favorites { grid-template-columns: repeat(4, 1fr); }
.bottom-nav button { display: grid; place-items: center; align-content: center; gap: 2px; border: 0; background: transparent; color: #7d8b9b; font-size: 11px; cursor: pointer; }
.bottom-nav button span { font-size: 23px; line-height: 1; }
.bottom-nav button.active { color: var(--blue); font-weight: 700; }

.page-header { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; min-height: 94px; padding: 16px clamp(18px, 4vw, 48px); border-bottom: 1px solid var(--line); background: white; }
.page-header h1 { margin: 3px 0 0; font-size: 24px; }
.back-button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 72px; height: 42px; border: 0; border-radius: 13px; color: #163955; background: #f3f7fa; cursor: pointer; }
.back-button span { font-size: 29px; line-height: 1; }
.back-button b { font-size: 12px; }
.more-button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 13px; color: #163955; background: #f3f7fa; font-size: 20px; cursor: pointer; }
.more-button { font-size: 16px; letter-spacing: 1px; }
.header-count { padding: 7px 10px; border-radius: 999px; background: #f0f5f9; color: var(--muted); font-size: 12px; font-weight: 700; }
.category-banner { display: flex; align-items: center; gap: 17px; margin: 22px clamp(20px, 5vw, 58px) 0; padding: 20px; overflow: hidden; border: 1px solid #dce9f3; border-radius: 19px; background: linear-gradient(120deg,#eef6fb,#f8fbfd); }
.category-banner strong { font-size: 20px; }.category-banner p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.list-search { padding: 22px clamp(20px, 5vw, 58px) 0; }
.list-search .search { max-width: none; border: 1px solid #dce6ee; background: #f6f9fb; box-shadow: none; }
.list-section { padding-top: 20px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; overflow-x: auto; padding: 14px clamp(20px, 5vw, 58px) 0; color: #7a899a; scrollbar-width: none; }
.breadcrumb::-webkit-scrollbar { display: none; }
.breadcrumb button { flex: 0 0 auto; padding: 0; border: 0; color: #52718d; background: transparent; font-size: 13px; cursor: pointer; }
.breadcrumb button[aria-current="page"] { color: var(--ink); font-weight: 700; pointer-events: none; }
.breadcrumb span { color: #afbac5; }
.folder-section { padding-top: 22px; }
.subsection-heading { margin-bottom: 14px; }
.subsection-heading h2 { margin: 4px 0 0; font-size: 20px; }
.files-heading { margin-top: 28px; }
.folder-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.folder-card { display: grid; grid-template-columns: 52px 1fr 20px; align-items: center; gap: 14px; min-height: 82px; padding: 13px 15px; text-align: left; border: 1px solid var(--line); border-radius: 15px; background: white; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.folder-card:hover { transform: translateY(-2px); border-color: #b9d5ec; box-shadow: var(--shadow); }
.folder-icon { position: relative; display: block; width: 48px; height: 37px; margin-top: 7px; border-radius: 7px; background: linear-gradient(145deg,#59adf0,#2c85db); box-shadow: inset 0 1px rgba(255,255,255,.35); }
.folder-icon::before { content: ""; position: absolute; left: 4px; top: -7px; width: 23px; height: 10px; border-radius: 5px 5px 0 0; background: #4a9fe5; }
.folder-icon i { position: absolute; inset: 8px 11px; border: 1px solid rgba(255,255,255,.75); border-radius: 3px; }
.folder-copy { min-width: 0; }
.folder-copy strong, .folder-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-copy strong { font-size: 16px; }
.folder-copy small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state span { display: block; font-size: 58px; transform: rotate(-18deg); color: #9eb2c4; }.empty-state h2 { color: var(--ink); margin-bottom: 8px; }.empty-state p { margin: 0; }

.file-preview { position: relative; overflow: hidden; min-height: 260px; margin: 22px clamp(20px, 5vw, 58px); padding: 28px; color: white; border-radius: 22px; background: linear-gradient(135deg,#082b50,#0b5797 62%,#67a9d6); }
.file-preview.pdf { background: linear-gradient(135deg,#263c59,#6b2436 72%,#dd5b66); }.file-preview.excel { background: linear-gradient(135deg,#173b39,#177451 68%,#4ab77a); }.file-preview.ppt { background: linear-gradient(135deg,#4a2a2a,#ad5127 72%,#ef9b4f); }.file-preview.word { background: linear-gradient(135deg,#173a62,#246caf 72%,#61a4e2); }.file-preview.image { background: linear-gradient(135deg,#303357,#624e9f 68%,#a87ed6); }
.preview-brand { position: relative; z-index: 2; font-size: 26px; font-weight: 800; letter-spacing: .05em; }
.preview-file { position: absolute; z-index: 2; left: 28px; bottom: 28px; display: flex; align-items: center; gap: 14px; }.preview-file strong { font-size: 21px; }
.preview-grid { position: absolute; width: 280px; height: 280px; right: -62px; bottom: -110px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.04),0 0 0 72px rgba(255,255,255,.03),0 0 0 112px rgba(255,255,255,.02); }
.detail-card { padding: 4px clamp(20px, 5vw, 58px) 30px; border-bottom: 10px solid var(--soft); }
.category-tag { display: inline-flex; padding: 6px 10px; color: white; border-radius: 8px; font-size: 12px; font-weight: 700; }
.detail-card h1 { margin: 15px 0 9px; font-size: 28px; line-height: 1.25; }.detail-card > p { margin: 0; max-width: 760px; color: var(--muted); line-height: 1.75; }
.metadata { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; overflow: hidden; margin: 24px 0 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--line); }
.metadata div { padding: 14px; background: white; }.metadata dt { color: var(--muted); font-size: 12px; }.metadata dd { margin: 6px 0 0; font-weight: 700; font-size: 14px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }.tag-row span { padding: 6px 10px; border-radius: 7px; color: #446079; background: #eff5f9; font-size: 12px; }
.related-section { padding-bottom: 20px; }
.detail-action { position: sticky; z-index: 10; bottom: 70px; padding: 14px clamp(20px, 5vw, 58px); text-align: center; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.trending-section { border-top: 10px solid var(--soft); padding-bottom: 38px; }
.topic-section { border-bottom: 10px solid var(--soft); }
.topic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.topic-card { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 13px; min-height: 92px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: #fff; text-align: left; cursor: pointer; }
.topic-card:hover { border-color: #b9d5ec; box-shadow: var(--shadow); }
.topic-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: white; background: linear-gradient(135deg,#317cea,#6da9ff); font-size: 14px; font-weight: 800; }
.topic-card.cyan .topic-icon,.topic-hero.cyan .topic-icon{background:linear-gradient(135deg,#08aab4,#52d0ce)}.topic-card.orange .topic-icon,.topic-hero.orange .topic-icon{background:linear-gradient(135deg,#f18431,#ffb55d)}.topic-card.purple .topic-icon,.topic-hero.purple .topic-icon{background:linear-gradient(135deg,#7b65db,#a996ff)}.topic-card.green .topic-icon,.topic-hero.green .topic-icon{background:linear-gradient(135deg,#25a567,#6bcd95)}.topic-card.indigo .topic-icon,.topic-hero.indigo .topic-icon{background:linear-gradient(135deg,#3874e8,#6e9cff)}.topic-card.rose .topic-icon,.topic-hero.rose .topic-icon{background:linear-gradient(135deg,#e65c79,#ff96aa)}
.topic-card strong,.topic-card small,.topic-card em { display:block; }.topic-card strong{font-size:15px}.topic-card small{margin-top:5px;color:var(--muted);font-size:11px}.topic-card em{margin-top:7px;color:#8a99aa;font-size:10px;font-style:normal}.topic-card>i{color:#91a0b1;font-size:24px;font-style:normal}.all-topics{grid-template-columns:repeat(3,minmax(0,1fr))}
.topic-hero { display:flex; align-items:center; gap:18px; margin:22px clamp(20px,5vw,58px) 0; padding:22px; border-radius:18px; background:#f4f8fc; }.topic-hero h2{margin:0;font-size:22px}.topic-hero p{margin:7px 0 0;color:var(--muted);font-size:12px}
.personal-tabs { display:flex; gap:8px; padding:18px clamp(20px,5vw,58px) 0; }.personal-tabs button{padding:9px 16px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-weight:700;cursor:pointer}.personal-tabs button.active{border-color:#9bc8ee;color:var(--blue);background:#eaf5ff}
.missing-feedback-button { margin-top:16px; padding:10px 15px; border:0; border-radius:10px; color:white; background:var(--blue); font-weight:700; cursor:pointer; }
.feedback-backdrop { position:fixed; z-index:100; inset:0; display:grid; place-items:center; padding:20px; background:rgba(8,27,46,.48); backdrop-filter:blur(5px); }.feedback-dialog{width:min(520px,100%);border-radius:18px;background:#fff;box-shadow:0 25px 80px rgba(0,0,0,.24);overflow:hidden}.feedback-dialog header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--line)}.feedback-dialog header span{color:var(--blue);font-size:11px;font-weight:800}.feedback-dialog h2{margin:4px 0 0;font-size:19px}.feedback-dialog header button{width:34px;height:34px;border:0;border-radius:9px;background:#f0f4f7;font-size:22px;cursor:pointer}.feedback-dialog>label{display:grid;gap:8px;padding:22px;color:#42566b;font-size:12px;font-weight:700}.feedback-dialog textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:11px;resize:vertical}.feedback-dialog footer{display:flex;justify-content:flex-end;gap:9px;padding:15px 22px;border-top:1px solid var(--line)}.feedback-dialog .primary,.feedback-dialog .secondary,.feedback-success .primary{min-height:40px;padding:0 16px;border:0;border-radius:10px;cursor:pointer}.feedback-dialog .primary,.feedback-success .primary{color:#fff;background:var(--blue)}.feedback-success{padding:34px;text-align:center}.feedback-success>span{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 12px;border-radius:50%;color:#fff;background:#21a66d;font-size:24px}.feedback-success h2{margin:0}.feedback-success p{color:var(--muted)}
.primary-button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; max-width: 680px; margin: 0 auto; border-radius: 14px; color: white; background: linear-gradient(135deg,#0968d6,#1687f2); box-shadow: 0 10px 24px rgba(9,104,214,.24); font-weight: 700; text-decoration: none; }
.primary-button.is-placeholder { background: #8b9aaa; box-shadow: none; cursor: default; }.detail-action small { display: block; margin-top: 8px; color: #7c8998; font-size: 11px; }.detail-feedback-button{display:block;margin:10px auto 0;padding:7px 12px;border:0;background:transparent;color:#55718a;font-size:12px;cursor:pointer}.detail-feedback-button:hover{color:#0873d1;text-decoration:underline}

.boot-screen, .fatal-state { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 13px; color: var(--muted); background: white; text-align: center; padding: 24px; }
.boot-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; color: white; background: var(--navy); font-size: 28px; font-weight: 800; }
.fatal-state h1 { margin: 5px 0 0; color: var(--ink); font-size: 24px; }.fatal-state p { margin: 0; }.fatal-state button { margin-top: 10px; padding: 11px 18px; border: 0; border-radius: 10px; color: white; background: var(--blue); }

@media (max-width: 820px) {
  html, body, #app, .site-shell { width: 100%; min-width: 0; max-width: 100%; }
  .site-shell { margin-left: 0; margin-right: 0; }
  input, textarea, select { font-size: 16px !important; }
  .category-grid { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .all-topics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bottom-nav { width: 100%; }
}

@media (max-width: 520px) {
  body { background: white; }
  .brand-panel { min-height: 265px; padding: 34px 20px 26px; }
  .brand-panel > p { margin: 10px 0 29px; font-size: 14px; }
  .brand-lines { display: none; }
  .admin-entry { right: 17px; top: 20px; padding: 7px 9px; font-size: 11px; }
  .search { height: 52px; border-radius: 16px; contain: layout; }
  .search input { font-size: 17px !important; }
  .search-suggestions { max-height: min(320px, calc(var(--visual-viewport-height, 100vh) * .42)); }
  .search-symbol { width: 50px; }
  .content-section { padding-left: 16px; padding-right: 16px; }
  .category-section { padding-top: 25px; }
  .section-heading h1 { font-size: 23px; }
  .category-grid { gap: 10px; }
  .topic-grid,.all-topics { grid-template-columns:1fr; }
  .category-card { grid-template-columns: 43px 1fr; gap: 10px; min-height: 88px; padding: 12px 10px; border-radius: 15px; }
  .category-icon { width: 43px; height: 43px; border-radius: 12px; font-size: 16px; }
  .category-card strong { font-size: 15px; }.category-card small { font-size: 10px; }.category-card em { display: none; }
  .resource-row { grid-template-columns: 44px 1fr auto; gap: 11px; padding: 11px 12px; }
  .resource-row.ranked-row { grid-template-columns: 34px 44px 1fr auto; gap: 9px; }
  .rank-badge { width: 32px; height: 38px; border-radius: 10px; }
  .direct-open, .sync-state { padding: 5px 7px; font-size: 10px; }
  .resource-copy strong { font-size: 15px; }
  .page-header { grid-template-columns: 70px 1fr auto; min-height: 82px; padding: 12px 16px; }
  .page-header h1 { font-size: 20px; }.back-button { width: 64px; height: 38px; }.more-button { width: 38px; height: 38px; }
  .category-banner { margin: 16px 16px 0; padding: 16px; }.category-banner p { font-size: 12px; }
  .list-search { padding: 16px 16px 0; }
  .breadcrumb { padding-left: 16px; padding-right: 16px; }
  .folder-grid { grid-template-columns: 1fr; }
  .folder-card { min-height: 76px; }
  .file-preview { min-height: 215px; margin: 16px; padding: 22px; border-radius: 18px; }.preview-file { left: 22px; bottom: 22px; }
  .detail-card { padding: 2px 18px 26px; }.detail-card h1 { font-size: 24px; }
  .metadata { grid-template-columns: 1fr; }.metadata div { display: flex; align-items: center; justify-content: space-between; }.metadata dd { margin: 0; }
  .detail-action { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
