:root {
  color-scheme:light; --ink:#071e50; --ink2:#263f6d; --muted:#6e809e;
  --bg:#f7faff; --white:#fff; --tint:#edf5ff; --line:#e1ebf8;
  --blue:#0755d4; --blue2:#4c8cf0; --danger:#b43444;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif;
  font-synthesis:none;-webkit-font-smoothing:antialiased;
}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}
button,input,textarea,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #90b7ff;outline-offset:2px}
.hidden{display:none!important}.app-shell{max-width:780px;min-height:100dvh;margin:auto;background:var(--white);box-shadow:0 0 60px #0c3e9010}
main{padding-bottom:18px}.topbar{min-height:87px;display:flex;justify-content:space-between;align-items:center;padding:env(safe-area-inset-top,0px) 34px 0}
.brand{display:flex;align-items:center;gap:12px;font-weight:850;letter-spacing:-.8px;font-size:23px}.brand-light{color:var(--blue2);font-weight:420}
.brand-mark,.login-emblem{background:linear-gradient(145deg,#0c65e2,#003eae);border-radius:13px;color:#fff;display:grid;place-items:center;width:42px;height:42px;font-size:29px;font-weight:300;box-shadow:0 5px 15px #003eae22}
.icon-button{border:1px solid #d8e6fb;background:#f8fbff;border-radius:50%;height:39px;width:39px;color:var(--ink);font-size:20px}
.hero{padding:26px 34px 24px}.eyebrow,.section-eyebrow{font-size:10px;letter-spacing:2px;font-weight:750;color:#5576a6;margin:0 0 12px}
.hero h1{font-size:clamp(32px,5.1vw,45px);letter-spacing:-2px;line-height:1.12;font-weight:780;margin:0}
.hero h1 em,.login-page h1 em{font-style:normal;color:var(--blue2);font-weight:580}.hero p{font-size:14px;color:var(--muted);margin:13px 0 0}
.hero .demo-label{margin-top:11px;color:#0554ca;font-size:10px;font-weight:740;line-height:1.4}
.voice-panel{background:linear-gradient(115deg,#eff6ff,#f6faff);color:var(--ink);margin:0 34px;padding:14px 15px 11px;border:1px solid #e4efff;border-radius:19px}
.quick-label{display:block;font-size:10px;font-weight:760;letter-spacing:1.7px;color:#6885b2;margin:0 0 9px 3px}
.quick-compose{display:flex;align-items:center;gap:9px;padding:5px 5px 5px 8px;background:#fff;border:1px solid #d7e6fc;border-radius:36px;min-height:55px}
.mic-button{background:#e5f0ff;color:var(--blue);width:40px;height:40px;flex:none;display:grid;place-items:center;font-size:25px;border:0;border-radius:50%;font-weight:700}
.mic-button.listening{background:#cde1ff;box-shadow:0 0 0 7px #a9c9fa35;animation:pulse 1.2s infinite alternate}
@keyframes pulse{to{box-shadow:0 0 0 13px #a9c9fa20}}
.quick-compose textarea{flex:1;min-width:0;max-height:96px;resize:none;outline:0;border:0;background:transparent;color:var(--ink);font-size:13px;line-height:1.4;padding:9px 0;height:37px}
.quick-compose textarea::placeholder{color:#788aa6}.send-button{width:40px;height:40px;flex:none;border:0;border-radius:50%;background:linear-gradient(130deg,#126cf3,#064bbd);color:#fff;font-size:22px;display:grid;place-items:center;padding:0 2px 0 0}
.quick-hint{color:#6c85a9;font-size:10px;margin:8px 0 0 3px}.calendar-panel,.appointments{padding:30px 34px 0}
.section-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-eyebrow{margin-bottom:6px}
.section-header h2,.modal h2{font-size:22px;letter-spacing:-.7px;margin:0;font-weight:770}.calendar-nav{display:flex;align-items:center;gap:5px}
.calendar-nav button{background:#f9fbff;color:var(--ink);border:1px solid #dae7fc;border-radius:10px;padding:7px 11px;min-height:35px}
.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:21px}.day-button{border:1px solid transparent;background:#f0f6ff;color:var(--ink);border-radius:14px;min-height:75px;padding:7px 1px;display:flex;flex-direction:column;align-items:center;gap:8px}
.day-button .dow{font-size:10px;color:#6f89b3;text-transform:uppercase}.day-button .dom{font-size:18px;font-weight:700}.day-button .dot{width:5px;height:5px;border-radius:50%;background:#619af1}
.day-button.selected{background:linear-gradient(140deg,#075cdd,#003fac);color:#fff}.day-button.selected .dow{color:#d8e7ff}.day-button.selected .dot{background:#fff}
.day-button.today:not(.selected){border-color:#8bb6fb}
.selected-day{margin:22px 34px 0;padding:17px;background:#eff6ff;border-radius:18px;border:1px solid #e9f2ff}
.selected-day-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}.selected-day h3{font-size:16px;font-weight:800;letter-spacing:-.4px;margin:0 0 5px}.selected-day-top p{font-size:12px;color:var(--muted);margin:0}
.day-add{background:#dceaff;color:#0550bd;border:0;border-radius:12px;min-height:35px;display:flex;align-items:center;gap:7px;padding:7px 10px;flex:none;font-size:11px;font-weight:760}
.day-add span{background:#0755d4;color:#fff;font-size:18px;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;line-height:1}
.day-event-list{display:flex;flex-direction:column;gap:8px}.day-event-list .event-row{background:#fff;border:1px solid #ebf1fc;border-radius:12px;padding:10px 12px;min-height:65px}
.day-event-list .event-row .when{width:45px}.day-event-list .event-title{font-size:12px}.day-event-list .event-meta{font-size:10px}.day-empty{background:#fff;border:1px dashed #c9daf5;color:#657f9f;font-size:12px;line-height:1.5;padding:17px 13px;text-align:center;border-radius:12px}
.appointments{padding-top:29px}.circle-add{border:0;background:#e4efff;border-radius:50%;height:37px;width:37px;font-size:27px;color:var(--blue)}
.filter-bar{display:flex;gap:7px;margin:17px 0 16px;overflow-x:auto;scrollbar-width:none}.filter{background:#eef5ff;color:#5476a4;border:0;border-radius:22px;padding:9px 13px;font-size:12px;white-space:nowrap}.filter.active{background:var(--blue);color:#fff}
.event-list{min-height:100px}.day-label{display:flex;gap:9px;align-items:center;text-transform:uppercase;font-size:10px;font-weight:750;letter-spacing:.6px;color:#6d87ae;margin:16px 0 8px}.day-label:first-child{margin-top:0}.day-label:after{content:'';height:1px;background:var(--line);flex:1}
.event-row{display:flex;align-items:center;gap:12px;min-height:72px;padding:11px 9px;border-bottom:1px solid #eaf0f9;text-align:left}.event-list>.event-row{border:1px solid #edf2f9;border-radius:12px;margin:0 0 7px}
.event-row .when{width:49px;flex:none;color:var(--ink);font-size:13px;font-weight:780;letter-spacing:-.4px}.event-accent{height:36px;width:4px;border-radius:4px;background:#3984f0;flex:none}.event-accent.trabalho{background:#126cf3}.event-accent.outros{background:#86b7ff}.event-main{flex:1;min-width:0}.event-title{font-size:13px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-meta{font-size:11px;color:var(--muted);margin-top:5px}
.event-edit{border:0;background:#f0f6ff;color:#3b6dad;border-radius:9px;min-width:31px;height:32px;font-size:18px}.event-row.past{opacity:.65}
.empty{padding:25px 17px;text-align:center;border-radius:15px;background:#f4f8ff}.empty-icon{font-size:23px;margin-bottom:7px}.empty h3{font-size:15px;margin:0 0 6px}.empty p{font-size:12px;color:var(--muted);margin:0}
.app-footer{margin:31px 34px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;padding:18px 0;font-size:10px;color:#879ab7}
.login-page{min-height:100dvh;padding:clamp(60px,16vh,140px) 34px 40px;display:flex;flex-direction:column;align-items:flex-start}.login-emblem{height:62px;width:62px;font-size:45px;border-radius:19px;margin-bottom:45px}.login-page .eyebrow{margin-bottom:12px}
.login-page h1{font-size:clamp(35px,7vw,55px);line-height:1.14;letter-spacing:-2px;margin:0 0 17px}.login-page>.muted{font-size:15px;max-width:430px;line-height:1.7;color:var(--muted)}.login-form{width:100%;max-width:400px;margin:40px 0}.login-form label,.dialog-content label{display:block;color:var(--ink2);font-size:12px;font-weight:760;margin:16px 0 7px}.login-form input,.dialog-content input,.dialog-content textarea,.dialog-content select{border:1px solid #dbe6f6;background:#fbfdff;border-radius:11px;min-height:44px;padding:11px 12px;display:block;width:100%;color:var(--ink);font-size:14px}
.dialog-content textarea{resize:vertical}.login-form input{margin-bottom:13px}.btn{border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;font-size:13px;font-weight:740;padding:12px 18px;border:0}.btn.primary{background:var(--blue);color:#fff}.login-form .btn{width:100%;justify-content:space-between}.login-footer{margin-top:auto;color:#9eacc2;font-size:11px}
.modal{width:min(93vw,520px);max-height:92dvh;overflow-y:auto;position:fixed;border:1px solid var(--line);border-radius:21px;padding:0;background:white;color:var(--ink);box-shadow:0 22px 70px #092d702a}.modal::backdrop{background:#11264b89;backdrop-filter:blur(3px)}.dialog-content{padding:24px}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}.modal-close{border:0;border-radius:50%;background:var(--bg);color:var(--ink);font-size:24px;height:33px;width:33px;line-height:1}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.two-fields input,.two-fields select{min-width:0}.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px;align-items:center}.modal-actions .btn{flex:1}.ghost{background:transparent;border:0}.danger{color:var(--danger);font-size:13px;font-weight:760}.small-hint{font-size:11px;color:#7185a5;line-height:1.6;margin:15px 0 0}
.settings-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}.settings-item strong{font-size:14px}.settings-item p{font-size:12px;color:var(--muted);margin:7px 0 0;line-height:1.5}.outline{border:1px solid #b4ceee;color:var(--ink);background:#fff}.settings-link{width:100%;border:0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:17px 0;text-align:left;background:transparent;color:var(--ink);font-size:13px;font-weight:650}.settings-link.logout{color:var(--danger)}
.toast{position:fixed;z-index:50;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));width:max-content;max-width:90vw;transform:translate(-50%,150px);border-radius:12px;padding:13px 17px;background:#073c99;color:white;font-size:13px;box-shadow:0 8px 26px #0003;opacity:0;pointer-events:none;transition:transform .2s,opacity .2s}.toast.show{transform:translate(-50%,0);opacity:1}
@media(max-width:460px){.topbar{min-height:73px;padding-inline:22px}.hero{padding:21px 22px 22px}.hero h1{font-size:35px;letter-spacing:-1.6px}.voice-panel{margin-inline:20px;padding:12px;border-radius:16px}.quick-compose{gap:6px}.quick-compose textarea{font-size:12px}.mic-button,.send-button{width:35px;height:35px}.calendar-panel,.appointments{padding-inline:21px}.calendar-panel{padding-top:27px}.appointments{padding-top:25px}.section-header h2{font-size:21px}.week-strip{gap:4px;margin-top:19px}.day-button{min-height:69px}.selected-day{margin:19px 20px 0;padding:12px}.selected-day h3{font-size:14px}.day-add{font-size:10px;padding:6px 7px}.day-add span{width:20px;height:20px}.app-footer{margin-inline:21px}.dialog-content{padding:20px}.two-fields{gap:8px}.dialog-content input,.dialog-content select{font-size:12px;padding:9px 7px}.modal{width:96vw}}
@media(max-width:360px){.brand{font-size:20px}.hero h1{font-size:31px}.day-button .dow{font-size:9px}.day-button .dom{font-size:16px}.selected-day-top{flex-direction:column}.day-add{align-self:flex-start}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.duration-hint{margin:5px 0 4px!important}.send-button:disabled{opacity:.52;cursor:wait}.event-accent.reuniao{background:#0860d7}.event-accent.deslocamento{background:#4993f2}.event-accent.saude{background:#2379cd}.event-accent.tarefa{background:#7daeed}.event-accent.pessoal{background:#a1c4fa}

/* v0.9 — refinamento visual aprovado: branco/azul, composição compacta, foco na mensagem. */
:root{
  --ink:#10234a;--ink2:#34466b;--muted:#687a9a;
  --bg:#f5f8fe;--white:#fff;--tint:#eef5ff;--line:#e4ebf6;
  --blue:#2456d7;--blue2:#527df0;
}
body{background:linear-gradient(180deg,#f2f6fd 0%,#f8faff 100%);}
.app-shell{max-width:620px;box-shadow:0 0 0 1px #eaf0f7,0 18px 80px #132c5b10;min-height:100dvh;}
.topbar{padding:env(safe-area-inset-top,0px) 30px 0;min-height:74px;}
.brand{font-size:20px;letter-spacing:-.85px;gap:10px;}
.brand-mark{height:40px;width:40px;border-radius:13px;font-size:27px;box-shadow:0 5px 15px #1649b522;}
.icon-button{width:42px;height:42px;border:1px solid #e4eafb;background:#fff;box-shadow:0 2px 10px #15336406;}
.hero{padding:26px 30px 22px;}
.eyebrow,.section-eyebrow{color:#6580b2;font-size:10px;letter-spacing:1.8px;font-weight:770;}
.hero .eyebrow{margin-bottom:11px;}
.hero h1{font-size:clamp(30px,4.8vw,36px);letter-spacing:-1.65px;line-height:1.19;font-weight:805;}
.hero h1 em{color:#4c7ce8;font-weight:720;}
.hero p{font-size:13px;line-height:1.5;margin-top:10px;}
.hero .demo-label{font-size:10px;margin-top:8px;letter-spacing:.1px;color:#7183a0;font-weight:560;}
.voice-panel{margin:0 30px;padding:14px;background:#f4f8ff;border-color:#e3ecfb;border-radius:18px;box-shadow:none;}
.quick-label{color:#5676ad;letter-spacing:1.45px;font-size:10px;margin-bottom:8px;}
.quick-compose{border-radius:15px;min-height:54px;gap:8px;border-color:#dfe8f8;padding:5px 6px;box-shadow:0 2px 5px #1b457808;}
.quick-compose:focus-within{border-color:#7aa5f6;box-shadow:0 0 0 3px #2d67e10f;}
.mic-button{border-radius:11px;background:#eff5ff;height:40px;width:40px;color:#2d63d7;}
.quick-compose textarea{font-size:14px;line-height:1.45;height:38px;padding:8px 0;}
.quick-compose textarea::placeholder{color:#8795ae;}
.send-button{width:40px;height:40px;border-radius:11px;background:#2456d7;box-shadow:0 4px 10px #2456d726;}
.quick-hint{margin:9px 2px 0;font-size:11px;color:#7a8baa;line-height:1.45;}
.calendar-panel,.appointments{padding:28px 30px 0;}
.section-header h2,.modal h2{font-size:21px;line-height:1.3;font-weight:790;letter-spacing:-.7px;}
.calendar-nav{gap:5px;}
.calendar-nav button{border-color:#e1e9f8;border-radius:11px;background:white;color:#3b568b;min-height:38px;min-width:38px;padding:8px 11px;font-size:14px;}
.calendar-nav button:hover,.icon-button:hover,.event-edit:hover{background:#ecf4ff;}
.week-strip{margin-top:15px;gap:6px;}
.day-button{background:#f3f7fe;border:1px solid #edf2fb;border-radius:12px;min-height:69px;gap:5px;padding:8px 2px;transition:background .18s,border-color .18s,transform .18s;}
.day-button .dow{font-size:10px;letter-spacing:.1px;color:#8697b6;}
.day-button .dom{font-size:17px;font-weight:760;}
.day-button .dot{height:5px;width:5px;background:#75a4f5;}
.day-button.selected{background:linear-gradient(165deg,#3769e5,#1f4ebc);border-color:#1f4ebc;box-shadow:0 5px 12px #2456d729;}
.day-button.selected .dow{color:#e0eaff;}
.day-button.today:not(.selected){border-color:#a8c5fc;box-shadow:inset 0 0 0 1px #d8e6ff;}
.selected-day{margin:17px 30px 0;padding:18px;background:#f5f9ff;border:1px solid #e7effb;border-radius:17px;}
.selected-day-top{align-items:center;margin-bottom:13px;}
.selected-day h3{font-size:15px;line-height:1.35;letter-spacing:-.35px;}
.selected-day-top p{font-size:11px;}
.day-add{background:#e5efff;color:#2456d7;padding:7px 11px;min-height:39px;border-radius:11px;font-size:12px;white-space:nowrap;font-weight:760;}
.day-add span{width:22px;height:22px;border-radius:8px;font-size:19px;background:#2456d7;}
.day-event-list{gap:7px;}
.day-empty{background:#fff;border:1px dashed #d6e3f6;color:#6d7f9e;border-radius:12px;line-height:1.55;padding:20px 12px;font-size:12px;}
.day-event-list .event-row{background:#fff;border:1px solid #e9eff9;padding:12px;min-height:68px;box-shadow:0 2px 7px #17448a05;}
.day-event-list .event-row .when{width:47px;}
.day-event-list .event-title{font-size:12px;}
.day-event-list .event-meta{font-size:10px;}
.appointments{padding-top:28px;}
.circle-add{height:40px;width:40px;border-radius:12px;background:#e8f1ff;font-weight:400;}
.filter-bar{gap:8px;margin:14px 0 17px;}
.filter{padding:8px 13px;font-size:11px;font-weight:650;background:#f0f5fd;color:#667fa8;}
.filter.active{background:#2859d6;color:white;box-shadow:0 3px 8px #2859d61d;}
.event-list{min-height:68px;}
.day-label{margin-top:10px;color:#6a84ae;}
.event-row{gap:11px;min-height:70px;}
.event-list>.event-row{background:#fff;border:1px solid #e9eff9;border-radius:13px;padding:12px 13px;margin-bottom:8px;box-shadow:0 3px 13px #1a3e7805;}
.event-row .when{font-size:13px;width:49px;}
.event-accent{height:35px;width:4px;background:#3877e9;}
.event-title{font-size:13px;font-weight:750;}
.event-meta{font-size:11px;line-height:1.4;color:#7a8aab;}
.event-edit{width:35px;min-width:35px;height:35px;border-radius:10px;font-size:18px;background:#f3f7ff;color:#5377b8;}
.empty{padding:23px 12px;border:1px dashed #d9e6f8;border-radius:14px;background:#fbfdff;}
.empty-icon{font-size:23px;color:#547ed3;}
.empty h3{font-size:14px;}
.empty p{font-size:11px;}
.app-footer{margin:27px 30px 0;padding:16px 0 24px;font-size:10px;color:#8d9ebb;}
.modal{border-radius:21px;border:1px solid #e9edf7;box-shadow:0 26px 80px #132e6360;}
.dialog-content{padding:25px;}
.dialog-content input,.dialog-content textarea,.dialog-content select{background:#fafcff;border-color:#dfe7f5;border-radius:12px;}
.btn.primary{background:#2456d7;box-shadow:0 4px 12px #285adb21;}
.login-page{padding-inline:30px;}
.toast{background:#193d91;border-radius:14px;line-height:1.4;}
@media(max-width:460px){
 .topbar{min-height:70px;padding-inline:20px;}
 .brand{font-size:19px;}
 .brand-mark{height:37px;width:37px;border-radius:12px;font-size:25px;}
 .hero{padding:22px 20px 19px;}
 .hero h1{font-size:32px;letter-spacing:-1.4px;}
 .voice-panel{margin-inline:16px;padding:12px;border-radius:16px;}
 .quick-compose textarea{font-size:13px;}
 .quick-hint{font-size:10px;}
 .calendar-panel,.appointments{padding-inline:20px;}
 .calendar-panel{padding-top:24px;}
 .appointments{padding-top:24px;}
 .section-header h2{font-size:19px;}
 .week-strip{gap:4px;margin-top:14px;}
 .day-button{min-height:66px;padding:7px 1px;gap:5px;border-radius:11px;}
 .day-button .dom{font-size:17px;}
 .selected-day{margin:16px 16px 0;padding:14px;}
 .selected-day h3{font-size:14px;}
 .selected-day-top{gap:8px;}
 .day-add{min-height:37px;padding:6px 8px;font-size:11px;}
 .app-footer{margin-inline:20px;}
 .dialog-content{padding:20px;}
 .modal{width:95vw;max-height:90dvh;}
}
@media(max-width:360px){
 .hero h1{font-size:29px;}
 .calendar-panel,.appointments{padding-inline:15px;}
 .selected-day{margin-inline:12px;}
 .week-strip{gap:3px;}
 .day-button .dow{font-size:9px;}
 .day-add{font-size:10px;}
 .selected-day-top{flex-wrap:wrap;}
 .selected-day-top .day-add{margin-left:auto;}
 .quick-hint{font-size:9.5px;}
}

/* v0.9.1 — consulta de agenda integrada ao campo de mensagens */
.query-result{margin:14px 26px 2px;background:#f1f6ff;border:1px solid #dce9ff;border-radius:18px;padding:18px 20px;color:#0d2f73;}
.query-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.query-top h2{font-size:17px;letter-spacing:-.35px;margin:4px 0 7px;line-height:1.3;}
.query-close{flex-shrink:0;border:1px solid #d7e3f8;border-radius:9px;width:32px;height:32px;background:#fff;color:#5975a6;font-size:20px;line-height:1;}
.query-result p#query-summary{font-size:12px;color:#536f9d;line-height:1.5;margin:2px 0 9px;}
.query-items{display:grid;gap:7px;}
.query-item{display:flex;align-items:center;gap:13px;padding:10px 12px;background:#fff;border:1px solid #e3edff;border-radius:11px;line-height:1.4;}
.query-time{font-size:12px;font-weight:800;color:#2358cf;min-width:42px;}
.query-event{font-size:12px;font-weight:700;color:#17315b;overflow-wrap:anywhere;}
.query-listen{border:1px solid #d7e7fc;color:#2455b7;background:#fff;border-radius:9px;font-size:11px;font-weight:700;padding:8px 11px;margin-top:12px;}
@media(max-width:460px){.query-result{margin:12px 16px 2px;padding:14px 13px}.query-top h2{font-size:15px}}
