:root {
  --bg: #f8f9fa;
  --surface: #fff;
  --text: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --blue: #1a73e8;
  --blue-hover: #174ea6;
  --blue-soft: #e8f0fe;
  --ok: #188038;
  --bad: #d93025;
  --amber: #e37400;
  --shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
[hidden] { display: none !important; }
body {
  font-family: "Roboto", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 22px;
  line-height: 1;
  vertical-align: middle;
  /* 与 index 内联样式一致：占位不撑开标签旁文字 */
  width: 1.15em;
  height: 1.15em;
  overflow: hidden;
  flex-shrink: 0;
}
.material-symbols-outlined.fill {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.shell { display: flex; flex-direction: column; height: 100vh; }
.main-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg);
}
.site-foot {
  flex: 0 0 auto;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 24px 0 8px;
}
.site-foot-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-foot-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.site-foot-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.site-foot-links a:hover { color: var(--blue); text-decoration: underline; }
.site-foot-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-left: auto;
}
.site-foot-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-foot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #e8eaed;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.site-foot-btn:hover { background: #dadce0; border-color: #c0c4c8; }
.site-foot-btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.site-foot-btn--primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
}
.site-foot-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  line-height: 1.4;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 12px 0 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex: 0 0 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 22px;
  font-weight: 400;
  min-width: 148px;
  padding: 0 8px;
}
.logo-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
}
.logo .material-symbols-outlined { color: var(--blue); font-size: 28px; }
.tabs { display: flex; gap: 4px; flex: 1; }
.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.tabs a:hover { background: #f1f3f4; color: var(--text); }
.tabs a.on { background: var(--blue-soft); color: var(--blue); }
.status { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f3f4;
  border-radius: 16px;
  padding: 6px 12px;
}
.status-chip .material-symbols-outlined { font-size: 18px; }
.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}
.icon-btn:hover { background: #f1f3f4; color: var(--text); }
.account-menu {
  position: relative;
  flex: 0 0 auto;
}
.account-menu .account-trigger.on,
.account-menu:hover .account-trigger {
  background: #f1f3f4;
  color: var(--text);
}
.account-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(300px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(32, 33, 36, 0.18);
  padding: 12px;
  z-index: 40;
}
.account-menu:hover .account-pop:not([hidden]),
.account-menu.is-open .account-pop {
  display: block;
}
.account-pop[hidden] { display: none !important; }
.account-pop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}
.account-pop-head b {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.account-pop-head .hint {
  margin: 4px 0 0;
  font-size: 12px;
}
.account-pop-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: 0 0 40px;
}
.account-pop-avatar .material-symbols-outlined { font-size: 26px; }
.account-pop-meta { flex: 1; min-width: 0; }
.account-pop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.account-tag {
  font-size: 11px;
  color: #1967d2;
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.account-section-label {
  margin: 4px 0 6px;
  font-size: 12px;
  color: var(--muted);
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.account-nav a,
.account-nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  font: inherit;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.account-nav a:hover,
.account-nav button:hover {
  background: #f1f3f4;
}
.account-nav .material-symbols-outlined {
  font-size: 20px;
  color: var(--muted);
}
.account-pop-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}
.account-pop-foot .btn {
  width: 100%;
  justify-content: center;
}


.ask-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(60,64,67,.08);
}
.ask-pill:hover { background: #f8f9fa; }
.ask-pill .material-symbols-outlined { color: var(--blue); }
.ask-box { margin: 0 0 18px; }
.ask-log {
  max-height: 240px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
}
.ask-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.55;
}
.ask-msg.q { align-self: flex-end; background: var(--blue-soft); }
.ask-msg.a { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); }
.ask-msg.ask-pending {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ask-dots {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.35;
  animation: askPulse 1s ease-in-out infinite;
}
@keyframes askPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.05); }
}
.ask-chips button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: min(420px, calc(100vw - 24px));
}
.toast {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 10px;
  background: #202124;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(32, 33, 36, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  text-align: center;
}
.toast.on {
  opacity: 1;
  transform: translateY(0);
}
.toast-ok { background: #137333; }
.toast-err { background: #c5221f; }
.toast-info { background: #174ea6; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.ask-chips button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 6px 12px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}
.ask-chips button:hover { background: var(--blue-soft); color: var(--blue); }
.ask-form {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #e9eef6;
  border-radius: 24px;
  padding: 4px 4px 4px 14px;
}
.ask-form input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  min-width: 0;
}
.mod-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  max-width: 760px;
}
.mod-chips button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 8px 12px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}
.mod-chips button:hover { background: #f1f3f4; }
.mod-chips button.on {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
  color: var(--blue);
  font-weight: 500;
}
.mod-chips button.on:hover { background: #d2e3fc; }
.mod-chips button .material-symbols-outlined { font-size: 18px; }
.mod-chips button.on .material-symbols-outlined { color: var(--blue); }
.auth-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.auth-tabs button {
  border: 0;
  background: #f1f3f4;
  color: var(--muted);
  border-radius: 16px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}
.auth-tabs button.on { background: var(--blue-soft); color: var(--blue); font-weight: 500; }
.auth-tabs button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: #9aa0a6;
  background: #f1f3f4;
}
.panel.auth .hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.layout { display: flex; flex: 1; min-height: 0; }
.side {
  width: 256px;
  flex: 0 0 256px;
  background: var(--surface);
  padding: 12px 8px 20px 8px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.new-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 4px 8px 8px;
  padding: 12px 20px 12px 12px;
  border-radius: 24px;
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  box-shadow: var(--shadow);
}
.new-btn .material-symbols-outlined { color: var(--blue); font-size: 26px; }
.side-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 8px;
}
.side-label {
  margin: 0 16px 2px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.side-mods {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 10px 12px 10px 16px;
  border-radius: 24px;
  cursor: pointer;
  text-decoration: none;
}
.side-link-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.side-link:hover { background: #f1f3f4; }
.side-link.on {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 500;
}
.side-link .badge, .tabs .badge {
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 9px;
  background: #d93025;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.tabs .badge { margin-left: 6px; }
.side-link .badge[hidden], .tabs .badge[hidden] { display: none; }
.side-link.on .material-symbols-outlined { color: var(--blue); }
.side-check { margin-left: auto; font-size: 20px; }
.side-link:not(.on) .side-check { color: #dadce0; }
.side-hint { margin: auto 16px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.work {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 24px 32px 32px;
  display: block;
}
.work-title { font-size: 22px; font-weight: 400; margin: 0 0 6px; }
.work-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
}
.work-head .work-title { margin: 0 0 6px; }
.work-head .kicker { margin: 0; }
.work-head .btn { flex: none; }
.lead { color: var(--muted); line-height: 1.6; margin: 0 0 20px; max-width: 720px; }
.kicker { color: var(--muted); font-size: 12px; margin-bottom: 4px; }

.home-landing {
  max-width: 920px;
  margin: 0 auto;
}
.home-hero {
  margin: 0 0 24px;
  padding: 40px 36px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}
.home-eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.home-hero-title {
  margin: 0 auto 12px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 18em;
}
.home-hero-sub {
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 40em;
}
.home-save-hint {
  margin: 0 auto 12px;
  max-width: 36em;
  text-align: center;
}
.home-hero .drive-search {
  margin: 0 auto 12px;
  max-width: 640px;
  text-align: left;
}
.home-hero .mod-chips {
  justify-content: center;
  margin: 0 auto 0;
  max-width: 760px;
}
.home-hero .err {
  text-align: center;
  margin-top: 8px;
}
.home-guide {
  margin: 0 0 24px;
  padding: 40px 36px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}
.home-section {
  margin: 0 0 40px;
}
.home-section--last {
  margin-bottom: 0;
}
.home-section-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.home-section-lead {
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  max-width: 36em;
}
.home-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.home-step {
  position: relative;
  padding: 36px 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-height: 160px;
  text-align: center;
}
.home-step-num {
  position: absolute;
  top: 6px;
  left: 12px;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: rgba(32, 33, 36, 0.08);
  pointer-events: none;
  user-select: none;
}
.home-step h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}
.home-step p {
  position: relative;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
  max-width: 22em;
}
.home-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.home-check-card {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}
.home-check-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px;
}
.home-check-head .material-symbols-outlined {
  color: var(--blue);
  font-size: 26px;
}
.home-check-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.home-check-card > p {
  margin: 0 auto 12px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 28em;
}
.home-check-card ul {
  margin: 0 auto;
  padding-left: 0;
  list-style-position: inside;
  color: var(--text);
  line-height: 1.7;
  text-align: left;
  display: inline-block;
}
.home-check-card li { margin: 0 0 4px; }
.home-value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.home-value-card {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}
.home-value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.home-value-icon .material-symbols-outlined { font-size: 24px; color: var(--blue); }
.home-value-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}
.home-value-card p {
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
  max-width: 28em;
}
.home-panel {
  margin: 0 0 24px;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.home-panel-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}
.home-cta-panel .drive-search {
  max-width: 640px;
  margin: 0 auto;
}
.home-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.home-faq-item {
  background: #f1f3f4;
  border-radius: 8px;
  overflow: hidden;
}
.home-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.home-faq-q:hover { background: rgba(32, 33, 36, 0.04); }
.home-faq-chevron {
  flex: none;
  color: var(--muted);
  font-size: 22px;
  transition: transform 0.15s ease;
}
.home-faq-item.open .home-faq-chevron { transform: rotate(90deg); }
.home-faq-a {
  display: none;
  padding: 0 16px 16px 48px;
}
.home-faq-item.open .home-faq-a { display: block; }
.home-faq-a p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.home-sample {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 20px 24px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.home-sample-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
}
.phone-demo {
  position: relative;
  width: 148px;
  height: 210px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  padding: 14px 10px 10px;
}
.phone-demo-bar {
  width: 36px;
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  margin: 0 auto 12px;
}
.phone-demo-nav {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
  white-space: nowrap;
}
.phone-demo-block {
  height: 18px;
  background: #e8eaed;
  border-radius: 4px;
  margin-bottom: 8px;
}
.phone-demo-block.short { width: 62%; }
.phone-demo-cta {
  position: absolute;
  right: -36px;
  bottom: 48px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  padding: 7px 16px;
  border-radius: 4px;
  white-space: nowrap;
}
.phone-demo-tag {
  position: absolute;
  left: 8px;
  bottom: 10px;
  font-size: 11px;
  color: var(--bad);
  background: #fce8e6;
  border-radius: 4px;
  padding: 3px 7px;
}
.top-blockers h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.top-blockers .finding-shot { max-height: 280px; }

.drive-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  background: #e9eef6;
  border-radius: 8px;
  padding: 4px 4px 4px 16px;
  height: 56px;
  margin: 8px 0 16px;
}
.drive-search .material-symbols-outlined { color: var(--muted); }
.drive-search .btn .material-symbols-outlined { color: #fff; }
.drive-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 16px;
  min-width: 0;
}
.btn {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover { background: var(--blue-hover); }
.btn.ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: var(--blue-soft); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
input:not([type]),
input[type="tel"],
input[type="text"],
input[type="url"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"] {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
  outline: none;
}
input:not([type]):focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus {
  border-color: var(--blue);
}
.work input[type="tel"] { width: 200px; flex: none; }
.work input[name="code"] { width: 132px; flex: none; }
.work input[type="password"] { width: 200px; flex: none; }
.panel.auth { max-width: 560px; }
.panel.auth .field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.panel.auth .field-grid input,
.panel.auth .row input {
  width: 100%;
  min-width: 0;
  flex: 1;
}
.panel.auth .row input[type="password"] {
  width: auto;
  flex: 1;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 0 0 16px;
}
.subtabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 18px;
}
.subtabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.subtabs button.on { color: var(--blue); border-bottom-color: var(--blue); }

.scan {
  min-height: 52vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #e8eaed;
  border-top-color: var(--blue);
  animation: spin 0.9s linear infinite;
  margin: 0 auto 18px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scan .stage { color: var(--blue); font-weight: 500; }
.scan h2 { font-size: 22px; font-weight: 400; margin: 8px 0; }
.scan .lead { max-width: 28em; }
#scanRetry { margin-top: 16px; display: flex; gap: 10px; justify-content: center; }

.kpi { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; }
.score {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 8px solid var(--blue-soft);
  background: var(--surface);
}
.score b { font-size: 42px; font-weight: 400; line-height: 1; color: var(--blue); }
.score.tone-low { border-color: #fce8e6; }
.score.tone-low b { color: var(--bad); }
.score.tone-mid { border-color: #feefc3; }
.score.tone-mid b { color: var(--amber); }
.score.tone-high { border-color: #e6f4ea; }
.score.tone-high b { color: var(--ok); }
.score small { color: var(--muted); font-size: 12px; }
.headline { font-size: 22px; font-weight: 400; margin: 0 0 8px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.card:hover { background: #fff; border-color: #c0c4c8; }
.card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.card.on {
  background: var(--blue-soft);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.card .n { font-size: 28px; color: var(--blue); font-weight: 400; }
.card.tone-low .n { color: var(--bad); }
.card.tone-mid .n { color: var(--amber); }
.card.tone-high .n { color: var(--ok); }
.card.tone-low p { color: var(--bad); }
.card.tone-mid p { color: var(--amber); }
.card.tone-high p { color: var(--ok); }
.card b { display: block; margin: 2px 0 6px; font-weight: 500; }
.card p { margin: 0; font-size: 13px; line-height: 1.45; }
.pillar-analysis {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 0 0 16px;
}
.pillar-analysis h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.devices.pillar-shot { grid-template-columns: minmax(180px, 280px); margin: 12px 0 16px; }
.finding-shot {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  margin-top: 10px;
  border: 1px solid var(--line);
}
.devices { display: grid; grid-template-columns: 0.7fr 0.9fr 1.4fr; gap: 12px; }
.device {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.device .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.device img { display: block; width: 100%; height: 260px; object-fit: cover; object-position: top; background: #eee; }

.findings { display: flex; flex-direction: column; gap: 10px; }
.rec-group { margin-bottom: 18px; }
.rec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 8px;
}
.rec-head span {
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 1px 8px;
}
.finding {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--surface);
}
.finding.locked { opacity: 0.55; }
.finding p, .rec p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.finding b, .rec b { font-size: 15px; font-weight: 500; }
.meta { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.impact-tag {
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  padding: 2px 8px;
  background: #feefc3;
  color: var(--amber);
}
.finding.tone-lead .impact-tag { background: #fce8e6; color: var(--bad); }
.finding.tone-find .impact-tag { background: #feefc3; color: var(--amber); }
.finding.tone-polish .impact-tag { background: var(--blue-soft); color: var(--blue); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fact {
  display: grid;
  gap: 2px;
  min-width: 108px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.fact b { font-size: 16px; font-weight: 500; color: var(--text); line-height: 1.2; }
.fact small { color: var(--muted); font-size: 11px; }
.rec {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--surface);
  margin-bottom: 8px;
}
.evidence { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 12px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
details.evidence-box { margin-top: 8px; color: var(--muted); font-size: 13px; }
details.evidence-box summary { cursor: pointer; color: var(--blue); }

.lock {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: 8px;
  border: 1px dashed #f9ab00;
  background: #fef7e0;
}
.lock h3 { margin: 0 0 8px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.pkg { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--bg); }
.pkg.on { border-color: var(--blue); background: var(--blue-soft); }
.pkg-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  background: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 8px;
}
.pkg ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.err { color: var(--bad); font-size: 13px; margin-top: 10px; }
.ok { color: var(--ok); }
.btn.is-wait,
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}
.captcha-back {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 28, 46, 0.42);
  display: grid;
  place-items: center;
  padding: 20px;
}
.captcha-card {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 18px 48px rgba(15, 28, 46, 0.18);
}
.captcha-card h3 { margin: 0 0 6px; font-size: 18px; }
.captcha-card .lead { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.captcha-row img {
  width: 120px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #eef3f9;
  cursor: pointer;
}
.captcha-card input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
}
.captcha-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.list a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-bottom: 1px solid #eee;
}
.list a:hover { background: var(--bg); }
.list a .badge { margin-left: auto; font-size: 11px; }
.struct-tree { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.struct-tree li {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
}
.struct-tree .kind {
  font-size: 11px; color: var(--blue); background: var(--blue-soft);
  border-radius: 999px; padding: 2px 8px;
}
.struct-tree small { color: var(--muted); }
.struct-tree .bad { color: var(--bad); }
.struct-home { margin: 0 0 8px; color: var(--muted); }

@media (max-width: 900px) {
  .side { display: none; }
  .kpi, .devices, .packages { grid-template-columns: 1fr; }
  .work { padding: 16px; }
  .site-foot { margin-top: 32px; padding-top: 20px; }
  .site-foot-row { justify-content: center; }
  .site-foot-links { justify-content: center; width: 100%; padding-top: 0; }
  .site-foot-right { width: 100%; align-items: center; margin-left: 0; }
  .site-foot-actions { justify-content: center; }
  .site-foot-copy { text-align: center; }
  .tabs a span.material-symbols-outlined + * { }
  .logo { font-size: 18px; min-width: auto; }
  .panel.auth .field-grid { grid-template-columns: 1fr; }
  .home-hero { padding: 28px 16px 24px; }
  .home-guide { padding: 28px 16px 24px; }
  .home-hero-title { font-size: 26px; }
  .home-steps,
  .home-check-grid,
  .home-value-grid { grid-template-columns: 1fr; }
  .home-panel { padding: 24px 16px; }
  .home-faq-a { padding-left: 16px; }
}
