:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171715;
  background: #f7f7f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #171715;
  --muted: #6f706b;
  --line: #dedfd8;
  --panel: #ffffff;
  --soft: #f0f1ec;
  --accent: #1f4f46;
  --accent-2: #e7f2ee;
  --danger: #9a342f;
  --shadow: 0 18px 50px rgba(28, 32, 28, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 50% -10%, #ffffff 0, #f7f7f4 46%, #f2f3ee 100%); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(31,79,70,.2); outline-offset: 2px; }
.section-wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.topbar { width: min(1180px, calc(100% - 40px)); margin: 0 auto; height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(222,223,216,.7); }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 730; letter-spacing: -.02em; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; letter-spacing: -.03em; }
.top-actions { display: flex; gap: 24px; font-size: 14px; color: #50514d; }
.top-actions a:hover { color: var(--ink); }
.hero { padding: 90px 0 52px; }
.eyebrow, .section-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .13em; font-weight: 760; color: #62645e; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #2c7d69; box-shadow: 0 0 0 5px rgba(44,125,105,.09); }
.hero h1 { max-width: 850px; margin: 18px 0 18px; font-size: clamp(48px, 7vw, 82px); line-height: .96; letter-spacing: -.065em; font-weight: 760; }
.hero-copy { max-width: 660px; margin: 0; color: #595b56; font-size: 19px; line-height: 1.6; }
.tool-section, .vault-section { padding: 44px 0 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-kicker { margin: 0 0 9px; }
.section-heading h2, .security-copy h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; line-height: 1.02; }
.privacy-pill { border: 1px solid #cddbd5; background: #edf6f2; color: #2c6658; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700; }
.quick-card { display: grid; grid-template-columns: 1.65fr .85fr; gap: 14px; padding: 14px; background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.field-stack { display: flex; flex-direction: column; padding: 16px; }
.field-stack label, .modal label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 680; color: #40413e; }
textarea, input, select { width: 100%; border: 1px solid #d8d9d2; background: #fbfbf9; border-radius: 12px; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; }
textarea { resize: vertical; min-height: 94px; padding: 14px 15px; line-height: 1.45; }
input, select { height: 46px; padding: 0 13px; }
textarea:focus, input:focus, select:focus { border-color: #8ca69d; background: #fff; box-shadow: 0 0 0 4px rgba(31,79,70,.07); outline: none; }
.field-meta { min-height: 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 9px; color: #7a7b76; font-size: 12px; line-height: 1.45; }
.text-button, .link-button, .advanced-toggle { border: 0; background: transparent; color: var(--accent); padding: 0; font-weight: 700; }
.code-panel { min-height: 210px; border-radius: 17px; background: #1c211f; color: #fff; padding: 23px; display: flex; flex-direction: column; justify-content: center; }
.code-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #a8b2ad; font-weight: 700; }
.code-button { border: 0; background: transparent; color: #fff; text-align: left; padding: 10px 0 15px; font-size: clamp(38px, 5vw, 58px); letter-spacing: .045em; font-weight: 720; font-variant-numeric: tabular-nums; }
.code-button:disabled { opacity: .35; cursor: default; }
.timer-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; color: #b6beb9; font-size: 12px; }
.timer-track { height: 4px; border-radius: 4px; background: #39413d; overflow: hidden; }
.timer-track span { height: 100%; display: block; background: #b5ddd0; transition: width .35s linear; }
.copy-note { min-height: 20px; margin-top: 8px; color: #7f8a84; font-size: 11px; }
.vault-heading { align-items: center; }
.toolbar-actions, .locked-actions, .modal-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.primary-button, .secondary-button { min-height: 42px; border-radius: 11px; padding: 0 15px; font-weight: 720; font-size: 13px; transition: transform .15s, background .15s; }
.primary-button { border: 1px solid #1c211f; background: #1c211f; color: #fff; }
.primary-button:hover { background: #2b3230; }
.secondary-button { border: 1px solid #d5d6cf; background: #fff; color: #343531; }
.secondary-button:hover { background: #f5f5f2; }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: .55; cursor: progress; }
.empty-card, .locked-card { min-height: 260px; border: 1px dashed #cdd0c8; border-radius: 22px; background: rgba(255,255,255,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px; }
.empty-card.compact { min-height: 210px; }
.empty-card h3, .locked-card h3 { margin: 6px 0 8px; font-size: 24px; letter-spacing: -.035em; }
.empty-card p, .locked-card p { max-width: 520px; color: #696b66; line-height: 1.55; margin: 0 0 20px; }
.empty-card .link-button { margin-top: 14px; }
.empty-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: #ebeee9; font-size: 23px; margin-bottom: 10px; }
.locked-card { min-height: 190px; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; padding: 30px; }
.locked-card p { margin-bottom: 0; }
.vault-controls { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 12px; }
.search-box { height: 46px; width: min(430px, 100%); display: flex; align-items: center; gap: 8px; border: 1px solid #d8d9d2; background: #fff; border-radius: 12px; padding: 0 12px; }
.search-box input { border: 0; background: transparent; padding: 0; height: 42px; box-shadow: none; }
.search-box input:focus { box-shadow: none; }
.account-count { font-size: 12px; color: #777974; }
.account-list { border: 1px solid var(--line); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 30px rgba(28,32,28,.035); }
.account-row { display: grid; grid-template-columns: 46px minmax(150px,1fr) 200px 8px auto; align-items: center; gap: 14px; min-height: 84px; padding: 12px 16px; border-bottom: 1px solid #e7e8e2; }
.account-row:last-child { border-bottom: 0; }
.service-avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #eef0eb; color: #4a4e49; font-size: 12px; font-weight: 800; }
.account-identity { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.account-identity strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
.account-identity span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #767873; font-size: 12px; }
.saved-code { display: flex; align-items: baseline; justify-content: flex-end; gap: 11px; border: 0; background: transparent; color: var(--ink); padding: 8px; border-radius: 9px; }
.saved-code:hover { background: #f5f6f2; }
.saved-code span { font-size: 27px; letter-spacing: .04em; font-weight: 720; font-variant-numeric: tabular-nums; }
.saved-code small { width: 36px; color: #858781; font-size: 10px; }
.mini-timer { position: relative; height: 42px; width: 5px; border-radius: 8px; background: #eceee9; overflow: hidden; }
.mini-timer span { position: absolute; inset: 0; transform-origin: bottom; background: #7ea797; transition: transform .35s linear; }
.mini-timer.urgent span { background: #bb6a60; }
.row-menu { display: flex; gap: 5px; }
.icon-button { border: 0; border-radius: 8px; background: transparent; color: #666963; padding: 8px; font-size: 11px; font-weight: 700; }
.icon-button:hover { background: #f3f4f0; color: var(--ink); }
.icon-button.danger:hover { color: var(--danger); background: #fbf0ef; }
.search-empty { border: 1px dashed #d2d4cd; border-radius: 16px; padding: 40px; text-align: center; color: #747671; }
.backup-strip { margin-top: 14px; padding: 18px 20px; border: 1px solid #d9ddd7; border-radius: 15px; background: #f0f4f0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.backup-strip div { display: flex; flex-direction: column; gap: 4px; }
.backup-strip strong { font-size: 13px; }
.backup-strip span { font-size: 12px; color: #696c67; }
.security-section { padding: 92px 0 90px; border-top: 1px solid #dddeda; }
.security-copy { max-width: 740px; }
.security-copy > p:last-child { color: #62645f; font-size: 17px; line-height: 1.65; }
.security-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 35px; }
.security-grid > div { min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.7); }
.security-grid span { font-size: 11px; color: #8b8d87; }
.security-grid strong { display: block; margin-top: 26px; font-size: 15px; }
.security-grid p { margin: 8px 0 0; color: #73756f; line-height: 1.55; font-size: 13px; }
.security-warning { margin-top: 12px; padding: 18px 20px; border-radius: 14px; background: #f1eee5; color: #675f4c; font-size: 12px; line-height: 1.55; }
.footer { min-height: 110px; border-top: 1px solid #dddeda; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #777972; font-size: 12px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(18,20,19,.48); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; }
.modal { position: relative; width: min(520px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; border-radius: 20px; background: #fff; border: 1px solid #dbddd6; padding: 28px; box-shadow: 0 26px 80px rgba(14,18,15,.2); }
.modal h2 { margin: 0; font-size: 29px; letter-spacing: -.04em; }
.modal-subtitle { margin: 10px 0 22px; color: #6c6e68; line-height: 1.55; font-size: 13px; }
.modal-close { position: absolute; right: 15px; top: 14px; width: 34px; height: 34px; border-radius: 9px; border: 0; background: #f1f2ee; color: #60625d; font-size: 20px; }
.modal form { display: flex; flex-direction: column; gap: 14px; }
.modal textarea { min-height: 82px; }
.modal-actions { justify-content: flex-end; margin-top: 8px; }
.optional { color: #999b95; font-size: 11px; font-weight: 500; }
.advanced-toggle { text-align: left; font-size: 12px; margin-top: -2px; }
.advanced-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.error-text, .global-error { color: #a03f38 !important; }
.global-error { margin-top: 14px; font-size: 12px; }
.notice { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translateX(-50%); background: #1e2421; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: 0 12px 35px rgba(0,0,0,.14); font-size: 12px; animation: fadeNotice 3.8s both; }
@keyframes fadeNotice { 0% { opacity: 0; transform: translate(-50%,8px); } 8%,85% { opacity: 1; transform: translate(-50%,0); } 100% { opacity: 0; transform: translate(-50%,4px); } }
@media (max-width: 860px) {
  .quick-card { grid-template-columns: 1fr; }
  .code-panel { min-height: 180px; }
  .security-grid { grid-template-columns: repeat(2,1fr); }
  .account-row { grid-template-columns: 42px 1fr auto 6px; }
  .saved-code { grid-column: 2 / span 2; justify-content: flex-start; padding-left: 0; }
  .mini-timer { grid-column: 4; grid-row: 1 / span 2; }
  .row-menu { grid-column: 2 / span 2; }
}
@media (max-width: 640px) {
  .section-wrap, .topbar { width: min(100% - 24px, 1120px); }
  .top-actions { display: none; }
  .topbar { height: 66px; }
  .hero { padding: 64px 0 36px; }
  .hero h1 { font-size: clamp(44px, 15vw, 64px); }
  .hero-copy { font-size: 16px; }
  .section-heading, .vault-heading, .locked-card, .backup-strip, .footer { flex-direction: column; align-items: stretch; }
  .section-heading { gap: 14px; }
  .privacy-pill { align-self: flex-start; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions button { flex: 1 1 auto; }
  .vault-controls { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .account-count { padding-left: 3px; }
  .account-row { grid-template-columns: 40px 1fr 5px; gap: 10px; padding: 13px; }
  .saved-code { grid-column: 1 / span 2; justify-content: flex-start; padding: 6px 0; }
  .saved-code span { font-size: 30px; }
  .mini-timer { grid-column: 3; grid-row: 1 / span 3; height: 78px; }
  .row-menu { grid-column: 1 / span 2; }
  .security-grid { grid-template-columns: 1fr; }
  .advanced-grid { grid-template-columns: 1fr; }
  .footer { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
