:root {
  color-scheme: light;
  --sidebar: #101b24;
  --sidebar-width: 236px;
  --background: #f4f6f7;
  --surface: #ffffff;
  --ink: #192c35;
  --muted: #677b86;
  --line: #e0e6e8;
  --accent: #087f83;
  --accent-hover: #066b6f;
  --accent-soft: #e6f3f1;
  --amber: #9b6412;
  --danger: #b63d42;
  --radius: 14px;
  --shadow: 0 3px 14px rgb(16 27 36 / 4%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--background); }
body { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #56b8b9;
  outline-offset: 3px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(25px, 2.3vw, 32px); line-height: 1.2; letter-spacing: -.8px; margin-bottom: 9px; font-weight: 700; }
h2 { font-size: 19px; line-height: 1.35; letter-spacing: -.35px; margin-bottom: 10px; }
h3 { font-size: 15px; line-height: 1.4; margin-bottom: 7px; }
p { margin-bottom: 15px; }
small, .small { font-size: 12px; }
img { display: block; max-width: 100%; }
[hidden], .hidden { display: none !important; }
::selection { color: #073d41; background: #bce5df; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: #c8d3d7; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); background: var(--sidebar); color: #dbe6eb; padding: 29px 18px 21px; display: flex; flex-direction: column; z-index: 30; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: white; padding: 0 12px 33px; }
.brand:hover { color: white; }
.brand-mark { width: 43px; height: 43px; flex: 0 0 43px; }
.brand-mark img, img.brand-mark { width: 43px; height: 43px; object-fit: contain; }
.brand-name { font-size: 29px; font-weight: 700; line-height: 1; letter-spacing: -.9px; }
.brand-name small { display: block; color: #8198a7; font-size: 9px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; margin-top: 8px; }
.nav-list { display: flex; flex-direction: column; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 13px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #a7bcc7; text-align: left; text-decoration: none; line-height: 1.35; transition: background .15s, color .15s; }
.nav-item:hover { background: #192b37; color: #fff; }
.nav-item[aria-current="page"], .nav-item.active { background: #1d3a42; border-color: #2d535b; color: #e7fffa; }
.nav-icon { flex: 0 0 23px; text-align: center; font-size: 19px; color: #83aaa9; }
.nav-item[aria-current="page"] .nav-icon, .nav-item.active .nav-icon { color: #9ce6db; }
.nav-label { display: block; font-size: 13px; font-weight: 600; }
.nav-note { display: block; color: #7794a4; font-size: 10px; margin-top: 4px; font-weight: 400; }
.sidebar-bottom { margin-top: auto; padding: 26px 10px 0; font-size: 11px; color: #7894a4; }
.sidebar-bottom p { margin: 13px 0 0; }
.engine-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #31444f; border-radius: 20px; font-size: 10px; color: #bdd4dc; letter-spacing: .2px; }
.engine-pill::before { content: ""; height: 6px; width: 6px; border-radius: 50%; background: #7ac7b8; box-shadow: 0 0 0 3px rgb(122 199 184 / 9%); }
.main { grid-column: 2; min-width: 0; }
.topbar { min-height: 78px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 88%); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.content { max-width: 1280px; padding: 34px 32px 52px; margin: 0 auto; }
.view { min-width: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading p { margin-bottom: 0; max-width: 720px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 12px; }
.muted { color: var(--muted); }
.error { color: var(--danger); }
.success { color: #247757; }
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 9px; border-radius: 20px; background: #edf1f3; color: #5c717e; font-size: 10px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.badge.green { background: #e5f5ec; color: #246b4c; }
.badge.amber { background: #fff2d6; color: var(--amber); }
.badge.red { background: #fdebed; color: #a6383e; }
.button, .icon-button { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 8px; min-height: 39px; padding: 9px 15px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.4; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.button:hover, .icon-button:hover { background: #f2f6f6; border-color: #cbd8dc; color: var(--ink); }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; box-shadow: 0 2px 4px rgb(8 127 131 / 8%); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: white; }
.button.secondary { background: white; }
.button.ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.button.ghost:hover { background: #eaf0f0; color: var(--ink); }
.button.danger { color: var(--danger); background: #fff8f8; border-color: #f0d4d6; }
.button.danger:hover { background: #fdecef; }
.icon-button { width: 35px; min-height: 35px; padding: 6px; font-size: 17px; flex: 0 0 35px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-title h2, .card-title h3, .card-title p { margin: 0; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.field { min-width: 0; }
.field label, label.field { display: block; color: #425b67; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.field label small, .field .small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea, .address-input { display: block; width: 100%; min-height: 43px; border: 1px solid #cfdadd; border-radius: 8px; background: white; color: var(--ink); padding: 10px 12px; font-size: 13px; box-shadow: 0 1px 2px rgb(16 27 36 / 2%); }
.field input::placeholder, .field textarea::placeholder, .address-input::placeholder { color: #91a1aa; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus, .address-input:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field input[type="checkbox"], .field input[type="radio"] { display: inline-block; width: auto; min-height: 0; padding: 0; }
.field > small, .field > .small { display: block; margin-top: 7px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full, .form-grid .wide { grid-column: 1 / -1; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.spacer { flex: 1; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 50px 28px; min-height: 270px; color: var(--muted); }
.empty-state h2, .empty-state h3 { color: var(--ink); margin-bottom: 9px; }
.empty-state p { max-width: 430px; margin-bottom: 20px; font-size: 13px; }
.empty-icon { width: 63px; height: 63px; display: grid; place-items: center; background: #eaf3f1; color: var(--accent); border: 1px solid #dcece7; border-radius: 18px; font-size: 28px; margin-bottom: 21px; }
.address-form { display: flex; gap: 11px; align-items: center; }
.address-input { flex: 1; min-width: 0; min-height: 49px; padding-left: 16px; font-size: 14px; }
.address-form .button { min-height: 49px; padding-left: 21px; padding-right: 21px; }
.security-strip { display: flex; align-items: flex-start; gap: 9px; color: #537b76; font-size: 11px; margin-top: 15px; line-height: 1.6; }
.security-strip p { margin: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 29px 0 16px; }
.section-heading h2, .section-heading h3, .section-heading p { margin-bottom: 0; }
.bookmark-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bookmark-card { position: relative; display: flex; align-items: flex-start; gap: 13px; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 19px; min-width: 0; box-shadow: var(--shadow); }
.bookmark-card h3 { margin: 0 0 4px; overflow-wrap: anywhere; padding-right: 25px; }
.bookmark-card p, .bookmark-card .small { margin: 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.bookmark-card > a { color: inherit; text-decoration: none; flex: 1; min-width: 0; }
.bookmark-icon { flex: 0 0 39px; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; color: var(--accent); background: var(--accent-soft); font-size: 17px; }
.bookmark-menu { position: absolute; top: 12px; right: 10px; }
.bookmark-menu .icon-button, button.bookmark-menu { background: transparent; border: 0; color: var(--muted); }
.mail-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; min-height: 530px; box-shadow: var(--shadow); }
.mail-list { border-right: 1px solid var(--line); background: #fbfcfc; max-height: 650px; overflow-y: auto; min-width: 0; }
.mail-item { display: block; width: 100%; text-align: left; padding: 17px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); min-width: 0; }
.mail-item:hover { background: #f1f6f5; }
.mail-item.active, .mail-item[aria-selected="true"] { background: #eaf5f2; box-shadow: inset 3px 0 var(--accent); }
.mail-from { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-subject { font-size: 12px; line-height: 1.5; margin-top: 6px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mail-date { font-size: 10px; color: #82949d; margin-top: 9px; }
.message-preview { padding: 29px; min-width: 0; }
.message-preview .empty-state { min-height: 420px; }
.message-preview h2 { font-size: 22px; overflow-wrap: anywhere; }
.message-meta { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.85; color: #354c57; font-family: inherit; }
.photo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 17px; }
.photo-card { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.photo-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e8eff0; }
.photo-info { padding: 13px 13px 8px; min-width: 0; }
.photo-info strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.photo-info p, .photo-info small { color: var(--muted); font-size: 10px; margin: 4px 0 0; }
.photo-actions { display: flex; align-items: center; gap: 5px; padding: 4px 9px 11px; justify-content: flex-end; }
.photo-actions .button { min-height: 30px; padding: 5px 8px; font-size: 10px; }
.photo-actions .icon-button { width: 29px; min-height: 29px; flex-basis: 29px; font-size: 13px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step-card { border: 1px solid var(--line); border-radius: 12px; padding: 23px; background: white; min-width: 0; }
.step-card p { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.step-number { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; margin-bottom: 14px; }
.dns-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.dns-table th { padding: 12px 13px; font-size: 10px; text-transform: uppercase; letter-spacing: .6px; background: #f3f7f7; color: #6b828c; border-bottom: 1px solid var(--line); }
.dns-table td { padding: 14px 13px; vertical-align: top; border-bottom: 1px solid #eaf0f1; overflow-wrap: anywhere; }
.dns-table tbody tr:last-child td { border-bottom: 0; }
.dns-table code { font-size: 11px; color: var(--accent); }
.callout, .notice { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border: 1px solid #d3e9e4; background: #eef8f5; color: #426e64; border-radius: 10px; font-size: 12px; line-height: 1.7; }
.callout p, .notice p { margin-bottom: 0; }
.callout.amber, .notice.amber { border-color: #f0e2c0; background: #fff9e9; color: #8b7038; }
.notice.error, .callout.error { background: #fff2f3; border-color: #f0d7db; color: #a24b52; }
.nexo-source { background: #10222b; color: #b5e8d9; border: 1px solid #23404a; border-radius: 12px; overflow: hidden; }
.nexo-source pre, pre.nexo-source { margin: 0; padding: 22px; white-space: pre; overflow: auto; font: 12px/1.85 "SFMono-Regular", Consolas, "Liberation Mono", monospace; tab-size: 4; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 20px; }
.metric strong { display: block; font-size: 25px; letter-spacing: -.6px; font-weight: 650; }
.metric span, .metric small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.vault-status { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #5c737d; }
.vault-status.unlocked { color: #27826a; }
.status-line { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--muted); padding: 10px 0; }
.status-line strong { color: var(--ink); }
.account-card { border: 1px solid var(--line); border-radius: 11px; background: white; padding: 17px; display: flex; align-items: center; gap: 13px; min-width: 0; }
.account-info { flex: 1; min-width: 0; }
.account-info strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.account-info small, .account-info p { color: var(--muted); font-size: 11px; margin: 4px 0 0; }
.file-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #b7cfd0; background: #f9fcfb; padding: 34px 20px; border-radius: 12px; text-align: center; gap: 9px; color: var(--muted); }
.file-drop:hover, .file-drop.dragover { border-color: var(--accent); background: #eef9f5; }
.file-drop input[type="file"] { max-width: 100%; font-size: 12px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: #546e7a; }
.checkbox-row input { margin: 4px 0 0; accent-color: var(--accent); width: 15px; height: 15px; flex: 0 0 15px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { padding: 11px 15px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tab.active, .tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.key-value { display: grid; grid-template-columns: minmax(100px, .45fr) minmax(0, 1fr); gap: 11px 18px; font-size: 12px; }
.key-value dt { color: var(--muted); }
.key-value dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.progress { height: 5px; border-radius: 4px; overflow: hidden; background: #dfece8; }
.progress > span, .progress > div { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.toast, #toast { position: fixed; bottom: 25px; right: 27px; z-index: 100; max-width: min(430px, calc(100vw - 36px)); background: #173b41; color: #e4f7f1; border: 1px solid #2f5d62; border-radius: 11px; padding: 15px 19px; font-size: 12px; box-shadow: 0 10px 40px rgb(16 27 36 / 17%); }
.dialog, dialog { max-width: 620px; width: calc(100% - 34px); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid #d4dfe1; border-radius: 17px; color: var(--ink); background: white; padding: 0; box-shadow: 0 26px 100px rgb(16 27 36 / 22%); }
dialog::backdrop { background: rgb(10 24 32 / 52%); backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 25px 27px 21px; }
.dialog-header h2 { font-size: 21px; margin-bottom: 4px; }
.dialog-header p { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.dialog-body { padding: 24px 27px; display: flex; flex-direction: column; gap: 18px; }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 18px 27px 23px; border-top: 1px solid var(--line); }
.screen-reader-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1200px) {
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bookmark-grid, .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mail-layout { grid-template-columns: 250px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: relative; width: 100%; padding: 17px 20px 13px; overflow: visible; }
  .brand { padding: 0 0 18px; gap: 9px; }
  .brand-mark, .brand-mark img, img.brand-mark { width: 35px; height: 35px; flex-basis: 35px; }
  .brand-name { font-size: 25px; }
  .brand-name small { font-size: 8px; margin-top: 6px; }
  .nav-list { flex-direction: row; overflow-x: auto; padding-bottom: 3px; gap: 6px; scrollbar-width: thin; }
  .nav-item { width: auto; flex: 0 0 auto; padding: 10px 12px; gap: 8px; white-space: nowrap; }
  .nav-label { font-size: 11px; }
  .nav-note, .sidebar-bottom { display: none; }
  .nav-icon { font-size: 17px; flex-basis: 18px; }
  .main { width: 100%; }
  .topbar { min-height: 65px; padding: 15px 24px; }
  .content { padding: 28px 24px 40px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .page-heading { gap: 18px; align-items: flex-start; }
  .page-heading > .row { justify-content: flex-end; }
}
@media (max-width: 650px) {
  .content { padding: 25px 18px 35px; }
  .topbar { padding: 13px 18px; min-height: 63px; }
  .breadcrumb { font-size: 10px; gap: 6px; }
  .top-actions { gap: 6px; }
  .top-actions .button { padding: 8px 10px; font-size: 10px; min-height: 34px; }
  .page-heading { flex-direction: column; gap: 17px; margin-bottom: 22px; }
  .page-heading > .row { justify-content: flex-start; }
  .page-heading p { font-size: 12px; }
  .card { padding: 19px; }
  .card-title { flex-wrap: wrap; }
  .address-form { flex-wrap: wrap; }
  .address-input { flex-basis: 100%; }
  .address-form .button { min-height: 42px; }
  .bookmark-grid, .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .photo-info { padding: 10px 10px 6px; }
  .photo-actions { padding: 3px 6px 9px; }
  .mail-layout { grid-template-columns: minmax(0, 1fr); }
  .mail-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 265px; }
  .message-preview { padding: 22px 19px; }
  .message-preview .empty-state { min-height: 260px; }
  .message-preview h2 { font-size: 20px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .metrics-grid { gap: 10px; }
  .metric { padding: 16px; }
  .metric strong { font-size: 23px; }
  .empty-state { padding: 35px 12px; min-height: 240px; }
  .empty-state p { font-size: 12px; }
  .toolbar { align-items: flex-start; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 17px; }
  .dns-table { font-size: 10px; }
  .dns-table th, .dns-table td { padding: 10px 8px; }
  .key-value { grid-template-columns: minmax(80px, .4fr) minmax(0, 1fr); gap: 9px 12px; }
  .dialog-header, .dialog-body { padding: 22px; }
  .dialog-actions { padding: 17px 22px 21px; flex-wrap: wrap; }
  .toast, #toast { right: 18px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* Composição das aplicações e agentes integrados. */
.nav-divider { height:1px; background:#263944; margin:12px 0; }
.web-card { margin-bottom:30px; padding:30px; }
.card-title { font-weight:650; }
.security-strip { flex-wrap:wrap; column-gap:24px; }
.security-strip span::before { content:'✓'; margin-right:6px; color:var(--accent); }
.callout { display:block; margin-top:26px; }
.callout strong { display:block; margin-bottom:7px; }
.bookmark-grid>.empty-state,.photo-grid>.empty-state { grid-column:1/-1; background:white; border:1px dashed #cbd9dd; border-radius:14px; }
.bookmark-link { display:grid; gap:8px; }
.bookmark-card { flex-direction:column; }
.bookmark-card>.button { padding:5px 0; min-height:24px; font-size:11px; }
.toolbar { margin-top:20px; }
.toolbar>input { flex:1; min-width:140px; padding:11px 14px; border:1px solid var(--line); border-radius:8px; background:white; max-width:390px; }
.mail-layout.card { padding:0; }
.mail-from,.mail-date { display:block; }
.message-meta { white-space:pre-wrap; }
.message-preview .section-heading { margin-top:0; flex-wrap:wrap; }
.photo-open { border:0; padding:0; width:100%; display:block; background:#e8eff0; }
.photo-dialog { max-width:950px; }
#photo-full { width:100%; max-height:65vh; object-fit:contain; }
.domain-summary { display:flex; align-items:center; gap:24px; margin-bottom:24px; }
.domain-summary>div { flex:1; }
.domain-summary p { margin:9px 0 0; }
.domain-name { font-size:28px; font-weight:650; letter-spacing:-.8px; }
.plan-grid { margin-bottom:24px; grid-template-columns:repeat(4,minmax(0,1fr)); }
#view-domain>.split,#view-privacy>.split { margin-top:24px; }
#view-domain>.card { margin-bottom:24px; }
.table-scroll { overflow:auto; }
.metric>span { font-size:25px; font-weight:650; color:var(--ink); margin:0; }
.metric>p { font-size:11px; color:var(--muted); margin:7px 0 0; }
.vault-status.open { color:#27826a; }
.account-icon { width:38px; height:38px; display:grid; place-items:center; background:var(--accent-soft); border-radius:10px; color:var(--accent); font-size:20px; }
.agent-card { display:flex; gap:15px; align-items:center; padding:17px 20px; border:1px solid #d9e7e6; border-radius:12px; margin:0 0 24px; background:linear-gradient(110deg,#edf8f4,#fff); }
.agent-card>div { flex:1; }
.agent-card p { font-size:12px; color:var(--muted); margin:3px 0 0; }
.agent-avatar { width:40px; height:40px; border-radius:50%; display:grid; place-items:center; background:#d7eeea; color:var(--accent); font-size:25px; flex-shrink:0; }
.agent-dialog { max-width:780px; }
.agent-runtime { display:flex; gap:12px; align-items:center; }
.agent-chat { min-height:110px; max-height:340px; overflow:auto; display:flex; flex-direction:column; gap:14px; }
.agent-message { border:1px solid var(--line); border-radius:12px; padding:14px 16px; max-width:94%; white-space:pre-wrap; font-size:13px; line-height:1.7; }
.agent-message.user { align-self:flex-end; background:#edf6f4; border-color:#cee5df; }
.agent-message.assistant { align-self:flex-start; background:#f6f8f9; }
.agent-message strong { display:block; color:var(--accent); font-size:11px; margin-bottom:5px; }
#agent-activation { display:block; margin:0; }
#agent-activation p { margin:0 0 14px; }
#agent-progress { width:100%; accent-color:var(--accent); }
#agent-form { display:flex; flex-direction:column; gap:14px; }
.toast.error { background:#68282c; border-color:#8e4045; color:white; }
@media(max-width:1200px) { .plan-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:650px) { .agent-card{flex-wrap:wrap;} .agent-card>.button{margin-left:55px;} .domain-summary{align-items:flex-start;flex-direction:column;} .plan-grid{grid-template-columns:1fr;} .web-card{padding:21px;} .address-symbol{display:none;} .address-form>.address-input{flex-basis:100%;} .security-strip{gap:7px;} .nav-divider{display:none;} }

/* Own per-app intent models and explicit local learning. */
.agent-capability-header { display: grid; gap: 4px; margin-top: 18px; }
.agent-capabilities { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.agent-capabilities .button { font-size: 12px; padding: 8px 11px; }
.agent-learning { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.agent-learning summary { cursor: pointer; font-weight: 650; color: var(--accent); }
.agent-learning form { display: grid; gap: 8px; margin: 12px 0; }
.agent-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.agent-draft { width: 100%; min-height: 140px; margin-top: 8px; white-space: pre-wrap; }
.agent-message .agent-recognition { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.agent-boundary { margin-top: 18px; }
.agent-dialog[open] { display: flex; flex-direction: column; max-height: 92dvh; overflow: hidden; }
.agent-dialog .dialog-header, .agent-dialog .dialog-actions { flex: 0 0 auto; background: white; }
.agent-dialog .dialog-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.agent-dialog .dialog-body > * { flex-shrink: 0; }
.agent-dialog #agent-form { display: grid; gap: 16px; }
