.admin-view {
  --dash-ink: #191c20;
  --dash-accent: #a43b14;
  --dash-line: #ded4ca;
  --dash-soft: #f3e9db;
  background: #f8f3ee;
  color: var(--dash-ink);
}
.admin-view > header { display: none; }
.admin-view #app { grid-template-columns: clamp(190px, 14.6vw, 244px) minmax(0, 1fr); min-height: 100vh; }
.admin-menu {
  position: sticky; top: 0; height: 100vh; overflow: auto;
  display: flex; flex-direction: column; padding: 24px 12px 20px;
  background: radial-gradient(ellipse at -15% 115%, #7a3f25 0%, transparent 43%), #202528;
}
.dash-brand { display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 30px; font-weight: 750; letter-spacing: -.055em; }
.dash-brand svg { width: 42px; height: 54px; fill: #e66a37; }
.dash-brand small { display: block; font-size: 21px; color: #ff8b58; line-height: 1; font-weight: 500; letter-spacing: normal; }
.dash-brand-caption { color: #d4d1ce; margin: 19px 16px 22px; font-size: 14px; }
.admin-menu nav { display: grid; gap: 6px; margin: 12px 0 28px; }
.admin-menu nav button,.admin-menu nav summary {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 12px;
  width: 100%; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 600; text-align: left;
}
.admin-menu nav details button { padding-left: 47px; font-size: 13px; }
.admin-menu nav summary { list-style: none; }
.admin-menu nav summary::-webkit-details-marker,.dash-dropdown summary::-webkit-details-marker { display:none; }
.admin-menu nav summary span:last-child { margin-left: auto; }
.admin-menu nav [aria-current],.admin-menu nav button:hover,.admin-menu nav summary:hover { background: #8e4428; }
.dash-help { display: flex; align-items: center; gap: 12px; text-align: left; margin-top: auto; background: transparent; color: #fff; font-size: 14px; }
.dash-help small { display: block; font-weight: 400; color: #ddd; margin-top: 4px; }
.admin-workspace { min-width: 0; }
.admin-workspace .admin-content { padding: 18px clamp(12px,1.35vw,24px) 24px; }
.dash-topbar { display: flex; align-items: center; gap: 18px; min-height: 68px; border-bottom: 1px solid var(--dash-line); padding: 10px clamp(14px,2.25vw,36px); }
.dash-search { position: relative; display: flex; align-items: center; gap: 9px; width: min(56%, 600px); margin-right: auto; background: #efe8e1; border: 1px solid #d6cec6; border-radius: 9px; padding: 6px 10px; }
.dash-search input { flex: 1; min-width: 0; background: transparent; border: 0; font: inherit; font-size: 14px; padding: 4px; }
.dash-search kbd { font-size: 12px; white-space: nowrap; border: 1px solid #d8cec5; border-radius: 6px; padding: 2px 5px; }
.dash-dropdown { position: relative; }
.dash-dropdown summary { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; padding: 6px 2px; }
.dash-unread { position: absolute; width: 8px; height: 8px; background: #a43b14; border-radius: 50%; right: 0; top: 3px; }
.dash-profile { border-left: 1px solid var(--dash-line); padding-left: 16px; font-size: 14px; }
.dash-profile small,.dash-task small,.dash-guide small,.dash-steps small { display: block; font-weight: 400; margin-top: 3px; }
.dash-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f1e1cb; color: #4d321d; font-size: 12px; font-weight: 650; flex: none; }
.dash-profile .dash-avatar { width: 40px; height: 40px; background: #c49e6c; color: #211b16; }
.dash-popover { position: absolute; top: calc(100% + 7px); right: 0; z-index: 6; width: min(340px, 85vw); padding: 10px; background: #fffaf5; border: 1px solid var(--dash-line); border-radius: 10px; box-shadow: 0 10px 24px #40271826; }
.dash-search .dash-popover { left: 0; right: auto; width: min(430px, 85vw); }
.dash-popover > button { display: block; width: 100%; margin: 4px 0; text-align: left; }
.dash-welcome { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 220px; padding: 14px clamp(18px,2.1vw,34px); border-radius: 14px; background: #f2e7d9; }
.dash-hero-image { position: absolute; inset: 0 0 0 47%; z-index: -1; background: linear-gradient(90deg,#f2e7d9,transparent 50%),url('welcome.jpg') center 28% / cover no-repeat; }
.dash-hero-image::after { content: ''; position: absolute; right: 8%; top: 15%; width: 75%; height: 110%; border: 2px solid #be5c2e; border-radius: 50%; transform: rotate(-21deg); }
.dash-welcome-copy { width: min(74%, 850px); }
.dash-welcome h1 { font-size: clamp(25px,2.15vw,36px); margin: 0 0 6px; line-height: 1.1; letter-spacing: -.045em; }
.dash-welcome p { max-width: 620px; margin: 0; font-size: 15px; line-height: 1.45; }
.dash-steps { display: flex; gap: clamp(10px,2vw,31px); padding: 0; margin: 15px 0; list-style: none; }
.dash-steps li { display: flex; align-items: center; gap: 9px; padding: 0; font-size: 13px; }
.dash-steps b { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #ead5b7; color: #402b1c; font-size: 16px; }
.dash-steps li:first-child b { background: #075057; color: #fff; }
.dash-welcome-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-outline,.dash-link { background: transparent; color: var(--dash-accent,#a43b14); }
.dash-outline { border-color: currentColor; padding: 6px 12px; }
.dash-link { border-color: transparent; padding: 5px; }
.dash-link:hover { text-decoration: underline; }
.dash-welcome-actions .dash-outline { display: flex; gap: 8px; align-items: center; }
.dash-welcome-actions .dash-link { color: #29343a; text-decoration: underline; }
.dash-dismiss { position: absolute; top: 11px; right: 12px; background: #fffbf0ce; color: #29221b; padding: 0; height: 34px; width: 34px; font-size: 22px; line-height: 1; }
.dashboard-notice { margin: 0 0 18px; background: #f2e7d9; border-radius: 12px; overflow: hidden; }
.dashboard-notice img { display: block; width: 100%; height: 100%; max-height: 280px; object-fit: contain; }
.dash-welcome .dashboard-notice { position: absolute; inset: 0 0 0 64%; margin: 0; display: flex; align-items: center; background: #e9d8c7; border-radius: 0; }
.dash-welcome.has-notice .dash-welcome-copy { width: 62%; }
.dash-grid { display: grid; grid-template-columns: minmax(0,1.62fr) minmax(0,1fr); gap: 18px; margin-top: 18px; }
.dash-primary,.dash-secondary { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dash-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.dash-shortcuts button { min-height: 58px; display: flex; align-items: center; gap: 10px; justify-content: space-between; text-align: left; background: #f3e8d9; border-color: #e2ccb5; color: #201c18; padding: 9px 12px; font-size: clamp(12px,1.04vw,17px); }
.dash-shortcuts button:first-child { background: linear-gradient(180deg,#bb5127,#a23b15); border-color: #a23b15; color: #fff; }
.dash-shortcuts button:not(:first-child) svg { color: var(--dash-accent); }
.dash-shortcuts button:hover,.dash-metric:hover { filter: brightness(.96); }
.dash-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.dash-metric { position: relative; isolation: isolate; overflow: hidden; text-align: left; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; background: #fbf6f0; color: var(--dash-ink); border: 1px solid var(--dash-line); border-radius: 12px; min-height: 103px; padding: 10px; }
.dash-metric svg,.dash-card-heading > svg,.dash-task > svg,.dash-guide > svg { color: var(--dash-accent); flex: none; }
.dash-metric:nth-child(3) svg { color: #246744; }
.dash-metric span { font-size: 12px; }
.dash-metric strong { grid-column: 1 / -1; font-size: clamp(18px,1.7vw,30px); overflow-wrap: anywhere; }
.dash-metric:last-child strong { font-size: clamp(15px,1.25vw,22px); }
.dash-metric::after { position: absolute; content: ''; z-index: -1; inset: auto -4px -1px 36%; height: 29px; background: #ebc9a2; opacity: .75; clip-path: polygon(0 100%,25% 78%,55% 73%,72% 42%,87% 29%,100% 0,100% 100%); }
.dash-metric:nth-child(2)::after { background: #a9c8c7; }
.dash-metric:nth-child(3)::after { background: #b5d1b8; }
.dash-card { min-width: 0; padding: 13px 15px; border: 1px solid var(--dash-line); border-radius: 13px; background: #faf5ef; }
.dash-card-heading { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 10px; }
.dash-card-heading > :last-child:not(div) { margin-left: auto; align-self: center; }
.dash-card-heading h2 { font-size: 19px; letter-spacing: -.025em; margin: 0; }
.dash-card-heading p { font-size: 13px; line-height: 1.4; margin: 3px 0 0; }
.dash-card-heading button,.dash-card-heading small { font-size: 12px; }
.dash-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; text-align: left; }
.dash-table th { background: #f1e7db; }
.dash-table th,.dash-table td { padding: 8px 7px; border-bottom: 1px solid #eae0d5; }
.dash-table td:first-child { min-width: 133px; }
.dash-table td .dash-avatar { margin-right: 3px; }
.dash-table .dash-outline { white-space: nowrap; font-size: 12px; }
.dash-bank { font-weight: 750; white-space: nowrap; color: #554b44; }
.dash-bank.caixa { color: #07508c; }.dash-bank.itau { color: #073675; }.dash-bank.santander,.dash-bank.bradesco { color: #a80d20; }
.dash-pill { display: inline-block; padding: 4px 8px; border-radius: 20px; font-size: 11px; font-weight: 650; background: #dceafa; color: #123b60; }
.dash-pill.pending { background: #f8e5c9; color: #783910; }.dash-pill.success { background: #dcebdc; color: #205138; }
.dash-task,.dash-guide { display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; background: transparent; color: var(--dash-ink); font-size: 13px; font-weight: 500; border: 0; border-bottom: 1px solid #eae0d5; border-radius: 0; min-height: 48px; padding: 8px 4px; }
.dash-task:hover,.dash-guide:hover { background: #f0e5d7; }
.dash-guide:first-of-type { background: #f1e7db; border-radius: 9px; }
.dash-guide-check { color: #7a5d3b; font-size: 17px; }
.dash-task .dash-pill,.dash-guide > span:last-child { margin-left: auto; white-space: nowrap; }
.dash-empty { font-size: 13px; }
.dash-tour { width: min(530px,92vw); border: 1px solid #ded4ca; border-radius: 14px; padding: 22px; color: #191c20; }
.dash-tour::backdrop { background: #0008; }
.dash-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1200px) {
  .dash-primary { padding-top: 10px; }
  .dash-metrics { margin: 12px 0 5px; }
}
@media (max-width: 1120px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-secondary { display: grid; grid-template-columns: 1fr 1fr; }
  .dash-steps { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .admin-view #app { grid-template-columns: 1fr; }
  .admin-menu { position: static; height: auto; padding: 10px 12px; }
  .dash-brand { font-size: 21px; padding: 0; }.dash-brand svg { width: 24px; height: 30px; }.dash-brand small { font-size: 13px; }
  .dash-brand-caption { display: none; }
  .admin-menu nav { display: flex; gap: 4px; margin: 8px 0; flex-wrap: wrap; align-items: flex-start; }
  .admin-menu nav button,.admin-menu nav summary { min-height: 36px; padding: 5px 7px; font-size: 12px; }
  .admin-menu nav svg { width: 16px; height: 16px; }
  .admin-menu nav details button { padding-left: 10px; }
  .dash-help { padding: 5px 4px; font-size: 12px; }.dash-help small { display: none; }
  .dash-topbar { gap: 9px; padding: 8px 10px; }.dash-search { width: auto; flex: 1; }.dash-search kbd,.dash-profile summary > span:nth-child(2) { display: none; }.dash-profile { padding-left: 6px; }
  .dash-welcome { display: grid; padding: 15px; }.dash-welcome-copy,.dash-welcome.has-notice .dash-welcome-copy { width: auto; }.dash-welcome h1 { padding-right: 26px; }
  .dash-hero-image { opacity: .18; inset: 0; }.dash-welcome .dashboard-notice { position: static; margin: 0 36px 12px 0; border-radius: 8px; }.dash-welcome .dashboard-notice img { max-height: 190px; }
  .dash-shortcuts,.dash-metrics,.dash-secondary { grid-template-columns: repeat(2,minmax(0,1fr)); }.dash-shortcuts button:first-child { grid-column: 1 / -1; }
}
@media (max-width: 470px) { .dash-secondary { grid-template-columns: 1fr; }.dash-card-heading { flex-wrap: wrap; }.dash-steps { display: grid; }.dash-grid,.dash-primary,.dash-secondary { gap: 12px; } }
