/* FileSeen app surfaces: the homepage uploader, the stats page and the report page.
   Uses the tokens from site.css. */
/* the hidden attribute always wins over a display rule (several fixes were needed one class at a time) */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tag-pro { font-size: 11px; padding: 2px 8px; margin-left: 6px; vertical-align: 3px; letter-spacing: .02em; }
.d-pro { font-style: normal; font-size: .72em; font-weight: 600; color: var(--blue); background: var(--blue-50); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }

/* ---- uploader ---- */
#share { max-width: 760px; margin-top: 30px; }
.up { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; text-align: left; }
.up-step[hidden] { display: none; }
.up-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px 30px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--gray); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.up-drop:hover, .up-drop.is-over { border-color: var(--blue); background: var(--blue-50); }
.up-drop:focus-within { outline: 3px solid var(--blue-200); outline-offset: 2px; }
.up-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.up-drop-ico { width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue); }
.up-drop-ico .ico { width: 24px; height: 24px; }
.up-drop b { font-size: 17px; color: var(--navy); }
.up-drop b u { color: var(--blue); text-underline-offset: 3px; }
.up-drop-sub { font-size: 14px; color: var(--muted); }
.up-fine { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.up-swap { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-2, var(--muted)); margin: 10px 0 0; line-height: 1.5; }
.up-swap .ico { color: var(--blue); margin-top: 1px; }
.up-swap .tag-pro { margin-left: 4px; vertical-align: 1px; }
.up-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #FDF0F0; color: #A12222; font-size: 14px; line-height: 1.45; }
.up-err[hidden] { display: none; }
.up-h { font-size: 20px; line-height: 1.3; margin: 0; color: var(--navy); letter-spacing: -0.01em; }
.up-p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.up-form { display: flex; gap: 10px; margin-top: 16px; }
.up-form input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--navy); border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.up-form input:focus { outline: 3px solid var(--blue-200); border-color: var(--blue); }
.up-form .btn { height: 48px; flex: none; }
.up-form .btn[disabled] { opacity: .6; cursor: progress; }
.up-code { letter-spacing: .4em; font-variant-numeric: tabular-nums; font-weight: 600; max-width: 220px; }
.up-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.up-textbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.up-textbtn:hover { color: var(--blue-700); }

.up-file { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.up-file-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.up-file-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.up-file-name { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.up-file-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); }
.up-file-name small { color: var(--muted); flex: none; }
.up-prog { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.up-prog i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: inherit; transition: width .2s; }
.up-pct { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text-2); width: 42px; text-align: right; }

.up-done-head { display: flex; gap: 12px; align-items: flex-start; }
.up-ok { width: 40px; height: 40px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; flex: none; }
.up-ok .ico { width: 22px; height: 22px; }
.up-share { min-width: 0; }
.up-done-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; margin-top: 18px; align-items: start; }
.up-label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.up-linkrow { display: flex; gap: 8px; }
.up-link { flex: 1; min-width: 0; display: flex; align-items: center; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--gray); color: var(--navy); font-weight: 600; font-size: 15.5px; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.up-link:hover { border-color: var(--blue); color: var(--blue); }
.up-copy { height: 48px; gap: 6px; flex: none; }
.up-copy.is-done { background: var(--green); }
.up-stats { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--navy); background: #fff; }
.up-stats:hover { border-color: var(--green); }
.up-stats-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--green-50); color: var(--green); display: grid; place-items: center; flex: none; }
.up-stats b { display: block; font-size: 15.5px; }
.up-stats small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.up-stats-arrow { margin-left: auto; color: var(--muted); flex: none; }
.up-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.up-qr img { width: 148px; height: 148px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; image-rendering: pixelated; }
.up-qr .btn { gap: 6px; }
.up-done-foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }

@media (max-width: 640px) {
  #share { margin-top: 22px; }
  .up { padding: 16px; border-radius: 12px; }
  .up-drop { padding: 26px 14px 24px; }
  .up-form { flex-direction: column; }
  .up-form .btn { width: 100%; }
  .up-form input { flex: none; width: 100%; }
  .up-code { max-width: none; }
  .up-done-grid { grid-template-columns: minmax(0, 1fr); }
  .up-qr { flex-direction: row; justify-content: flex-start; }
  .up-qr img { width: 112px; height: 112px; }
}

/* ---- stats page ---- */
.st-top { border-bottom: 1px solid var(--line); background: #fff; }
.st-main { padding: 34px 0 72px; background: var(--gray); min-height: calc(100vh - 140px); }
.st-wrap { max-width: 960px; }
.st-head { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-start; justify-content: space-between; }
.st-title { min-width: 0; }
.st-title h1 { font-size: 28px; line-height: 1.25; margin: 6px 0 0; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.st-status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 5px 12px; }
.st-status svg { width: 16px; height: 16px; }
.st-status.is-seen { background: var(--green-50); color: var(--green); }
.st-status.is-unseen { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.st-linkrow { display: flex; gap: 8px; width: 100%; max-width: 520px; }
.st-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.st-card h2 { font-size: 16px; margin: 0 0 14px; letter-spacing: -0.005em; display: flex; align-items: center; gap: 6px; }
.st-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.st-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.st-tile span { display: block; font-size: 13px; color: var(--muted); }
.st-tile b { display: block; font-size: 26px; letter-spacing: -0.02em; margin-top: 4px; color: var(--navy); font-variant-numeric: tabular-nums; }
.st-tile small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.st-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-top: 12px; }
.st-chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.st-chart i { flex: 1; background: var(--blue); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .9; }
.st-chart i.is-zero { background: var(--line); }
.st-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.st-list li:last-child { border-bottom: 0; }
.st-list b { font-variant-numeric: tabular-nums; }
.st-empty { color: var(--muted); font-size: 14.5px; margin: 0; }
.st-lock { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.st-lock .ico { color: var(--muted); flex: none; margin-top: 2px; }
.st-pages { display: flex; flex-direction: column; gap: 8px; }
.st-page { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; align-items: center; font-size: 14px; }
.st-page .bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.st-page .bar i { display: block; height: 100%; background: var(--blue); }
.st-page b { text-align: right; font-variant-numeric: tabular-nums; }
.st-set { display: grid; gap: 14px; }
.st-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.st-row:last-child { border-bottom: 0; padding-bottom: 0; }
.st-row > div:first-child { min-width: 0; flex: 1 1 240px; }
.st-row b { display: block; font-size: 15px; }
.st-row small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.st-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-ctl input[type=password], .st-ctl select { height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 15px; background: #fff; color: var(--navy); min-width: 0; }
.st-ctl input[type=password] { width: 190px; }
.st-switch { position: relative; width: 46px; height: 26px; flex: none; }
.st-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.st-switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .15s; pointer-events: none; }
.st-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15,27,51,.25); transition: transform .15s; }
.st-switch input:checked + span { background: var(--blue); }
.st-switch input:checked + span::after { transform: translateX(20px); }
.st-switch input:focus-visible + span { outline: 3px solid var(--blue-200); outline-offset: 2px; }
.st-msg { font-size: 13.5px; color: var(--green); min-height: 1.2em; margin: 0; }
.st-msg.is-err { color: #A12222; }
.btn-danger { background: #fff; color: #A12222; border-color: #E9B8B8; }
.btn-danger:hover { background: #FDF0F0; color: #A12222; }
.st-modal { position: fixed; inset: 0; background: rgba(15,27,51,.45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.st-modal[hidden] { display: none; }
.st-modal-card { background: #fff; border-radius: 14px; padding: 24px; max-width: 420px; width: 100%; box-shadow: var(--shadow); }
.st-modal-card h2 { margin: 0 0 8px; font-size: 19px; }
.st-modal-card p { margin: 0 0 18px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.st-modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.st-center { max-width: 520px; margin: 40px auto; text-align: center; }
.st-center p { color: var(--text-2); line-height: 1.6; }
.st-section { margin-top: 12px; }
@media (max-width: 760px) {
  .st-tiles { grid-template-columns: repeat(2, 1fr); }
  .st-grid { grid-template-columns: 1fr; }
  .st-title h1 { font-size: 23px; }
  .st-linkrow { max-width: none; }
  .st-ctl { width: 100%; }
  .st-ctl input[type=password] { flex: 1; width: auto; }
}

/* ---- QR-first finished card (pdf-to-qr-code) ---- */
.up[data-mode="qr"] .up-done-grid { grid-template-columns: auto minmax(0, 1fr); }
.up[data-mode="qr"] .up-qr { order: -1; }
.up[data-mode="qr"] .up-qr img { width: 196px; height: 196px; }
.up[data-mode="qr"] #upQrSave { background: var(--blue); color: #fff; border-color: var(--blue); }
.up[data-mode="qr"] #upQrSave:hover { background: var(--blue-700); }
@media (max-width: 640px) {
  .up[data-mode="qr"] .up-done-grid { grid-template-columns: minmax(0, 1fr); }
  .up[data-mode="qr"] .up-qr { flex-direction: column; align-items: center; }
  .up[data-mode="qr"] .up-qr img { width: 220px; height: 220px; }
  .up[data-mode="qr"] #upQrSave { width: 100%; max-width: 260px; }
}

/* ---- tool pages ---- */
.tool-hero { padding: 72px 0 0; }
.tool-hero .hero-copy { text-align: center; max-width: 820px; }
.tool-hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.035em; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 14px; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-2); font-size: 16.5px; line-height: 1.65; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose a { color: var(--blue); text-underline-offset: 3px; }
/* Links inside running text are underlined, so they do not rely on colour alone. */
.prose :is(p, li, td, dd) a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; }
.ctl-table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 15.5px; }
.ctl-table th, .ctl-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctl-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.ctl-table td:first-child { font-weight: 600; color: var(--navy); width: 34%; }
.ctl-table .yes { color: var(--green-text); font-weight: 600; white-space: nowrap; }
.ctl-table .pro { color: var(--blue); font-weight: 600; white-space: nowrap; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related a { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--navy); text-decoration: none; }
.related a:hover { border-color: var(--blue); }
.related b { display: block; font-size: 16.5px; }
.related span { display: block; color: var(--text-2); font-size: 14.5px; margin-top: 6px; line-height: 1.5; }
.soon-card { max-width: 760px; margin: 30px auto 0; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); text-align: left; }
.soon-card h2 { font-size: 22px; margin: 0 0 10px; }
.soon-card p { color: var(--text-2); margin: 0 0 12px; line-height: 1.6; }
.soon-card .btn { margin-top: 6px; }
.foot-group { display: flex; flex-direction: column; gap: 10px; }
.foot-group b { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.foot-cols { display: flex; gap: 48px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .tool-hero { padding-top: 44px; }
  .tool-hero h1 { font-size: 36px; }
  .prose h2 { font-size: 25px; }
  .related { grid-template-columns: minmax(0, 1fr); }
  .ctl-table td:first-child { width: 40%; }
  .foot-cols { gap: 28px; }
}
.related-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .related-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .related-4 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ctl-table thead { display: none; }
  .ctl-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ctl-table td { border: 0; padding: 0; }
  .ctl-table td:first-child { width: auto; }
  .ctl-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; }
}

/* ---- footer (multi-column, light) ---- */
.foot2 { background: var(--gray); border-top: 1px solid var(--line); padding: 56px 0 0; margin-top: 0; }
.foot2-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot2-brand p { color: var(--text-2); font-size: 15px; margin: 14px 0 0; max-width: 280px; line-height: 1.55; }
.foot2-h { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 0 14px; }
.foot2-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot2-col a { color: var(--text-2); font-size: 15px; text-decoration: none; overflow-wrap: anywhere; }
.foot2-col a:hover { color: var(--blue); }
.foot2-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.foot2-base { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot2-base .foot2-small { display: flex; gap: 20px; flex-wrap: wrap; }
.foot2-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; font-size: 13.5px; color: var(--muted); }
.foot2-social span { font-weight: 600; color: var(--text-2); margin-right: 6px; }
.foot2-social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); text-decoration: none; transition: color .15s, border-color .15s; }
.foot2-social a svg { width: 17px; height: 17px; fill: currentColor; }
.foot2-social a:hover { color: var(--blue); border-color: var(--blue-200); }
.foot2-social + .foot2-base { margin-top: 20px; }
.foot2-base a { color: var(--muted); text-decoration: none; }
.foot2-base a:hover { color: var(--navy); }
@media (max-width: 900px) {
  .foot2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .foot2-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .foot2 { padding-top: 44px; }
  .foot2-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot2-base { flex-direction: column; align-items: flex-start; }
}

.legal-hero { padding-bottom: 8px; }
.legal-hero + .sec { margin-top: 0; padding-top: 40px; }

/* ---- header auth ---- */
.auth { display: flex; align-items: center; gap: 14px; margin-left: 28px; margin-right: 14px; }
.auth [hidden] { display: none !important; }
.auth-login, .auth-dash { color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.auth-login:hover, .auth-dash:hover { color: var(--navy); }
.acct { position: relative; }
.acct-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--blue-50); color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.acct-btn:focus-visible { outline: 3px solid var(--blue-200); outline-offset: 2px; }
.acct-menu { position: absolute; right: 0; top: 44px; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; z-index: 60; display: flex; flex-direction: column; }
.acct-menu .acct-email { font-size: 13px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-wrap: anywhere; }
.acct-menu a, .acct-menu button { text-align: left; padding: 9px 10px; border-radius: 6px; font: inherit; font-size: 14.5px; color: var(--navy); background: none; border: 0; cursor: pointer; text-decoration: none; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--gray); }
@media (max-width: 1020px) { .auth { margin-left: auto; } }
@media (max-width: 480px) {
  .auth { gap: 10px; margin-right: 10px; }
  .auth-dash { display: none !important; }
  .auth-login { font-size: 14.5px; }
  .top-in .btn-sm { padding: 0 12px; font-size: 13.5px; }
}

/* ---- link settings on the ready card ---- */
.rs { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rs-toggle { width: 100%; display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--navy); cursor: pointer; text-align: left; }
.rs-toggle .ico { color: var(--muted); }
.rs-toggle .rs-chev { margin-left: auto; transition: transform .2s; }
.rs-toggle[aria-expanded="true"] .rs-chev { transform: rotate(180deg); }
.rs-toggle:focus-visible { outline: 3px solid var(--blue-200); outline-offset: -2px; border-radius: 10px; }
.rs-panel { padding: 4px 14px 12px; border-top: 1px solid var(--line); }
.rs-panel[hidden] { display: none; }
.rs-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rs-row:last-of-type { border-bottom: 0; }
.rs-lab { min-width: 0; flex: 1 1 200px; }
.rs-lab b { display: block; font-size: 14.5px; color: var(--navy); }
.rs-lab small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.rs-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.rs-ctl input[type=password], .rs-ctl select { height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 14.5px; background: #fff; color: var(--navy); min-width: 0; }
.rs-ctl input[type=password] { width: 170px; }
.rs-ctl [hidden] { display: none !important; }
.rs-msg { margin: 8px 0 0; font-size: 13px; color: var(--green); min-height: 1.1em; }
.rs-msg.is-err { color: #A12222; }
@media (max-width: 640px) {
  .rs-ctl { width: 100%; }
  .rs-ctl input[type=password] { flex: 1; width: auto; }
}

/* ---- app pages: sign in, dashboard, account ---- */
.app-main { background: var(--gray); min-height: calc(100vh - 64px); padding: 40px 0 72px; }
.auth-card { max-width: 480px; margin: 24px auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 30px; }
.auth-card h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 8px; }
.auth-sub { color: var(--text-2); font-size: 15.5px; line-height: 1.55; margin: 0 0 6px; overflow-wrap: anywhere; }
.auth-fine { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 16px 0 0; }
.auth-fine a { color: var(--blue); }
.db-wrap { max-width: 1080px; }
.db-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.db-top h1 { font-size: 30px; letter-spacing: -0.02em; margin: 0; }
.db-plan { color: var(--text-2); font-size: 14.5px; margin: 6px 0 0; }
.db-top .btn { gap: 8px; }
.db-upload { margin-bottom: 18px; }
.db-upload .up { box-shadow: none; }
.db-upload.is-limit #dbUpload { display: none; }
.db-limit { background: #FFF8E6; border: 1px solid #F2DDA4; color: #6B4E00; border-radius: 10px; padding: 14px 16px; font-size: 14.5px; line-height: 1.5; }
.db-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
/* ONE column definition for the header and every row. Each row is its own grid, so no track may
   size from its content: the old `auto` action track was 0 wide in the empty header cell and
   224px in the rows, which pushed every header label right of its values. */
.db-list, .fs-card { --db-acts-w: 262px; }
.db-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(64px, 0.85fr) minmax(56px, 0.55fr) minmax(0, 0.9fr) minmax(0, 1.9fr) var(--db-acts-w); gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.db-row:last-child { border-bottom: 0; }
.db-head { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--gray); padding-top: 10px; padding-bottom: 10px; }
.db-file { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.db-name { color: var(--navy); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-name:hover { color: var(--blue); }
.db-url { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-cell i { display: none; font-style: normal; }
.db-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.db-muted { color: var(--muted); }
.db-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--gray); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.chip .ico { width: 13px; height: 13px; }
.chip-seen { color: var(--green); background: var(--green-50); border-color: transparent; }
.chip-email { color: var(--navy); background: #EEF2FC; border-color: transparent; cursor: help; }
.st-email { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: baseline; }
.st-email .xp-h { font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.st-email b { font-size: 18px; color: var(--navy); }
.st-email small { font-size: 12.5px; color: var(--muted); }
.st-email small[data-xp] { grid-column: 1 / -1; }
.chip-warn { color: #8A5A00; background: #FFF4D6; border-color: transparent; }
.db-acts { display: flex; gap: 4px; width: var(--db-acts-w); justify-content: flex-end; }
.db-head > span { min-width: 0; overflow-wrap: normal; }
.db-act { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--text-2); cursor: pointer; }
.db-act:hover { background: var(--gray); border-color: var(--line); color: var(--navy); }
.db-act:focus-visible { outline: 3px solid var(--blue-200); outline-offset: 1px; }
.db-act-del:hover { color: #A12222; }
.db-empty { text-align: center; padding: 48px 20px; }
.db-empty-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: inline-grid; place-items: center; }
.db-empty h2 { font-size: 20px; margin: 14px 0 6px; }
.db-empty p { color: var(--text-2); margin: 0; }
.db-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: 14.5px; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); z-index: 80; max-width: calc(100vw - 32px); }
.db-toast.is-err { background: #A12222; }
.db-toast[hidden] { display: none; }
.db-qr-card { text-align: center; }
.db-qr-card img { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; image-rendering: pixelated; margin: 4px auto 16px; display: block; }
.db-qr-card p { overflow-wrap: anywhere; }
.btn-del { background: #A12222 !important; border-color: #A12222 !important; }
.ac-input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 15.5px; margin-bottom: 12px; }
.db-back { margin: 0 0 14px; font-size: 14.5px; }
.db-back a { color: var(--blue); text-decoration: none; }
.st-modal-card .up-err { margin: 0 0 12px; }
@media (max-width: 900px) {
  .db-head { display: none; }
  .db-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 16px; }
  .db-file { grid-column: 1 / -1; }
  .db-cell i { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
  .db-chips { grid-column: 1 / -1; }
  .db-acts { grid-column: 1 / -1; width: auto; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
}
@media (max-width: 480px) {
  .app-main { padding-top: 24px; }
  .auth-card { padding: 22px 18px; margin-top: 8px; }
  .db-top .btn { width: 100%; }
  .db-top h1 { font-size: 26px; }
}

/* ---- hero with the example report card ---- */
.hero2 { padding: 64px 0 8px; }
.hero2-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center; }
.hero2 .hero-copy { text-align: left; max-width: none; padding: 0; margin: 0; }
.hero2 h1 { font-size: 54px; }
.hero2 .lead { margin-left: 0; margin-right: 0; max-width: 560px; }
.hero2 #share { padding: 0; margin: 26px 0 0; max-width: none; }
.rc { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,27,51,.04), 0 24px 48px -24px rgba(15,27,51,.22); padding: 22px 22px 18px; text-align: left; }
.rc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rc-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.rc-title { display: flex; flex-direction: column; min-width: 0; }
.rc-title b { font-size: 15.5px; color: var(--navy); }
.rc-title small { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-tag { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.rc-body { position: relative; padding-top: 14px; }
.rc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rc-lines li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 2px; font-size: 15px; color: var(--text-2); line-height: 1.45; }
.rc-lines b { color: var(--navy); font-weight: 600; }
.rc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 7px; flex: none; }
.rc-seen { color: var(--green-text) !important; }
.rc-seen .ico { color: var(--green); margin-top: 1px; stroke-width: 2.2; }
.rc-seen b { color: var(--green-text) !important; }
.rc-pro { font-style: normal; font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-50); border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
/* a flex item that may shrink, so a long line wraps inside the card instead of running past its edge */
.rc-txt { display: block; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.rc-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.rc-prep { position: absolute; left: 0; right: 0; top: 14px; display: none; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); padding: 9px 2px; }
.rc-prep::after { content: ""; display: block; position: absolute; left: 2px; right: 30%; top: 46px; height: 10px; border-radius: 6px;
  background: linear-gradient(90deg, var(--gray) 0%, #E9EDF4 50%, var(--gray) 100%); background-size: 200% 100%; animation: rc-shimmer 1.2s linear infinite;
  box-shadow: 0 26px 0 var(--gray), 0 52px 0 var(--gray); }
.rc-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--blue); animation: rc-spin .8s linear infinite; }
/* JS-driven states. Without JS (or with reduced motion) none of these apply: all lines show. */
.rc-js .rc-lines li { opacity: 0; }
.rc-js .rc-lines li.on { opacity: 1; transition: opacity .2s ease; }
.rc-js .rc-lines li.on .rc-txt { animation: rc-type .45s ease-out both; }
.rc-js .rc-lines li.on .rc-dot, .rc-js .rc-lines li.on > .ico { animation: rc-pop .3s ease both; }
.rc-js.is-prep .rc-prep { display: flex; }
.rc-js.is-fade .rc-lines { opacity: 0; transition: opacity .6s ease; }
/* fade and slide in: no clipping, so a wrapped line is never shown cut mid-word at any moment */
@keyframes rc-type { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes rc-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rc-spin { to { transform: rotate(360deg); } }
@keyframes rc-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .rc-js .rc-lines li { opacity: 1; }
  .rc-js .rc-lines li .rc-txt, .rc-js .rc-lines li .rc-dot { animation: none !important; }
  .rc-js.is-prep .rc-prep { display: none; }
}
.why { padding: 56px 0 8px; }
.hero + .why { margin-top: 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.why-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.why-card h2 { font-size: 18px; letter-spacing: -0.01em; margin: 16px 0 6px; }
.why-card p { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0; }
.why + .sec { margin-top: 0; }
@media (max-width: 1020px) {
  .hero2-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero2 .hero-copy { text-align: center; }
  .hero2 .lead { margin-left: auto; margin-right: auto; }
  .hero2 #share { max-width: 760px; margin-left: auto; margin-right: auto; }
  .rc { max-width: 560px; margin: 0 auto; width: 100%; }
  .why-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; gap: 14px; }
}
@media (max-width: 760px) {
  .hero2 { padding-top: 40px; }
  .hero2 h1 { font-size: 38px; }
  .rc { padding: 18px 16px 14px; }
  .rc-lines li { font-size: 14.5px; }
  .why { padding-top: 44px; }
}

/* ---- dashboard shell: sidebar at desktop, bottom tab bar on a phone ---- */
.app-shell { background: var(--gray); }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sb { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; background: #fff; border-right: 1px solid var(--line); }
.sb-brand { padding: 4px 8px 10px; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.sb-item .ico { width: 19px; height: 19px; }
.sb-item:hover { background: var(--gray); color: var(--navy); }
.sb-item[aria-current="page"] { background: var(--blue-50); color: var(--blue); }
.sb-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.sb-upgrade { display: block; padding: 14px; border-radius: 10px; background: var(--blue-50); border: 1px solid var(--blue-200); color: var(--navy); text-decoration: none; }
.sb-upgrade b { display: block; color: var(--blue); font-size: 14.5px; }
.sb-upgrade small { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 3px; line-height: 1.4; }
.sb-upgrade:hover { border-color: var(--blue); }
.sb-upgrade[hidden], [data-free-only][hidden] { display: none !important; }
.sb-acct { position: relative; }
.sb-acct-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: var(--navy); text-align: left; }
.sb-acct-btn:hover { border-color: var(--line-2); }
.sb-ini { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 14px; display: grid; place-items: center; flex: none; }
.sb-email { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-menu { position: absolute; left: 0; right: 0; bottom: 52px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; z-index: 40; }
.sb-menu[hidden] { display: none; }
.sb-menu a, .sb-menu button { padding: 9px 10px; border-radius: 6px; font: inherit; font-size: 14.5px; color: var(--navy); background: none; border: 0; text-align: left; cursor: pointer; text-decoration: none; }
.sb-menu a:hover, .sb-menu button:hover { background: var(--gray); }
.sh-top { display: none; }
.sh-main { min-width: 0; padding: 32px 36px 72px; }
.sh-main .db-wrap { max-width: 1080px; margin: 0 auto; }
.sh-main .st-wrap { max-width: 960px; margin: 0 auto; }
.tabbar { display: none; }
#dbPage:not([data-cur="links"]) [data-sec="links"]:not(section) { display: none !important; }
.db-plan a { color: var(--blue); }
.chip-for { color: var(--navy); background: #fff; border-color: var(--line-2); }
.del-kids { background: #FFF4D6; border-radius: 8px; padding: 10px 12px; color: #6B4E00 !important; font-size: 14.5px; }
.fs-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.fs-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fs-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.fs-title { flex: 1 1 260px; min-width: 0; }
.fs-title b { display: block; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-title small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.fs-head-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.fs-head-acts .btn { gap: 6px; }
.fs-link { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.6fr) minmax(0, 0.9fr) minmax(0, 1fr) var(--db-acts-w); gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.fs-link:last-child { border-bottom: 0; }
.fs-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fs-who b { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-up { background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: 10px; padding: 14px; margin: 0 0 12px; }
.nl-up p { margin: 0 0 10px; color: var(--navy); font-size: 14.5px; }
.nl-up[hidden] { display: none; }
.sh-link .db-back { margin-bottom: 14px; }
@media (max-width: 900px) {
  .fs-link { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
  .fs-who, .fs-link .db-chips, .fs-link .db-acts { grid-column: 1 / -1; }
  .fs-link .db-cell i { display: block; font-size: 12px; color: var(--muted); font-weight: 500; font-style: normal; }
  .fs-link .db-acts { width: auto; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sb { display: none; }
  .sh-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .sh-top-up { font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; padding: 6px 12px; border: 1px solid var(--blue-200); border-radius: 999px; background: var(--blue-50); }
  .sh-main { padding: 20px 16px 96px; }
  .tabbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tb-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; border-radius: 8px; }
  .tb-item .ico { width: 21px; height: 21px; }
  .tb-item[aria-current="page"] { color: var(--blue); }
  .fs-head-acts { width: 100%; }
  .fs-head-acts .btn { flex: 1; }
}
@media (max-width: 760px) {
  .shell { grid-template-rows: auto 1fr; align-content: start; }
  .app-shell .db-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.plan-price { margin: 10px 0 0; color: var(--text-2); font-size: 15px; }
.plan-price b { font-size: 34px; color: var(--navy); letter-spacing: -0.02em; margin-right: 4px; }
.plan-price span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ---- per-link settings groups ---- */
.ls-plan { margin: -6px 0 14px; color: var(--text-2); font-size: 14.5px; }
.ls-plan a { color: var(--blue); }
.ls-group { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.ls-group h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
.ls-sub { padding-left: 14px; border-left: 2px solid var(--blue-50); }
.ls-sub[hidden] { display: none; }
.ls-cta { flex-wrap: wrap; }
.ls-cta select, .ls-cta input[type=text] { height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 14.5px; min-width: 0; }
.ls-cta input[type=text] { width: 170px; }
.ls-file { font: inherit; font-size: 13.5px; max-width: 220px; }
.ls-up { background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: 10px; padding: 14px; margin: 0 0 12px; display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; }
.ls-up[hidden] { display: none; }
.ls-up p { margin: 0; flex: 1 1 260px; font-size: 14.5px; color: var(--navy); }
.st-lock a { color: var(--blue); }
@media (max-width: 760px) { .ls-cta input[type=text] { flex: 1 1 140px; width: auto; } .ls-file { max-width: 100%; } }

/* ---- checkout ---- */
.co-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; max-width: 980px; margin: 16px auto; align-items: start; }
.co-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 28px; }
.co-card h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 6px; }
.co-plans { border: 0; padding: 0; margin: 18px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-plan { position: relative; display: block; cursor: pointer; }
.co-plan input { position: absolute; opacity: 0; }
.co-plan span { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; }
.co-plan b { font-size: 15.5px; color: var(--navy); }
.co-plan em { font-style: normal; color: var(--text-2); font-size: 14.5px; }
.co-plan i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--green); }
.co-plan input:checked + span { border-color: var(--blue); background: var(--blue-50); }
.co-plan input:focus-visible + span { outline: 3px solid var(--blue-200); outline-offset: 2px; }
.co-l { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin: 14px 0 6px; }
.co-in { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 15.5px; background: #fff; color: var(--navy); }
.co-in:focus { outline: 3px solid var(--blue-200); border-color: var(--blue); }
.co-in[readonly] { background: var(--gray); color: var(--text-2); }
.co-me { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.co-go { width: 100%; height: 48px; margin-top: 18px; }
.co-side { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.co-side h2 { font-size: 18px; margin: 0 0 12px; }
.co-thanks { text-align: left; }
.co-thanks .up-ok { margin-bottom: 12px; }
.co-thanks .ticks { margin: 14px 0 20px; }
@media (max-width: 860px) { .co-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .co-card { padding: 20px 16px; } .co-plans { grid-template-columns: 1fr; } }
.up-pro { color: var(--blue); font-weight: 600; }

/* ---- in-browser tools (/password-protect-pdf/, /password-protect-zip/, /watermark-pdf/) ---- */
.tl-wrap { max-width: 640px; margin: 32px auto 0; padding: 0 16px 8px; }
.tl { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; text-align: left; }
.tl-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border: 1.5px dashed var(--line-2); border-radius: 10px; background: var(--gray); cursor: pointer; text-align: center; color: var(--navy); }
.tl-drop:hover, .tl-drop.is-over { border-color: var(--blue); background: var(--blue-50); }
.tl-drop .ico { width: 28px; height: 28px; color: var(--blue); }
.tl-drop b { font-size: 16.5px; }
.tl-drop span { color: var(--text-2); font-size: 14px; }
.tl-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tl-files { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.tl-files li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--navy); padding: 8px 10px; background: var(--gray); border-radius: 6px; min-width: 0; }
.tl-files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tl-files li em { font-style: normal; color: var(--muted); flex: none; }
.tl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-top: 16px; }
.tl-grid .tl-full { grid-column: 1 / -1; }
.tl-f { display: grid; gap: 6px; min-width: 0; }
.tl-f > span { font-size: 14px; font-weight: 600; color: var(--navy); }
.tl-f input[type=text], .tl-f input[type=password], .tl-f select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 15px; color: var(--navy); background: #fff; }
.tl-f input[type=range] { width: 100%; accent-color: var(--blue); }
.tl-f input[type=color] { width: 100%; height: 42px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.tl-f small { color: var(--muted); font-size: 13px; }
.tl-pw { position: relative; }
.tl-pw button { position: absolute; right: 6px; top: 6px; height: 30px; padding: 0 10px; border: 0; background: none; color: var(--blue); font: inherit; font-size: 13.5px; cursor: pointer; }
.tl-radio { display: grid; gap: 8px; }
.tl-radio label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 14.5px; color: var(--text-2); }
.tl-radio label b { color: var(--navy); display: block; }
.tl-radio input { margin-top: 3px; accent-color: var(--blue); }
.tl-go { width: 100%; margin-top: 18px; }
.tl-msg { min-height: 20px; margin: 12px 0 0; font-size: 14.5px; color: var(--text-2); }
.tl-msg.is-err { color: #B42318; }
.tl-done { margin-top: 14px; padding: 16px; border-radius: 10px; background: #ECFDF3; border: 1px solid #ABEFC6; }
.tl-done p { margin: 0 0 12px; color: var(--navy); font-size: 15px; }
.tl-done .btn { margin-right: 8px; }
.tl-fine { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.tl-fine .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted); }
.tl-cta { margin-top: 14px; font-size: 14.5px; color: var(--text-2); }
.tl-cta a { color: var(--blue); }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-hidden] { margin: 0 6px; }
.guide-meta { color: var(--muted); font-size: 14px; }
.toc { border: 1px solid var(--line, #E4E8EF); border-radius: 12px; padding: 14px 18px; margin: 18px 0 28px; background: var(--bg-soft, #F5F7FA); }
.toc p { margin: 0 0 6px; font-weight: 700; font-size: 14px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 15px; }
.toc li { margin: 3px 0; break-inside: avoid; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.prose h2[id] { scroll-margin-top: 84px; }
.prose .ex { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: #fff; margin: 0 0 16px; }
.prose .ex p { margin: 0 0 10px; }
.prose .ex .ex-sub { font-weight: 600; color: var(--navy); }
.prose .why { font-size: 15px; background: var(--gray); border-radius: 8px; padding: 10px 14px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.prose th { color: var(--navy); }
.prose ol { padding-left: 22px; margin: 0 0 14px; }
.guide-list { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .guide-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .tl-grid { grid-template-columns: minmax(0, 1fr); } .tl { padding: 16px; } .tl-wrap { margin-top: 24px; } }
.foot2-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 32px 24px; }
.foot2-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot2-brand p { margin: 0; max-width: none; }
@media (max-width: 1020px) { .foot2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } .foot2-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .foot2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }

/* ---- tooltips for icon-only controls: [data-tip]. Shown on mouse hover and on keyboard focus,
   never on touch (a tap must not leave a label stuck on screen). The aria-label stays the
   accessible name; the tip is decoration. ---- */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translate(-50%, 2px);
  background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.2; letter-spacing: 0; white-space: nowrap;
  padding: 6px 9px; border-radius: 6px; box-shadow: 0 6px 16px -6px rgba(15,27,51,.35); pointer-events: none; z-index: 40;
  opacity: 0; visibility: hidden; transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s; }
[data-tip]:last-child::after { left: auto; right: 0; transform: translate(0, 2px); }
@media (hover: hover) {
  [data-tip]:hover::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: .15s, .15s, 0s; }
  [data-tip]:last-child:hover::after { transform: translate(0, 0); }
}
[data-tip]:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
[data-tip]:last-child:focus-visible::after { transform: translate(0, 0); }

/* the dashboard's settings link lands below the sticky phone top bar */
#settings { scroll-margin-top: 76px; }
/* narrower screens with the sidebar: smaller icons and gaps, so the status chips keep room */
@media (max-width: 1199px) and (min-width: 901px) {
  .db-list, .fs-card { --db-acts-w: 222px; }
  .db-row, .fs-link { column-gap: 10px; padding-left: 14px; padding-right: 14px; }
  .db-acts { gap: 2px; }
  .db-act { width: 30px; height: 30px; }
  .db-row .chip, .fs-link .chip { white-space: normal; }
  .db-head { font-size: 11.5px; letter-spacing: .03em; }
}

/* ---- per-link settings drawer on the dashboard (right side; full-screen sheet on a phone) ---- */
/* lock the ROOT only. If BODY clips overflow while the root does too, body becomes its own
   scroll container and the sticky sidebar snaps to the page top, scrolled out of view */
.dw-lock { overflow: hidden; }
.dw-lock body { overflow: visible; }  /* body has overflow-x: hidden; with the root locked it would stop propagating */
.dw-back { position: fixed; inset: 0; background: rgba(15, 27, 51, .45); z-index: 70; }
.dw { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); background: var(--gray); z-index: 71;
  display: flex; flex-direction: column; box-shadow: -18px 0 48px -24px rgba(15, 27, 51, .45); animation: dw-in .18s ease-out; }
.dw[hidden], .dw-back[hidden] { display: none !important; }
.dw-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.dw-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dw-title b { font-size: 16px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-title span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-x { flex: none; }
.dw-x[data-tip]::after { top: calc(100% + 7px); bottom: auto; }
.dw-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.dw-body .st-section { margin-top: 0; }
.dw-body #hSet { display: none; }
.dw-load { color: var(--muted); font-size: 14.5px; margin: 8px 4px; }
@keyframes dw-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) {
  .dw { width: 100vw; animation-name: dw-up; box-shadow: none; }
  .dw-head { padding: 12px 12px 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); }
  .dw-body { padding: 12px 12px calc(24px + env(safe-area-inset-bottom)); }
  .dw-body .st-card { padding: 16px; }
  .dw-body .st-ctl { width: 100%; }
  .dw-body .st-ctl input[type=password] { flex: 1; width: auto; }
  .dw-body .ls-cta input[type=text] { flex: 1 1 140px; width: auto; }
}
@keyframes dw-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dw { animation: none; } }

/* ---- dashboard Overview ---- */
.ov-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ov-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.ov-tile span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.ov-tile b { display: block; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.ov-tile small { display: block; font-size: 13px; color: var(--muted); }
.ov-chart-card { margin-bottom: 12px; }
.ov-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ov-card-h h2 { margin: 0; }
.ov-range { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.ov-range button { border: 0; background: #fff; font: inherit; font-size: 13px; padding: 6px 12px; color: var(--text-2); cursor: pointer; }
.ov-range button + button { border-left: 1px solid var(--line-2); }
.ov-range button[aria-pressed="true"] { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.ov-cap { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ov-grid .st-card { min-width: 0; }
.ov-feed, .ov-top { list-style: none; margin: 0; padding: 0; }
.ov-feed li, .ov-top li { border-bottom: 1px solid var(--line); }
.ov-feed li:last-child, .ov-top li:last-child { border-bottom: 0; }
.ov-feed a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; text-decoration: none; color: var(--text-2); font-size: 14.5px; }
.ov-feed a:hover b { color: var(--blue); }
.ov-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 7px; flex: none; }
.ov-what { min-width: 0; overflow-wrap: anywhere; }
.ov-what b { color: var(--navy); font-weight: 600; }
.ov-what small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.ov-for { font-weight: 500; color: var(--muted); }
.ov-top li { padding: 8px 0; }
.ov-top a { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--navy); font-size: 14.5px; }
.ov-top a:hover .ov-tn { color: var(--blue); }
.ov-tn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ov-top b { font-variant-numeric: tabular-nums; }
.ov-top .bar { display: block; height: 6px; background: var(--gray); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.ov-top .bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.ov-pro p { margin: 0 0 14px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.ov-empty { text-align: center; padding: 40px 20px; }
.ov-empty h2 { justify-content: center; font-size: 20px; margin: 14px 0 6px; }
.ov-empty p { color: var(--text-2); max-width: 460px; margin: 0 auto 18px; }
#dbPage:not([data-cur="overview"]) [data-sec="overview"]:not(section) { display: none !important; }
@media (max-width: 1100px) { .ov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .ov-tile { padding: 14px; }
  .ov-tile b { font-size: 26px; }
  .tb-item span { font-size: 11px; }
}

/* ---- per-link settings as an accordion (stats page and dashboard drawer share it) ---- */
.acc-list { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.acc + .acc { border-top: 1px solid var(--line); }
.acc-h { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 11px 14px; border: 0; background: none;
  font: inherit; text-align: left; color: var(--navy); cursor: pointer; }
.acc-h:hover { background: var(--gray); }
.acc-h:focus-visible { outline: 3px solid var(--blue-200); outline-offset: -3px; }
.acc-i { color: var(--text-2); flex: none; }
.acc-n { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 15px; }
.acc-n .tag-pro { vertical-align: 1px; }
.acc-s { flex: 0 1 auto; max-width: 48%; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-s.is-on { color: var(--green); font-weight: 600; }
.acc-c { color: var(--muted); flex: none; transition: transform .18s ease; }
.acc.is-open .acc-c { transform: rotate(180deg); }
.acc.is-open > .acc-h { background: var(--gray); }
.acc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .18s ease; }
.acc.is-open > .acc-b { grid-template-rows: 1fr; }
.acc-in { min-height: 0; overflow: hidden; padding: 0 14px; visibility: hidden; transition: visibility 0s linear .18s; }
.acc.is-open .acc-in { visibility: visible; transition-delay: 0s; }
.acc-in::before, .acc-in::after { content: ""; display: block; height: 12px; }
.acc-d { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.acc-in .st-row { border: 0; padding: 6px 0; }
.acc-in .ls-sub { margin-top: 4px; }
.acc-in .ls-up { margin: 0 0 4px; }
.acc-in .st-msg { margin-top: 8px; }
.acc-in .st-msg:empty { display: none; }
.acc.is-locked .acc-ctl { display: none; }
#settings .ls-group h3 { font-size: 11.5px; margin-bottom: 8px; }
#settings .ls-group { border-top: 0; margin-top: 14px; padding-top: 0; }
@media (prefers-reduced-motion: reduce) { .acc-b, .acc-c, .acc-in { transition: none !important; } }
@media (max-width: 600px) { .acc-h { padding: 11px 12px; } .acc-s { max-width: 40%; } .acc-in { padding: 0 12px; } }

.acc { scroll-margin-top: 84px; scroll-margin-bottom: 16px; }

/* ---- link name editor ---- */
.ln-form { flex-wrap: nowrap; width: 100%; }
.ln-field { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; overflow: hidden; }
.ln-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.ln-field input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; padding: 0 4px 0 12px; font: inherit; font-size: 15px; color: var(--navy); background: none; outline: none; }
.ln-suf { flex: none; padding: 0 12px 0 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.ln-hint { margin: 6px 0 0; min-height: 1.2em; font-size: 13px; color: var(--muted); }
.ln-hint:empty { display: none; }
.ln-hint.is-ok { color: var(--green); }
.ln-hint.is-bad { color: #A12222; }
.rs-row-name { flex-wrap: wrap; }
.rs-row-name .rs-ctl { flex: 1 1 100%; }
@media (max-width: 420px) { .ln-suf { font-size: 12.5px; padding-right: 8px; } }

/* ---- email page customisation and logos ---- */
.gp-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 10px; align-items: start; }
.gp-form { display: grid; gap: 10px; min-width: 0; }
.gp-title { font-size: 14px; color: var(--navy); }
.gp-f { display: grid; gap: 5px; min-width: 0; }
.gp-f > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.gp-f input[type=text], .gp-f textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 14.5px; color: var(--navy); background: #fff; resize: vertical; }
.gp-sws { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gp-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.gp-sw:focus-visible { outline: 3px solid var(--blue-200); outline-offset: 1px; }
.gp-sws input { width: 104px; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 13.5px; }
.gp-note { font-size: 12.5px; color: var(--muted); min-height: 1em; }
.gp-chk { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-2); }
.gp-form .btn { justify-self: start; }
.gp-prev { background: var(--gray); border: 1px solid var(--line); border-radius: 12px; padding: 14px; position: sticky; top: 8px; }
.gp-card { background: #fff; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.gp-logo { max-height: 32px; max-width: 140px; object-fit: contain; align-self: flex-start; }
.gp-h { font-size: 17px; color: var(--navy); line-height: 1.2; overflow-wrap: anywhere; }
.gp-m { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.45; overflow-wrap: anywhere; }
.gp-in { display: block; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; color: var(--muted); }
.gp-cs { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; color: var(--text-2); line-height: 1.4; overflow-wrap: anywhere; }
.gp-box { width: 13px; height: 13px; border: 1.5px solid var(--line-2); border-radius: 3px; flex: none; margin-top: 2px; }
.gp-btn { display: block; text-align: center; border-radius: 8px; padding: 9px; font-size: 13.5px; font-weight: 600; background: var(--blue); color: #fff; overflow-wrap: anywhere; }
.lg-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lg-row img { max-height: 40px; max-width: 140px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: #fff; }
.br-card { margin-top: 14px; }
.br-card h2 { display: flex; align-items: center; gap: 6px; }
.br-intro { margin: -6px 0 12px; color: var(--text-2); font-size: 14.5px; }
.dw-body .gp-wrap, .acc-in .gp-wrap { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .sh-link .acc-in .gp-wrap, .st-wrap .acc-in .gp-wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
@media (max-width: 760px) { .gp-wrap { grid-template-columns: minmax(0, 1fr); } .gp-prev { position: static; } }

/* ---- links for a list ---- */
.bk-card, .bv-card { max-width: 720px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; }
.bk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-top h2 { margin: 0; display: flex; align-items: center; gap: 6px; }
.bk-file { margin: 4px 0 12px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.bk-intro, .bk-fine { color: var(--text-2); font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.bk-fine { color: var(--muted); font-size: 13px; }
.bk-tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.bk-tabs button { border: 0; background: #fff; font: inherit; font-size: 14px; padding: 8px 14px; cursor: pointer; color: var(--text-2); }
.bk-tabs button + button { border-left: 1px solid var(--line-2); }
.bk-tabs button[aria-selected="true"] { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.bk-drop { padding: 20px 14px; }
.bk-picked { margin: 8px 0 0; font-size: 14px; color: var(--navy); }
.bk-picked:empty { display: none; }
.bk-pane textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace; resize: vertical; }
.bk-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 8px; }
.bk-opts select { width: 100%; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 14.5px; background: #fff; }
.bk-sum { font-size: 15px; color: var(--navy); margin: 0 0 10px; }
.bk-table-wrap { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.bk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bk-table th, .bk-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.bk-table thead th { position: sticky; top: 0; background: var(--gray); font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bk-table th button { border: 0; background: none; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; }
.bk-skip { margin: 10px 0 0; font-size: 14px; color: var(--text-2); }
.bk-skip summary { cursor: pointer; color: var(--navy); }
.bk-skip ul { margin: 8px 0 0; padding-left: 18px; max-height: 160px; overflow: auto; }
.bk-done { display: flex; gap: 8px; align-items: center; font-size: 16px; color: var(--navy); margin: 0 0 14px; }
.bk-done .ico { color: var(--green); }
.bk-how { margin: 16px 0 4px; background: var(--gray); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.bk-how ol { margin: 8px 0 0; padding-left: 18px; }
.bk-how code { font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.bv-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.bv-wrap { max-height: 60vh; }
.bv-table tr.is-open td:first-child a { font-weight: 600; }
.bv-table a { color: var(--navy); }
.fs-batches { display: grid; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #FBFCFE; }
.fs-batch { display: grid; grid-template-columns: auto minmax(0, 1fr) 120px auto; gap: 12px; align-items: center; }
.fs-batch-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.fs-batch-t { min-width: 0; }
.fs-batch-t b { display: block; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-batch-t small { color: var(--muted); font-size: 13px; }
.fs-batch-bar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; }
.fs-batch-bar i { display: block; height: 100%; background: var(--green); }
.db-bulk-cta { margin: 10px 0 0; font-size: 14px; color: var(--text-2); }
@media (max-width: 760px) {
  .bk-opts { grid-template-columns: minmax(0, 1fr); }
  .fs-batch { grid-template-columns: auto minmax(0, 1fr); }
  .fs-batch-bar { grid-column: 1 / -1; }
  .fs-batch .btn { grid-column: 1 / -1; justify-self: start; }
  .bk-card, .bv-card { max-height: calc(100vh - 16px); }
}

/* dialogs sit above the phone tab bar (z 50); the toast above both */
.st-modal { z-index: 85; }
.db-toast { z-index: 95; }

.bv-sort { display: none; gap: 8px; align-items: center; font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.bv-sort select { padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; background: #fff; }
@media (max-width: 640px) {
  .bv-sort { display: flex; }
  .bv-table thead { display: none; }
  .bv-table, .bv-table tbody { display: block; }
  .bv-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px; border-bottom: 1px solid var(--line); }
  .bv-table td { border: 0; padding: 0; font-size: 13.5px; color: var(--text-2); }
  .bv-table td.bv-who { grid-column: 1; font-size: 15px; }
  .bv-table td.bv-op { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .bv-table td.bv-mail { grid-column: 1; }
  .bv-table td[data-label] { grid-column: 1 / -1; }
  .bv-table td[data-label]:empty { display: none; }
  .bv-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}

.chip-off { color: #6B4E00; background: #FFF4D6; border-color: transparent; }
.db-act.is-off { color: #A15C00; }
.db-row.is-off .db-name, .fs-link.is-off b { color: var(--muted); }

/* ---- Analytics ---- */
.an-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px 12px; align-items: end; margin-bottom: 12px; }
.an-filters select { width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; }
.an-who { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-2); padding-bottom: 8px; }
.an-sum { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.an-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.an-list > li { border-bottom: 1px solid var(--line); }
.an-list > li:last-child { border-bottom: 0; }
.an-row { display: flex; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--text-2); align-items: flex-start; }
.an-row:hover { background: var(--gray); }
.an-row:focus-visible { outline: 3px solid var(--blue-200); outline-offset: -3px; }
.an-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-top: 7px; flex: none; }
.an-dot.is-anon { background: var(--line-2); }
.an-txt { flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.an-txt b { color: var(--navy); font-weight: 600; }
.an-txt small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.an-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.an-row .acc-c { margin-top: 4px; }
.an-row[aria-expanded="true"] .acc-c { transform: rotate(180deg); }
.an-detail { padding: 0 16px 16px 37px; }
.an-steps { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.an-steps li { position: relative; padding: 0 0 12px 16px; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.an-steps li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.an-steps li b { color: var(--navy); font-weight: 600; }
.an-steps li small { color: var(--muted); }
.an-pages { display: grid; gap: 6px; margin: 4px 0 2px; }
.an-pg { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: 13.5px; }
.an-pg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.an-pg i { display: block; height: 8px; border-radius: 4px; background: var(--blue); min-width: 2px; }
.an-pg b { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); }
.an-pro { font-size: 13.5px; color: var(--muted); }
.an-pro a { color: var(--blue); }
.an-more { text-align: center; margin-top: 12px; }
.an-empty { padding: 28px 16px; text-align: center; color: var(--text-2); }
#dbPage:not([data-cur="analytics"]) [data-sec="analytics"]:not(section) { display: none !important; }
@media (max-width: 760px) {
  .an-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .an-who { grid-column: 1 / -1; padding-bottom: 0; }
  .an-detail { padding-left: 16px; }
  .an-pg { grid-template-columns: minmax(0, 90px) minmax(0, 1fr) 54px; }
  .tb-item span { font-size: 10.5px; }
}

/* ---- Teams (18 Oct 2026): workspace switcher, team section, teammate rows, acting notice ---- */
.ws-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0 0 16px; font-size: 14px; }
.ws-bar[hidden] { display: none; }
.ws-bar label { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; }
.ws-bar select { font: inherit; font-weight: 600; color: var(--navy); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 30px 6px 10px; background: #fff; max-width: 100%; min-width: 0; }
.ws-team-link { margin-left: auto; color: var(--blue); font-weight: 600; text-decoration: none; }
.ws-team-link:hover { text-decoration: underline; }
.db-act-gap { display: inline-block; width: 34px; height: 34px; flex: none; }
.db-by small { display: block; color: var(--muted); font-size: 12.5px; }
.chip-chg { color: #6A4A00; background: #FFF6E0; border-color: transparent; }
.ls-acting { display: flex; gap: 10px; align-items: flex-start; background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; font-size: 14px; color: var(--text-2); }
.ls-acting[hidden], .ls-changed[hidden], .st-team[hidden] { display: none; }
.ls-acting p { margin: 0; }
.ls-acting b { color: var(--navy); }
.ls-acting .ico { flex: none; margin-top: 2px; color: var(--blue); }
.ls-changed { margin: -4px 0 12px; font-size: 13.5px; color: #6A4A00; }
.st-team { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.tm-none .ticks { margin: 4px 0 14px; }
.tm-price { color: var(--text-2); margin: 0 0 14px; }
.tm-create { margin: 0 0 14px; }
.tm-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tm-inline .co-in { flex: 1 1 200px; min-width: 0; margin: 0; }
.tm-inline select.co-in { flex: 0 1 130px; }
.tm-note { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.tm-list { list-style: none; margin: 0 0 14px; padding: 0; }
.tm-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tm-list li:last-child { border-bottom: 0; }
.tm-ini { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 14px; }
.tm-ini .ico { width: 15px; height: 15px; }
.tm-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tm-who b, .tm-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-who small { color: var(--muted); font-size: 13px; }
.tm-you { font-size: 12px; font-weight: 600; color: var(--blue); background: var(--blue-50); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.tm-role { font: inherit; font-size: 14px; border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 8px; background: #fff; }
.tm-invite { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 12px; }
.tm-invite .gp-title { display: block; margin-bottom: 8px; }
.tm-h3 { font-size: 15px; margin: 6px 0 4px; }
.tm-plan h2 { margin-bottom: 8px; }
.tm-plan p { margin: 0 0 10px; color: var(--text-2); }
.tm-plan a:not(.btn) { color: var(--blue); font-weight: 600; }
.tm-card-link .st-row { border: 0; padding: 0; }
#secTeam .st-card { margin-bottom: 16px; }
@media (max-width: 640px) {
  .ws-team-link { margin-left: 0; }
  .ws-bar select { flex: 1 1 140px; }
  .db-acts.is-team .db-act-gap { display: none; }
  .db-acts.is-team { justify-content: flex-start; gap: 14px; }
  .tm-list li { flex-wrap: wrap; }
  .tm-who { flex-basis: calc(100% - 60px); }
}
.co-team { margin: 0 0 14px; }
.co-team[hidden] { display: none; }
.co-seats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.co-step { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font: inherit; font-size: 20px; line-height: 1; color: var(--navy); cursor: pointer; }
.co-step:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.co-step:disabled { opacity: .4; cursor: default; }
.co-step:focus-visible { outline: 3px solid var(--blue-200); }
#coSeats { min-width: 34px; text-align: center; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-seats small { flex: 1 1 100%; color: var(--muted); font-size: 13px; }
.tj-card { text-align: left; }
.tj-card .btn { margin: 4px 8px 4px 0; }
.tj-logo { max-height: 56px; max-width: 200px; display: block; margin: 0 0 12px; }
.tj-ico { margin-bottom: 8px; }
.db-by { min-width: 0; }
.db-by-n { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .db-by { grid-column: 1 / -1; }
  .db-by small { display: inline; margin-left: 6px; }
  .db-by-n { display: inline; }
}

/* ---- polish (18 Oct 2026): the sidebar's white column runs the full page height ---- */
@media (min-width: 761px) {
  .shell { background: linear-gradient(to right, #fff 0, #fff 247px, var(--line) 247px, var(--line) 248px, transparent 248px); }
}
/* ---- file pickers: a styled button and the chosen file's name, never the browser's own control ---- */
.fb-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
.fb-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; }
.fb-btn:has(+ .fb-input:focus-visible) { outline: 3px solid var(--blue-200); outline-offset: 1px; }
.fb-name { font-size: 13.5px; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-name.is-set { color: var(--navy); font-weight: 500; }
.lg-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lg-row .st-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lg-prev { width: 56px; height: 56px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.lg-prev img { max-width: 48px; max-height: 48px; object-fit: contain; display: block; }
.lg-prev .lg-none { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; padding: 4px; }
@media (max-width: 760px) { .fb-name { max-width: 140px; } }
/* ---- webhook on open ---- */
.wh-form { margin: 4px 0 12px; }
.wh-secret { background: #FFF8E6; border: 1px solid #F0D58C; border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; font-size: 14px; color: var(--text-2); }
.wh-secret[hidden], .wh-form[hidden] { display: none; }
.wh-secret p { margin: 0 0 8px; }
.wh-secret code, .wh-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.wh-code { flex: 1 1 260px; min-width: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; color: var(--navy); }
.wh-log { list-style: none; margin: 8px 0 0; padding: 0; }
.wh-log li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.wh-log li:last-child { border-bottom: 0; }
.wh-log .chip { flex: none; min-width: 84px; justify-content: center; }
.wh-what { min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.wh-what b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-what small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

/* ---- Analytics clarity (18 Oct 2026): explanations, (i) notes, page-time rows ---- */
.xp, small[data-xp] { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 4px; font-weight: 400; }
.xp-i { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; margin-left: 4px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; vertical-align: middle; }
.xp-i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.xp-i:hover, .xp-i[aria-expanded="true"] { color: var(--blue); background: var(--blue-50); }
.xp-i:focus-visible { outline: 3px solid var(--blue-200); }
.xp-tip { position: absolute; z-index: 60; max-width: 300px; margin-top: 30px; margin-left: -12px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 400; line-height: 1.45; padding: 9px 11px; border-radius: 8px; box-shadow: var(--shadow); text-transform: none; letter-spacing: 0; white-space: normal; }
.xp-tip[hidden] { display: none; }
.xp-h { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.pt-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.pt-ctl label { font-weight: 600; font-size: 14px; color: var(--text-2); }
.pt-ctl select { font: inherit; font-size: 14.5px; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 32px 8px 10px; background: #fff; color: var(--navy); max-width: 100%; min-width: 0; flex: 1 1 260px; }
.pt-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 10px; }
.pt-sum div { background: var(--gray); border-radius: 10px; padding: 10px 12px; }
.pt-sum span { display: block; font-size: 12.5px; color: var(--muted); }
.pt-sum b { font-size: 17px; font-variant-numeric: tabular-nums; }
.pt-cap { font-size: 13.5px; color: var(--text-2); margin: 0 0 8px; }
.pt-list { list-style: none; margin: 0; padding: 0; }
.pt-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(120px, 300px) 84px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pt-row:last-child { border-bottom: 0; }
.pt-pg { justify-self: start; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--gray); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-lab { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.pt-meter { --r: 0; position: relative; display: flex; align-items: center; height: 22px; max-width: 300px; }
.pt-meter::before { content: ""; position: absolute; left: 0; right: 52px; top: 6px; height: 10px; border-radius: 999px; background: #EDF0F5; }
.pt-fill { position: relative; flex: none; height: 10px; border-radius: 999px; background: var(--blue); width: calc((100% - 52px) * var(--r)); min-width: 6px; }
.pt-val { position: relative; margin-left: 8px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--navy); white-space: nowrap; }
.pt-tag { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pt-row.is-top .pt-fill { background: #0F766E; }
.pt-row.is-top .pt-tag { color: #0F766E; }
.pt-row.is-skip, .pt-row.is-nr { color: var(--muted); }
.pt-row.is-skip .pt-val { color: var(--muted); font-weight: 500; margin-left: 0; }
.pt-row.is-skip .pt-meter::before { right: 52px; }
.pt-row.is-nr .pt-meter::before { display: none; }
.pt-teaser { background: var(--gray); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; color: var(--text-2); font-size: 14.5px; }
.pt-teaser b { color: var(--navy); }
.an-person { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.an-person .chip { font-weight: 600; }
@media (max-width: 640px) {
  .pt-row { grid-template-columns: 50px minmax(0, 1fr) auto; grid-template-areas: "pg lab tag" "bar bar bar"; row-gap: 4px; }
  .pt-pg { grid-area: pg; } .pt-lab { grid-area: lab; } .pt-tag { grid-area: tag; } .pt-meter { grid-area: bar; max-width: none; }
  .xp-tip { max-width: calc(100vw - 48px); margin-left: -120px; }
}
.pt-list.no-lab .pt-row { grid-template-columns: 56px minmax(120px, 300px) auto; }
.pt-list.no-lab .pt-lab { display: none; }
@media (max-width: 640px) {
  .pt-list.no-lab .pt-row { grid-template-columns: 50px minmax(0, 1fr) auto; grid-template-areas: "pg lab tag" "bar bar bar"; }
  .pt-list.no-lab .pt-lab { display: block; }
}

/* ---------- analytics: four numbers, one clean table, one visit in a side panel ---------- */
.an-tiles { margin-bottom: 16px; }
.an-tiles .tag { font-size: 13px; vertical-align: middle; }
.ov-tile small a { color: var(--blue); }
.an-table { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.an-table .an-list { border: 0; border-radius: 0; }
.an-head, .an-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) 80px 120px 96px 16px; gap: 16px; align-items: center; }
.an-head { padding: 10px 16px; background: var(--gray); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.an-row { padding: 12px 16px; }
.an-c { min-width: 0; font-size: 14.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.an-w b, .an-f > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-w b { color: var(--navy); font-weight: 600; }
.an-w b.is-anon { color: var(--text-2); font-weight: 500; }
.an-w small, .an-f small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-r { display: flex; align-items: center; gap: 8px; }
.an-bar { flex: 1; max-width: 64px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.an-bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.an-none { color: var(--line-2); }
.an-d { color: var(--muted); font-size: 13.5px; }
.an-go { transform: rotate(-90deg); color: var(--muted); }
@media (max-width: 760px) {
  .an-head { display: none; }
  .an-row { grid-template-columns: minmax(0, 1fr) auto auto 16px; grid-template-areas: "w w d go" "f t r go"; gap: 4px 12px; }
  .an-w { grid-area: w; } .an-f { grid-area: f; } .an-t { grid-area: t; } .an-r { grid-area: r; } .an-d { grid-area: d; } .an-go { grid-area: go; }
  .an-f > span { font-size: 13.5px; color: var(--muted); }
  .an-f small { display: none; }
  .an-t, .an-r { font-size: 13.5px; }
  .an-bar { width: 40px; }
}
.av .dw-body { display: grid; gap: 12px; align-content: start; }
.av-card { margin: 0; }
.av-card h2 { font-size: 15px; margin: 0 0 2px; color: var(--navy); }
.av-xp { display: block; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.av-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.av-facts div { min-width: 0; }
.av-facts span { display: block; font-size: 12.5px; color: var(--muted); }
.av-facts b { display: block; font-size: 14.5px; color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
.av-flags { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.av-flags li::before, .av-ev li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin: 0 10px 2px 0; }
.av-ev { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.av-pro p { font-size: 14px; color: var(--text-2); margin: 6px 0 12px; }
.av-more { margin: 4px 4px 0; font-size: 14px; }
.av-more a { color: var(--blue); }
@media (max-width: 760px) { .an-tiles .ov-tile { padding: 12px 14px; } .an-tiles .ov-tile b { font-size: 24px; } .an-tiles .ov-tile small { font-size: 12.5px; } }
.av .pt-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .av .pt-sum b { font-size: 15px; }
  .av .pt-list .pt-row, .av .pt-list.no-lab .pt-row { grid-template-columns: 44px minmax(0, 1fr) 64px; grid-template-areas: "pg bar tag"; row-gap: 0; }
  .av .pt-lab, .av .pt-list.no-lab .pt-lab { display: none; }
  .av .pt-tag { font-size: 12px; text-align: right; }
}
.an-filters { margin-bottom: 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.gp-lg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gp-lg img { max-height: 36px; max-width: 140px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: #fff; }
.gp-lg-none { font-size: 13.5px; color: var(--muted); }
.gp-lg label.btn { cursor: pointer; }
.gp-lg input[type=file]:focus-visible + label, .gp-lg label.btn:focus-within { outline: 3px solid var(--blue-200); }
.av-times { display: grid; gap: 4px; }
.av-times b { color: var(--navy); font-size: 15px; }
.av-times > span { color: var(--muted); font-size: 13.5px; }
.av-pick { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.av-pick span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.av-pick select { flex: 1; min-width: 0; font: inherit; font-size: 14.5px; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--navy); }

/* custom domain card */
.cd-card h2 { display: flex; align-items: center; gap: 8px; }
.cd-lead { color: var(--text-2); font-size: 14.5px; margin: 4px 0 14px; }
.cd-add { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.cd-add .gp-f { flex: 1 1 260px; }
.cd-add input { width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 14.5px; }
.cd-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cd-head b { font-size: 16px; color: var(--navy); overflow-wrap: anywhere; }
.cd-status { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.cd-status.is-on { background: var(--green-50); color: var(--green); }
.cd-status.is-wait { background: #FFF4E5; color: #9A5B00; }
.cd-step, .cd-fine, .cd-note { font-size: 14px; color: var(--text-2); margin: 6px 0 10px; }
.cd-rec { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 8px; font-size: 14px; }
.cd-rec > div { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; padding: 9px 12px; align-items: center; }
.cd-rec > div:first-child { background: var(--gray); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cd-rec code { font-size: 13.5px; overflow-wrap: anywhere; }
.cd-msg { font-size: 14px; color: var(--text-2); min-height: 1.2em; margin: 10px 0 4px; }
.cd-msg.is-err { color: #B42318; }
.cd-rm { margin-top: 6px; color: #B42318; }
@media (max-width: 560px) {
  .cd-rec > div:first-child { display: none; }
  .cd-rec > div { display: block; padding: 6px 12px; }
  .cd-rec [data-l] { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 5px 0; align-items: center; }
  .cd-rec [data-l]::before { content: attr(data-l); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
}
/* Data room: the files of a multi-file link, with per-file numbers, order and remove (dataroom.js) */
.dr-sub { margin: 4px 0 12px; color: var(--text-2); font-size: 14.5px; }
.dr-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dr-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "n f a" "n s a"; column-gap: 12px; row-gap: 2px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dr-n { grid-area: n; align-self: start; width: 26px; height: 26px; border-radius: 99px; background: var(--gray); color: var(--text-2); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.dr-f { grid-area: f; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.dr-f b { font-size: 15px; color: var(--navy); overflow-wrap: anywhere; }
.dr-f small, .dr-s { color: var(--muted); font-size: 13.5px; }
.dr-s { grid-area: s; color: var(--text-2); }
.dr-a { grid-area: a; display: flex; align-items: center; gap: 4px; }
.dr-ic { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); cursor: pointer; }
.dr-ic:hover:not(:disabled) { border-color: var(--line-2); background: var(--gray); }
.dr-ic:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dr-ic:disabled { opacity: .35; cursor: default; }
.dr-up .ico { transform: rotate(180deg); }
.dr-del { color: #B42318; }
.dr-ask { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: #FEF3F2; color: #7A271A; font-size: 14px; }
.dr-yes { background: #B42318; color: #fff; border-color: #B42318; }
.dr-pages { grid-column: 2 / -1; margin-top: 10px; }
.dr-lock { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--text-2); font-size: 14px; }
.dr-lock a { color: var(--blue); }
.dr-msg { font-size: 14px; color: var(--text-2); min-height: 1.2em; margin: 10px 0 0; }
.dr-msg.is-err { color: #B42318; }
.dr-foot { margin: 6px 0 0; }
.dr-h3 { font-size: 15px; margin: 22px 0 8px; color: var(--navy); }
.dr-visits { list-style: none; margin: 0; padding: 0; }
.dr-visits li { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dr-visits li:last-child { border-bottom: 0; }
.dr-vw { display: flex; flex-direction: column; min-width: 160px; }
.dr-vw b { font-size: 14.5px; color: var(--navy); overflow-wrap: anywhere; }
.dr-vw small { color: var(--muted); font-size: 13px; }
.dr-vf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.dr-chip { padding: 3px 9px; border-radius: 99px; background: var(--gray); border: 1px solid var(--line); font-size: 13px; color: var(--navy); overflow-wrap: anywhere; }
.ls-allow label { display: flex; flex-direction: column; gap: 4px; }
.ls-allow label small { color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.ls-allow textarea { width: 100%; box-sizing: border-box; margin: 10px 0; padding: 10px 12px; font: inherit; font-size: 15px; border: 1px solid var(--line-2); border-radius: 8px; resize: vertical; }
.ls-allow-b { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {
  .dr-row { grid-template-columns: 26px minmax(0, 1fr); grid-template-areas: "n f" "n s" "n a"; }
  .dr-a { margin-top: 6px; flex-wrap: wrap; }
  .dr-ask, .dr-pages { grid-column: 1 / -1; }
}

/* link-ready card: open alert up front (21 Oct 2026) */
.up-notify { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper, #fff); }
.up-notify[hidden] { display: none; }
.up-prohint { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
/* Reading path with actions (21 Oct 2026) */
.av-path { margin: 8px 0 0; font-size: 15px; line-height: 1.9; color: var(--navy); }
.av-path small { color: var(--muted); font-size: 13px; }
.av-path .av-path-act small { color: var(--blue); }

/* Code samples on the MCP pages (23 Oct 2026): wrap on phones instead of widening the page. */
.prose pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word; background: var(--bg-2, #f4f6fa); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.prose pre code, .prose code { word-break: break-word; overflow-wrap: anywhere; }
