/* Vigely UI refinement — calm, work-focused product surface */
:root{
  --radius:10px;
  --shadow:0 10px 30px rgba(16,24,40,.07);
}

/* Brand lockup: built from the resilient SVG mark + live text. */
.brand-lockup-ui{display:inline-flex;align-items:center;gap:12px;min-width:0;color:inherit;text-decoration:none}
.brand-lockup-ui .brand-symbol{display:block;width:44px;height:44px;flex:0 0 44px;object-fit:contain}
.brand-lockup-ui>span{display:grid;gap:3px;min-width:0;line-height:1}
.brand-lockup-ui strong{font-size:23px;font-weight:800;letter-spacing:-.055em}
.brand-lockup-ui small{font-size:8px;font-weight:750;line-height:1.25;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap;opacity:.62}
.auth-brand>.brand-lockup-ui{display:inline-flex;align-items:center;align-content:normal;gap:12px;line-height:normal;color:#101828}
.desktop-brand>.brand-lockup-ui{display:inline-flex;align-items:center;align-content:normal}

/* Flatter controls and clearer focus: less component-library gloss. */
.btn{border-radius:8px;background:#e87310;box-shadow:none;transition:background-color .16s ease,transform .16s ease}
.btn:hover{background:#cb6109;transform:translateY(-1px)}
.btn.secondary{border-color:#d7c9b9;background:transparent;color:#b95405}
.btn.ghost{background:transparent}
input,select,textarea,.search{border-radius:8px}
.modal{border-radius:12px;box-shadow:0 24px 70px rgba(16,24,40,.22)}
.icon-btn,.avatar,.round-icon{border-radius:8px}

/* Product rhythm: typography and separators do the grouping. */
.topbar h1{font-weight:750;letter-spacing:-.045em}
.topbar p{max-width:62ch;line-height:1.55}
.section-title{padding-bottom:9px;border-bottom:1px solid var(--line)}
.section-title h2{letter-spacing:-.025em}
.list,.timeline,.mail-list,.mailbox-list{gap:8px}
.list-card,.mail-card,.mailbox-card,.event,.assistant-chat,.mail-toolbar,.assistant-toolbar,.ai-empty,
.document-list-tools,.agenda-calendar,.agenda-overview,.agenda-event-card,.finance-panel,.accounting-panel{
  border-radius:9px!important;box-shadow:none!important;
}
.list-card,.mail-card,.mailbox-card{transition:border-color .16s ease,background-color .16s ease,transform .16s ease}
.list-card:hover,.mail-card:hover,.mailbox-card:hover{border-color:#c9b9a6;transform:translateY(-1px)}

/* Dashboard as a daily workshop brief rather than a stack of React cards. */
.dashboard-screen .dashboard-head{background:transparent!important;border-radius:0!important;box-shadow:none!important}
.dashboard-screen .metric-grid{gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.dashboard-screen .metric{min-height:118px!important;border:0!important;border-right:1px solid var(--line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--ink)!important}
.dashboard-screen .metric:last-child{border-right:0!important}
.dashboard-screen .metric:hover{background:rgba(255,138,36,.055)!important;transform:none!important;box-shadow:none!important}
.dashboard-screen .metric span i{border-radius:7px!important;background:var(--soft)!important;color:#c95f08}
.dashboard-screen .metric strong{font-variant-numeric:tabular-nums;letter-spacing:-.05em}
.vigely-brief{border-radius:10px!important;background:var(--card)!important;box-shadow:none!important}
.vigely-brief>header{border-bottom-color:var(--line)!important}
.brief-recommendation{background:var(--soft)!important}
.priority-item{border-radius:8px!important;box-shadow:none!important}
.priority-item:hover{transform:translateX(2px)!important;box-shadow:none!important}
.dashboard-ask{border-radius:9px!important;background:var(--card)!important;box-shadow:none!important}
.dashboard-ask>div>span{border-radius:7px!important;background:#101828!important}
.dashboard-ask form{border-radius:8px!important;box-shadow:none!important}
.recent-activity{gap:0;border-top:1px solid var(--line)}
.recent-activity article{border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:transparent!important}
.recent-activity article>span{border-radius:7px!important;color:#c95f08!important}

/* Authentication: preserve the working voice demo, remove generic SaaS polish. */
.auth-landing{background:#f6f4ef}
.auth-topbar{height:92px}
.auth-grid{padding-top:54px}
.auth-story h1{max-width:12ch;letter-spacing:-.065em}
.auth-story h1 span{color:#c95f08}
.auth-lede{max-width:56ch}
.auth-card{border-radius:10px!important;box-shadow:0 18px 50px rgba(16,24,40,.09)!important}
.auth-benefits article{border-radius:8px!important;box-shadow:none!important}
.auth-vigely{border-radius:10px!important;box-shadow:none!important}
.auth-voice-orb,.auth-orb-core{border-radius:50%}
.auth-create{border-radius:8px!important}

@media(min-width:900px){
  .screen{padding:38px 48px 58px 292px}
  .screen>.topbar{padding-bottom:32px}
  .topbar h1{font-size:34px}
  .dashboard-head{margin:-38px -48px 30px;padding:38px 48px 12px}
  .dashboard-head .topbar{padding-bottom:30px}
  .bottom-nav{width:244px;padding:26px 16px 20px;background:#121b29}
  .desktop-brand{justify-items:start;min-height:70px;padding:0 10px 20px;margin-bottom:17px}
  .brand-lockup-sidebar{color:#fff}
  .brand-lockup-sidebar .brand-symbol{width:42px;height:42px;flex-basis:42px}
  .brand-lockup-sidebar strong{font-size:22px}
  .brand-lockup-sidebar small{color:#a9b7c8;opacity:1}
  .desktop-nav-label{padding-left:10px;color:#708197}
  .bottom-nav button{min-height:44px;border-radius:7px;padding:0 10px;color:#a9b7c8}
  .bottom-nav button:hover{background:rgba(255,255,255,.05);color:#fff}
  .bottom-nav button.active{background:rgba(255,138,36,.11);color:#fff;box-shadow:inset 2px 0 #ff8a24}
  .bottom-nav .nav-assistant{min-height:48px;margin:5px 0 8px;border:1px solid rgba(255,138,36,.3);border-radius:7px;background:transparent;box-shadow:none}
  .bottom-nav .nav-assistant b{width:28px;height:28px;border-radius:7px;background:#d9680d}
  .bottom-nav .nav-assistant:after{top:8px;border-radius:4px;background:rgba(255,138,36,.12);color:#ffc28a}
  .bottom-nav .nav-assistant.active{background:rgba(255,138,36,.16);box-shadow:inset 2px 0 #ff8a24}
  .desktop-account{padding:17px 9px 0}
}

@media(min-width:1320px){
  .screen{padding-left:318px;padding-right:64px}
  .dashboard-head{margin-left:-64px;margin-right:-64px;padding-left:64px;padding-right:64px}
}

@media(max-width:899px){
  .screen{padding-inline:16px}
  .topbar h1{font-size:26px}
  .bottom-nav{border-radius:14px 14px 0 0;box-shadow:0 -8px 28px rgba(16,24,40,.09)}
  .bottom-nav button{border-radius:7px}
  .bottom-nav .nav-assistant b{border-radius:10px;background:#d9680d;box-shadow:none}
  .dashboard-screen .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:9px;overflow:hidden}
  .dashboard-screen .metric{border-right:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;padding:13px!important}
  .dashboard-screen .metric:nth-child(2n){border-right:0!important}
  .dashboard-screen .metric:nth-last-child(-n+2){border-bottom:0!important}
  .recent-activity article{padding-inline:4px}
}

@media(max-width:720px){
  .auth-topbar{height:78px}
  .brand-lockup-ui{gap:9px}
  .brand-lockup-ui .brand-symbol{width:38px;height:38px;flex-basis:38px}
  .brand-lockup-ui strong{font-size:20px}
  .brand-lockup-ui small{font-size:6.8px;letter-spacing:.065em}
  .auth-grid{padding-top:30px}
  .auth-story h1{font-size:42px}
}

@media(max-width:380px){
  .brand-lockup-ui small{display:none}
  .dashboard-screen .metric-grid{grid-template-columns:1fr}
  .dashboard-screen .metric{border-right:0!important;border-bottom:1px solid var(--line)!important}
  .dashboard-screen .metric:last-child{border-bottom:0!important}
}

@media(prefers-reduced-motion:reduce){
  .btn,.list-card,.mail-card,.mailbox-card{transition:none!important}
  .btn:hover,.list-card:hover,.mail-card:hover,.mailbox-card:hover{transform:none!important}
}
