@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f4f2ec;
  --muted: #9298a6;
  --muted-2: #6d7380;
  --night: #080a0f;
  --navy: #0c1018;
  --panel: #111620;
  --panel-2: #171d28;
  --line: rgba(255,255,255,.085);
  --line-strong: rgba(255,255,255,.15);
  --gold: #d7b878;
  --gold-bright: #ecd49c;
  --gold-dim: rgba(215,184,120,.12);
  --emerald: #65c8a2;
  --ruby: #e67d86;
  --sapphire: #70a6e8;
  --amethyst: #ad8de6;
  --shadow: 0 30px 80px rgba(0,0,0,.42);
  --radius: 18px;
  font-family: "Poppins", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .028; z-index: 999; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); }
.login-brand { position: relative; overflow: hidden; padding: 54px clamp(44px, 6vw, 92px); display: flex; flex-direction: column; background: radial-gradient(circle at 75% 12%, rgba(215,184,120,.14), transparent 34%), linear-gradient(145deg, #101722, #080b11 72%); }
.login-brand::before { content: ""; position: absolute; width: 560px; height: 560px; right: -220px; bottom: -250px; border: 1px solid rgba(215,184,120,.16); border-radius: 50%; box-shadow: 0 0 0 64px rgba(215,184,120,.015), 0 0 0 128px rgba(215,184,120,.012); }
.login-panel { display: grid; place-items: center; padding: 44px; background: #0a0d13; }
.login-card { width: min(100%, 420px); }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup strong { display: block; font-family: "Poppins", sans-serif; font-size: 19px; letter-spacing: .01em; }
.brand-lockup small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; letter-spacing: .16em; text-transform: uppercase; }
.brand-mark { width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid rgba(215,184,120,.42); background: linear-gradient(145deg, rgba(215,184,120,.14), rgba(215,184,120,.03)); transform: rotate(45deg); border-radius: 11px; box-shadow: inset 0 0 24px rgba(215,184,120,.06); flex: 0 0 auto; }
.brand-mark span { transform: rotate(-45deg); font-family: "Poppins", sans-serif; color: var(--gold-bright); font-size: 19px; }
.brand-lockup-large .brand-mark { width: 47px; height: 47px; }
.brand-lockup-large strong { font-size: 22px; }
.login-statement { margin: auto 0; max-width: 750px; position: relative; z-index: 1; }
.eyebrow { display: block; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.login-statement h1 { margin: 24px 0; max-width: 680px; font-family: "Poppins", sans-serif; font-size: clamp(48px, 5.4vw, 82px); font-weight: 400; line-height: .99; letter-spacing: -.035em; }
.login-statement p { color: #aeb3bd; font-size: 18px; line-height: 1.65; max-width: 590px; }
.trust-row { display: flex; gap: 28px; color: var(--muted); font-size: 12px; }
.trust-row span::before { content: "◆"; color: var(--gold); font-size: 7px; margin-right: 9px; }
.mobile-brand { display: none; margin-bottom: 48px; }
.form-heading { margin-bottom: 32px; }
.form-heading h2 { font-family: "Poppins", sans-serif; font-weight: 400; font-size: 38px; margin: 12px 0 8px; }
.form-heading p { color: var(--muted); margin: 0; }
.field { display: grid; gap: 9px; margin: 18px 0; }
.field > span:first-child, .field-label { color: #c9ccd3; font-size: 12px; font-weight: 650; letter-spacing: .035em; }
.field input, .field textarea, .field select, .compact-input { width: 100%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.025); color: var(--ink); border-radius: 11px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 105px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus, .compact-input:focus { border-color: rgba(215,184,120,.7); box-shadow: 0 0 0 3px rgba(215,184,120,.09); background: rgba(255,255,255,.04); }
.input-action { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 11px; overflow: hidden; background: rgba(255,255,255,.025); }
.input-action:focus-within { border-color: rgba(215,184,120,.7); box-shadow: 0 0 0 3px rgba(215,184,120,.09); }
.input-action input { border: 0; box-shadow: none !important; background: transparent; }
.reveal-button { background: transparent; border: 0; color: var(--gold); font-size: 11px; font-weight: 700; padding: 12px 14px; cursor: pointer; }
.form-error { margin: 14px 0; padding: 11px 13px; border-radius: 9px; background: rgba(230,125,134,.1); border: 1px solid rgba(230,125,134,.22); color: #f3aeb5; font-size: 13px; }
.privacy-note { color: var(--muted-2); text-align: center; font-size: 11px; line-height: 1.5; margin-top: 22px; }

.button { border: 1px solid var(--line-strong); border-radius: 10px; min-height: 40px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.045); cursor: pointer; font-weight: 650; font-size: 13px; transition: transform .16s, border-color .16s, background .16s; }
.button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.075); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-primary { color: #16140f; border-color: var(--gold); background: linear-gradient(135deg, #e5ca91, #c8a65f); box-shadow: 0 10px 30px rgba(190,151,76,.14); }
.button-primary:hover { background: linear-gradient(135deg, #efd9aa, #d4b46f); border-color: var(--gold-bright); }
.button-danger { color: #f1a8af; border-color: rgba(230,125,134,.28); background: rgba(230,125,134,.08); }
.button-ghost { background: transparent; }
.button-small { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.button-full { width: 100%; min-height: 48px; justify-content: space-between; padding-inline: 18px; margin-top: 22px; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
.icon-button:hover { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.04); }

.app-view { min-height: 100vh; display: grid; grid-template-columns: 255px minmax(0, 1fr); background: radial-gradient(circle at 90% 0, rgba(215,184,120,.045), transparent 26%), #0b0e14; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 18px 20px; border-right: 1px solid var(--line); background: rgba(9,12,18,.94); z-index: 50; }
.sidebar-head { padding: 0 8px 31px; display: flex; justify-content: space-between; align-items: center; }
.main-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; text-align: left; border: 0; border-radius: 10px; background: transparent; color: #858c9a; padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 580; }
.nav-item:hover { color: #d7dae0; background: rgba(255,255,255,.035); }
.nav-item.active { color: var(--gold-bright); background: linear-gradient(90deg, rgba(215,184,120,.13), rgba(215,184,120,.045)); box-shadow: inset 2px 0 var(--gold); }
.nav-icon { width: 20px; color: currentColor; font-size: 17px; text-align: center; }
.nav-count { color: var(--muted); font-size: 10px; border: 1px solid var(--line); min-width: 22px; padding: 2px 5px; border-radius: 20px; text-align: center; }
.sidebar-spacer { flex: 1; }
.secondary-nav { padding-top: 16px; border-top: 1px solid var(--line); }
.user-card { margin-top: 18px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 32px; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--gold-dim); color: var(--gold-bright); border: 1px solid rgba(215,184,120,.2); font-family: "Poppins", sans-serif; font-size: 12px; }
.user-meta { min-width: 0; }
.user-meta strong, .user-meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta strong { font-size: 12px; }
.user-meta span { color: var(--muted); font-size: 10px; text-transform: capitalize; margin-top: 3px; }

.workspace { min-width: 0; }
.topbar { min-height: 92px; padding: 20px clamp(24px, 4vw, 54px); display: flex; align-items: center; gap: 18px; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(11,14,20,.76); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 30; }
.topbar-title span { color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.topbar-title h1 { font-family: "Poppins", sans-serif; font-size: 25px; font-weight: 400; margin: 5px 0 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search-trigger { min-width: 196px; display: flex; align-items: center; gap: 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); padding: 9px 10px; cursor: pointer; font-size: 12px; text-align: left; }
.search-trigger span:nth-child(2) { flex: 1; }
kbd { border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 5px; background: rgba(255,255,255,.04); font-size: 10px; color: var(--muted-2); }
.content { padding: clamp(25px, 4vw, 52px); max-width: 1540px; margin: 0 auto; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.page-intro h2 { font-family: "Poppins", sans-serif; font-size: clamp(28px, 3vw, 41px); font-weight: 400; margin: 0 0 8px; letter-spacing: -.02em; }
.page-intro p { color: var(--muted); max-width: 650px; margin: 0; line-height: 1.6; }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 25px; }
.stat-card { position: relative; overflow: hidden; min-height: 145px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.043), rgba(255,255,255,.016)); }
.stat-card::after { content: ""; position: absolute; width: 110px; height: 110px; border: 1px solid var(--line); border-radius: 50%; right: -48px; top: -55px; }
.stat-label { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.stat-value { display: block; font-family: "Poppins", sans-serif; font-size: 41px; margin: 14px 0 5px; font-weight: 400; }
.stat-note { color: var(--muted-2); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .7fr); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.037), rgba(255,255,255,.015)); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 13px; letter-spacing: .01em; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 20px; }
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.quick-card { text-align: left; border: 1px solid var(--line); border-radius: 13px; padding: 17px; background: rgba(255,255,255,.02); cursor: pointer; }
.quick-card:hover { border-color: rgba(215,184,120,.28); background: rgba(215,184,120,.04); }
.quick-card b { display: block; margin: 10px 0 5px; font-size: 12px; }
.quick-card small { color: var(--muted); line-height: 1.5; }
.security-posture { display: grid; gap: 15px; }
.posture-item { display: grid; grid-template-columns: 9px 1fr; gap: 11px; align-items: start; }
.posture-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 12px rgba(101,200,162,.5); margin-top: 4px; }
.posture-item strong { display: block; font-size: 12px; }
.posture-item span { color: var(--muted); display: block; font-size: 11px; margin-top: 4px; line-height: 1.45; }

.toolbar { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.filter-input { min-width: min(100%, 340px); position: relative; }
.filter-input input { width: 100%; padding: 11px 14px 11px 38px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--ink); border-radius: 10px; outline: none; }
.filter-input::before { content: "⌕"; position: absolute; left: 13px; top: 9px; color: var(--muted); }
.vault-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.vault-card { position: relative; text-align: left; border: 1px solid var(--line); border-radius: 17px; padding: 21px; min-height: 182px; background: linear-gradient(145deg, rgba(255,255,255,.043), rgba(255,255,255,.014)); cursor: pointer; overflow: hidden; transition: transform .18s, border-color .18s; }
.vault-card:hover { transform: translateY(-3px); border-color: rgba(215,184,120,.28); }
.vault-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -70px; bottom: -73px; border: 1px solid currentColor; border-radius: 50%; opacity: .14; }
.vault-color { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 23px; background: var(--gold-dim); color: var(--gold-bright); border: 1px solid currentColor; }
.color-emerald { color: var(--emerald); }.color-sapphire { color: var(--sapphire); }.color-amethyst { color: var(--amethyst); }.color-ruby { color: var(--ruby); }.color-slate { color: #aeb6c5; }.color-gold { color: var(--gold); }
.vault-card h3 { margin: 0 0 7px; font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 400; }
.vault-card p { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0; min-height: 34px; }
.vault-stats { display: flex; gap: 16px; margin-top: 18px; color: var(--muted-2); font-size: 10px; }
.permission-pill, .tag, .status-pill { display: inline-flex; align-items: center; border-radius: 20px; border: 1px solid var(--line); padding: 3px 8px; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.025); }

.back-row { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 22px; align-items: center; }
.back-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0; font-size: 12px; }
.back-button:hover { color: var(--gold); }
.vault-hero { display: flex; gap: 17px; align-items: center; }
.vault-hero .vault-color { margin: 0; width: 48px; height: 48px; }
.vault-hero h2 { margin: 0 0 5px; font-family: "Poppins", sans-serif; font-weight: 400; font-size: 32px; }
.vault-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.data-table-wrap { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: rgba(255,255,255,.018); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { color: var(--muted-2); text-align: left; padding: 12px 16px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.018); }
.data-table td { border-top: 1px solid var(--line); padding: 14px 16px; font-size: 12px; }
.data-table tr[data-action] { cursor: pointer; }
.data-table tbody tr:hover { background: rgba(215,184,120,.035); }
.credential-name { display: flex; align-items: center; gap: 11px; }
.credential-glyph { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--gold-dim); color: var(--gold); font-family: "Poppins", sans-serif; }
.credential-name strong { display: block; }
.credential-name small { display: block; color: var(--muted); margin-top: 3px; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.favorite { color: var(--gold); }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }

.empty-state { min-height: 270px; display: grid; place-items: center; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 40px; }
.empty-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid rgba(215,184,120,.3); border-radius: 20px; transform: rotate(45deg); color: var(--gold); background: var(--gold-dim); }
.empty-icon span { transform: rotate(-45deg); font-size: 22px; }
.empty-state h3 { font-family: "Poppins", sans-serif; font-weight: 400; font-size: 24px; margin: 0 0 8px; }
.empty-state p { color: var(--muted); max-width: 430px; line-height: 1.55; font-size: 12px; margin: 0 auto 20px; }

.modal-root { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(2,4,7,.72); backdrop-filter: blur(12px); }
.modal { width: min(100%, 590px); max-height: min(90vh, 900px); overflow: auto; border: 1px solid var(--line-strong); border-radius: 20px; background: #10151e; box-shadow: var(--shadow); }
.modal-wide { width: min(100%, 820px); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 21px 23px; border-bottom: 1px solid var(--line); background: rgba(16,21,30,.96); backdrop-filter: blur(14px); }
.modal-head h2 { margin: 0 0 5px; font-family: "Poppins", sans-serif; font-size: 25px; font-weight: 400; }
.modal-head p { margin: 0; color: var(--muted); font-size: 11px; }
.modal-body { padding: 23px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 17px 23px; border-top: 1px solid var(--line); background: rgba(255,255,255,.012); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .span-2 { grid-column: span 2; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; padding: 10px; text-align: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 11px; cursor: pointer; }
.choice input:checked + span { border-color: currentColor; color: var(--gold); background: var(--gold-dim); }
.custom-fields { display: grid; gap: 9px; }
.custom-field-row { display: grid; grid-template-columns: .75fr 1.25fr auto auto; gap: 7px; align-items: center; }
.secret-toggle { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: rgba(255,255,255,.025); color: var(--muted); }
.secret-toggle.active { color: var(--gold); border-color: rgba(215,184,120,.32); background: var(--gold-dim); }
.secret-list { display: grid; gap: 11px; }
.secret-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.secret-row:last-child { border-bottom: 0; }
.secret-row label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; padding-top: 4px; }
.secret-value { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: "Poppins", sans-serif; font-size: 12px; line-height: 1.55; }
.secret-value a { color: var(--gold-bright); text-decoration: none; }
.secret-value a:hover { text-decoration: underline; }
.modal-warning { padding: 12px 13px; border: 1px solid rgba(215,184,120,.22); border-radius: 10px; background: var(--gold-dim); color: #d9c69e; font-size: 11px; line-height: 1.5; margin-bottom: 17px; }

.settings-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; }
.setting-section { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.setting-section h3 { margin: 0 0 6px; font-family: "Poppins", sans-serif; font-size: 21px; font-weight: 400; }
.setting-section > p { color: var(--muted); line-height: 1.5; margin: 0 0 20px; font-size: 11px; }
.staff-card-list { display: grid; gap: 10px; }
.staff-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.staff-card strong { display: block; font-size: 12px; }
.staff-card small { display: block; color: var(--muted); margin-top: 4px; }
.staff-actions { display: flex; gap: 6px; }
.status-active { color: var(--emerald); border-color: rgba(101,200,162,.22); }.status-disabled { color: var(--ruby); border-color: rgba(230,125,134,.22); }
.audit-action { color: var(--gold-bright); font-family: "Poppins", sans-serif; font-size: 11px; }
.muted { color: var(--muted); }.danger-text { color: var(--ruby); }.gold-text { color: var(--gold); }
.loading { min-height: 220px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.loading::before { content: ""; width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .75s linear infinite; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 300; display: grid; gap: 8px; width: min(360px, calc(100vw - 44px)); }
.toast { padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 11px; background: #171d27; box-shadow: var(--shadow); font-size: 12px; animation: toast-in .2s ease-out; }
.toast.success { border-left: 3px solid var(--emerald); }.toast.error { border-left: 3px solid var(--ruby); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.mobile-only { display: none; }

@media (max-width: 1100px) {
  .vault-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .login-view { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 28px 22px; background: radial-gradient(circle at 80% 5%, rgba(215,184,120,.1), transparent 35%), #0a0d13; }
  .mobile-brand { display: flex; }
  .app-view { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(290px, 86vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .nav-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.62); }
  .mobile-only { display: grid; }
  .topbar { min-height: 78px; padding: 15px 18px; }
  .topbar-title { flex: 1; }
  .topbar-actions .search-trigger { display: none; }
  .content { padding: 24px 18px 42px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 118px; }
  .vault-grid { grid-template-columns: 1fr; }
  .data-table th:nth-child(2), .data-table td:nth-child(2), .data-table th:nth-child(3), .data-table td:nth-child(3) { display: none; }
}

@media (max-width: 560px) {
  .topbar-actions .button span:last-child { display: none; }
  .page-intro { align-items: start; flex-direction: column; }
  .quick-actions, .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .modal-root { padding: 0; place-items: end center; }
  .modal { width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0; }
  .custom-field-row { grid-template-columns: 1fr 1fr auto; }
  .custom-field-row .secret-toggle { display: none; }
  .secret-row { grid-template-columns: 1fr auto; }
  .secret-row label { grid-column: 1 / -1; }
  .staff-card { grid-template-columns: 38px 1fr; }
  .staff-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .filter-input { min-width: 100%; }
}
