.privnote-hero { padding-bottom: 26px; }
[data-privnote-root] { --privnote-control-border: color-mix(in srgb,var(--ink) 26%,transparent); --privnote-control-hover: color-mix(in srgb,var(--blue-bright) 52%,var(--ink)); }
[data-privnote-root] [hidden] { display: none !important; }
.privnote-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.privnote-jumps a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue); background: var(--surface); font-size: 13px; font-weight: 600; }
.privnote-jumps a:hover { border-color: var(--blue-bright); text-decoration: none; }
.privnote-shell { display: grid; grid-template-columns: minmax(0,1.42fr) minmax(280px,.58fr); gap: 20px; align-items: start; }
.privnote-panel { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 36px rgba(31,95,132,.07); }
.privnote-panel h2, .privnote-panel h3 { margin-top: 0; }
.privnote-panel-heading { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.privnote-panel-heading h2 { margin-bottom: 7px; }
.privnote-panel-heading p, .privnote-trust-intro, .privnote-faq-intro { margin: 0; color: var(--muted); }
.privnote-form { display: grid; gap: 18px; }
.privnote-field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.privnote-field label, .privnote-field legend { color: var(--ink); font-weight: 650; }
.privnote-field small, .privnote-check small { display: block; color: var(--muted); font-size: 12px; line-height: 18px; }
.privnote-field textarea, .privnote-field input, .privnote-field select, .privnote-link-row input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--privnote-control-border); border-radius: 8px; color: var(--ink); background: var(--body-bg); box-shadow: 0 1px 2px rgba(11,31,44,.1), 0 6px 18px rgba(31,95,132,.035); font: inherit; transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
.privnote-field textarea::placeholder { color: color-mix(in srgb,var(--muted) 72%,transparent); }
.privnote-field textarea { min-height: 236px; resize: vertical; line-height: 1.55; }
.privnote-field textarea:hover, .privnote-field input:hover, .privnote-field select:hover, .privnote-link-row input:hover { border-color: var(--privnote-control-hover); }
.privnote-field textarea:focus, .privnote-field input:focus, .privnote-field select:focus, .privnote-link-row input:focus { outline: 0; border-color: var(--blue-bright); box-shadow: 0 0 0 3px color-mix(in srgb,var(--blue-bright) 18%,transparent), 0 7px 20px rgba(31,95,132,.12); }
.privnote-field textarea[aria-invalid="true"], .privnote-field input[aria-invalid="true"] { border-color: #c95555; box-shadow: 0 0 0 3px color-mix(in srgb,#c95555 14%,transparent); }
.privnote-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.privnote-label-row output { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.privnote-settings { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: color-mix(in srgb,var(--body-bg) 68%,transparent); }
.privnote-settings > legend { padding: 0 8px; color: var(--ink); font-size: 16px; font-weight: 700; }
.privnote-settings > p { margin: -1px 0 16px; color: var(--muted); font-size: 13px; }
.privnote-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.privnote-options > .privnote-field:nth-child(3) { grid-column: 1 / -1; }
.privnote-options > .privnote-field:nth-child(3) select { max-width: 100%; }
.privnote-notification-field { grid-column: 1 / -1; }
.privnote-password-row { position: relative; min-height: 44px; }
.privnote-password-row input { height: 44px; padding-inline-end: 54px; }
.privnote-password-row button { position: absolute; inset: 1px 1px 1px auto; display: grid; width: 42px; min-width: 42px; padding: 0; place-items: center; border: 0; border-left: 1px solid var(--privnote-control-border); border-radius: 0 7px 7px 0; color: var(--blue); background: var(--surface); cursor: pointer; }
.privnote-password-row button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.privnote-password-row button span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.privnote-password-row button[aria-pressed="true"]::after { position: absolute; width: 23px; height: 1.5px; content: ""; background: currentColor; transform: rotate(-45deg); }
.privnote-password-row button:hover, .privnote-password-row button:focus-visible { background: var(--blue-soft); }
.privnote-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); cursor: pointer; }
.privnote-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 auto; }
.privnote-check strong { display: block; margin-bottom: 2px; font-size: 13px; }
.privnote-submit { width: 100%; min-height: 48px; font-weight: 650; }
.privnote-status { margin: 0; padding: 11px 13px; border-radius: 7px; background: var(--blue-soft); }
.privnote-status[data-kind="error"] { color: #a12828; background: color-mix(in srgb,#d94b4b 12%,var(--surface)); }
.privnote-status[data-kind="success"] { color: #176b44; background: color-mix(in srgb,#2a9d68 12%,var(--surface)); }
.privnote-result { margin-top: 18px; padding: 22px; border: 1px solid color-mix(in srgb,var(--blue-bright) 72%,var(--line)); border-radius: 10px; background: var(--blue-soft); box-shadow: 0 14px 36px rgba(31,95,132,.07); }
.privnote-result h2 { margin-top: 0; }
.privnote-copy-status { margin: 10px 0 0; padding: 10px 12px; border: 1px solid color-mix(in srgb,#2a9d68 35%,var(--line)); border-radius: 7px; color: #176b44; background: color-mix(in srgb,#2a9d68 11%,var(--surface)); font-weight: 700; }
.privnote-result-password { color: var(--muted); font-size: 13px; }
.privnote-link-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.privnote-link-row input { background: var(--body-bg); font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 12px; }
.privnote-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
[data-note-gate]:has([data-password-panel]:not([hidden])) { display: flex; flex-direction: column; }
[data-note-gate]:has([data-password-panel]:not([hidden])) [data-password-panel] { order: 1; }
[data-note-gate]:has([data-password-panel]:not([hidden])) .privnote-actions { order: 2; margin-top: 16px; }
[data-password-panel] h2 { margin-top: 0; }
.privnote-trust-panel { position: sticky; top: 70px; }
.privnote-trust-panel > .eyebrow { margin-bottom: 8px; }
.privnote-trust-intro { margin-bottom: 18px; font-size: 13px; line-height: 20px; }
.privnote-trust { display: grid; border-top: 1px solid var(--line); }
.privnote-trust-item { position: relative; padding: 16px 0 16px 17px; border-bottom: 1px solid var(--line); }
.privnote-trust-item::before { position: absolute; content: ""; left: 0; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 0 4px color-mix(in srgb,var(--blue-bright) 14%,transparent); }
.privnote-trust-item strong { display: block; margin-bottom: 5px; font-size: 14px; line-height: 20px; }
.privnote-trust-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 20px; }
.privnote-privacy-link { display: inline-flex; margin-top: 16px; }
.privnote-steps .card { min-height: 210px; }
.privnote-output { border-color: color-mix(in srgb,var(--ink) 20%,var(--line)); background: color-mix(in srgb,var(--blue-soft) 34%,var(--surface)); }
.privnote-output-toolbar { display: flex; min-height: 40px; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 12px; }
.privnote-copy-note { min-height: 38px; padding: 7px 13px; }
.privnote-inline-status { color: #176b44; font-size: 13px; font-weight: 700; }
.privnote-output pre { min-height: 220px; max-height: min(60vh,620px); margin: 0 0 14px; padding: 18px; overflow: auto; overflow-wrap: anywhere; scrollbar-gutter: stable; white-space: pre-wrap; border: 1px solid color-mix(in srgb,var(--ink) 30%,var(--line)); border-radius: 8px; color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(11,31,44,.12), 0 10px 28px rgba(31,95,132,.06), inset 0 0 0 1px color-mix(in srgb,var(--ink) 4%,transparent); font: inherit; line-height: 1.65; }
.privnote-output pre:focus-visible { outline: 0; border-color: var(--blue-bright); box-shadow: 0 0 0 3px color-mix(in srgb,var(--blue-bright) 18%,transparent), 0 10px 28px rgba(31,95,132,.08); }
.privnote-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: color-mix(in srgb,var(--ink) 68%,var(--muted)); font-size: 13px; }
.privnote-faq-section .narrow > h2 { margin-bottom: 8px; }
.privnote-faq-intro { max-width: 680px; margin-bottom: 22px; }
.privnote-faq { border-top: 1px solid var(--line); }
.privnote-faq details { padding: 0 2px; }
.privnote-faq summary { padding: 16px 42px 16px 0; font-weight: 600; }
.privnote-faq summary::after { top: 16px; }
.privnote-faq details > div { max-width: 730px; padding: 0 42px 2px 0; }
.privnote-faq details p { margin-bottom: 17px; line-height: 1.65; }
.privnote-final-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 34px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.privnote-final-cta h2 { margin: 0 0 6px; font-size: 18px; }
.privnote-final-cta p { margin: 0; color: var(--muted); }
.privnote-final-cta .button { flex: 0 0 auto; }
.privnote-consent { position: fixed; z-index: 80; left: 50%; bottom: 14px; display: grid; width: min(880px,calc(100% - 28px)); grid-template-columns: minmax(0,1fr) auto; gap: 4px 20px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--body-bg); box-shadow: 0 20px 60px rgba(0,0,0,.2); transform: translateX(-50%); }
.privnote-consent > strong, .privnote-consent > p { grid-column: 1; }
.privnote-consent p { margin: 0; color: var(--muted); font-size: 13px; line-height: 19px; }
.privnote-consent .privnote-actions { grid-column: 2; grid-row: 1 / 3; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; }
.privnote-consent .button { min-height: 40px; padding: 7px 12px; font-size: 13px; white-space: nowrap; }
.privnote-admin-controls { display: grid; grid-template-columns: minmax(260px,1fr) minmax(150px,220px) auto; gap: 14px; align-items: end; }
.privnote-admin-controls .button { min-height: 46px; }
.privnote-admin-controls .privnote-status { grid-column: 1 / -1; }
.privnote-admin-notice { margin: 20px 0 6px; padding: 13px 15px; border: 1px solid color-mix(in srgb,var(--blue-bright) 32%,var(--line)); border-radius: 8px; background: color-mix(in srgb,var(--blue-bright) 7%,var(--surface)); color: var(--muted); }
.privnote-admin-generated { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.privnote-admin-totals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 18px 0 28px; }
.privnote-admin-total { min-height: 105px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.privnote-admin-total strong { display: block; margin-bottom: 5px; font-size: 25px; color: var(--blue); }
.privnote-admin-section { min-width: 0; }
.privnote-admin-section h2 { margin: 26px 0 10px; font-size: 20px; }
.privnote-admin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.privnote-table-wrap { overflow: auto; margin: 12px 0 24px; border: 1px solid var(--line); border-radius: 7px; }
.privnote-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.privnote-table th, .privnote-table td { max-width: 320px; padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; vertical-align: top; }
.privnote-table th { color: var(--muted); font-size: 11px; letter-spacing: .03em; text-transform: uppercase; }
html[dir="rtl"] .privnote-password-row input { padding-right: 12px; padding-left: 54px; }
html[dir="rtl"] .privnote-password-row button { right: auto; left: 1px; border-right: 1px solid var(--privnote-control-border); border-left: 0; border-radius: 7px 0 0 7px; }
html[dir="rtl"] .privnote-trust-item { padding-right: 17px; padding-left: 0; }
html[dir="rtl"] .privnote-trust-item::before { right: 0; left: auto; }
html[dir="rtl"] .privnote-faq summary { padding-right: 0; padding-left: 42px; }
html[dir="rtl"] .privnote-faq summary::after { right: auto; left: 4px; }
html[dir="rtl"] .privnote-faq details > div { padding-right: 0; padding-left: 42px; }
html[dir="rtl"] .privnote-table th, html[dir="rtl"] .privnote-table td { text-align: right; }
@media (max-width: 980px) { .privnote-shell { grid-template-columns: 1fr; } .privnote-trust-panel { position: static; } .privnote-admin-controls { grid-template-columns: 1fr 1fr; } .privnote-admin-controls .button { grid-column: 1 / -1; } .privnote-admin-totals { grid-template-columns: repeat(2,minmax(0,1fr)); } .privnote-admin-grid { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 680px) {
  .privnote-hero { padding-bottom: 20px; }
  .privnote-panel { padding: 17px; border-radius: 9px; }
  .privnote-settings { padding: 15px; }
  .privnote-options { grid-template-columns: 1fr; }
  .privnote-options > .privnote-field:nth-child(3) { grid-column: auto; }
  .privnote-options > .privnote-field:nth-child(3) select { max-width: none; }
  .privnote-notification-field { grid-column: auto; }
  .privnote-field textarea { min-height: 210px; }
  .privnote-link-row { grid-template-columns: 1fr; }
  .privnote-output-toolbar { justify-content: space-between; }
  .privnote-output pre { max-height: 54vh; padding: 15px; }
  .privnote-final-cta { align-items: stretch; flex-direction: column; padding: 18px; }
  .privnote-final-cta .button { width: 100%; }
  .privnote-consent { grid-template-columns: 1fr; gap: 6px; bottom: 8px; padding: 13px; }
  .privnote-consent > strong, .privnote-consent > p, .privnote-consent .privnote-actions { grid-column: 1; grid-row: auto; }
  .privnote-consent .privnote-actions { gap: 7px; margin-top: 2px; }
  .privnote-consent .button { min-width: 0; padding-inline: 8px; white-space: normal; }
  .privnote-admin-totals { grid-template-columns: 1fr; }
  .privnote-admin-controls { grid-template-columns: 1fr; }
  .privnote-admin-controls .button { grid-column: auto; }
}
