@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap");

:root{
  --bg:#f4f8fa;
  --surface:#ffffff;
  --surface-soft:#f8fbfc;
  --ink:#1e2b3c;
  --ink-strong:#1c3661;
  --muted:#6f7f91;
  --line:#dbe8eb;
  --brand:#1c3661;
  --brand-2:#274e87;
  --accent:#99c0c3;
  --accent-strong:#5fa8ad;
  --warm:#5f5143;
  --shadow:0 16px 36px rgba(28, 54, 97, .08);
  --shadow-soft:0 8px 22px rgba(28, 54, 97, .06);
  --radius:8px;
  --red:#c22d2d;
  --red-2:#ee5b3d;
  --red-bg:#fff3f1;
  --orange:#b54708;
  --orange-bg:#fff7ed;
  --green:#0f6b4b;
  --green-bg:#effaf5;
  --blue:#1c3661;
  --blue-bg:#eef6f7;
  --purple:#5f5143;
  --purple-bg:#f7f2ed;
}

*{box-sizing:border-box}

html{background:var(--bg)}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(153,192,195,.28), transparent 34%),
    linear-gradient(180deg,#ffffff 0,#f4f8fa 320px,var(--bg) 100%);
  color:var(--ink);
  font-family:Poppins,"Segoe UI",ui-sans-serif,system-ui,-apple-system,Roboto,Arial,sans-serif;
  font-size:14px;
}

.loginScreen{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}

.loginCard{
  width:min(430px,100%);
  display:grid;
  gap:12px;
  padding:30px;
  border:1px solid rgba(153,192,195,.55);
  border-radius:8px;
  background:rgba(255,255,255,.94);
  box-shadow:0 22px 55px rgba(28,54,97,.14);
}

.loginLogoImg{
  width:100%;
  max-width:330px;
  height:auto;
  display:block;
  margin:0 auto 8px;
}

.loginCard h1{
  margin:0;
  color:var(--brand);
  font-size:30px;
  font-weight:900;
}

.loginError{
  margin:0;
  color:var(--red);
  font-size:12px;
  font-weight:800;
}

.wrap,
.appLayout{
  max-width:1320px;
  margin:0 auto;
  padding:26px;
}

.appHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
  padding:18px 20px;
  border:1px solid rgba(153,192,195,.42);
  border-radius:8px;
  background:rgba(255,255,255,.94);
  box-shadow:var(--shadow);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:58px;
}

.brandLogo{
  width:230px;
  max-width:38vw;
  height:auto;
  display:block;
  flex:none;
}

.brand:before{
  content:none;
}

.brand h1{
  margin:1px 0 2px;
  color:var(--brand);
  font-family:Poppins,"Segoe UI",sans-serif;
  font-size:28px;
  font-weight:900;
  letter-spacing:0;
}

.brand p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
}

.headerActions{
  display:flex;
  align-items:center;
  gap:9px;
}

.version{
  position:relative;
  background:#f2f8f8;
  color:var(--brand);
  border:1px solid #cfe2e4;
  border-radius:8px;
  padding:9px 13px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.releaseNotes{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  z-index:20;
  width:min(360px,80vw);
  display:none;
  white-space:normal;
  padding:16px;
  border:1px solid rgba(153,192,195,.55);
  border-radius:8px;
  background:#fff;
  box-shadow:0 20px 44px rgba(28,54,97,.16);
}

.versionHover:hover .releaseNotes,
.versionHover:focus .releaseNotes{
  display:block;
}

.releaseNotes h3{
  margin:0 0 10px;
  color:var(--brand);
  font-size:14px;
}

.releaseNotes p{
  margin:8px 0;
  color:#4f6372;
  font-size:12px;
  line-height:1.45;
}

.iconBtn{
  width:42px;
  min-width:42px;
  height:42px;
  display:grid;
  place-items:center;
  padding:0;
  border-radius:8px;
}

.iconBtn svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.commandBar{
  display:grid;
  grid-template-columns:minmax(320px,1fr) auto;
  gap:12px;
  align-items:stretch;
  margin-bottom:14px;
  padding:14px;
  border:1px solid rgba(153,192,195,.6);
  border-radius:8px;
  background:rgba(255,255,255,.9);
  box-shadow:var(--shadow);
}

.uploadBlock{
  display:grid;
  gap:7px;
}

.uploadBlock p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}

.analysisActions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.analysisActions button{
  width:auto;
  min-width:116px;
  min-height:38px;
  padding:8px 14px;
  white-space:nowrap;
}

button.danger{
  color:var(--red);
  border-color:#efb0a8;
  background:#fff7f5;
}

button.danger:hover{
  color:#fff;
  border-color:var(--red);
  background:linear-gradient(135deg,#b42318,#e2483d);
}

label{
  display:block;
  margin-bottom:7px;
  color:var(--brand);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

input[type=file],
select,
button,
input[type=number],
input[type=text],
input[type=email],
input[type=password]{
  width:100%;
  min-height:42px;
  border:1px solid #c8dde0;
  border-radius:8px;
  background:#fff;
  padding:10px 12px;
  color:var(--ink);
  font:inherit;
  font-size:13px;
}

input[type=file]{
  min-height:46px;
  padding:10px 12px;
  background:#fbfdfd;
}

select:focus,
input:focus{
  outline:3px solid rgba(153,192,195,.35);
  border-color:var(--accent-strong);
}

button{
  border:1px solid var(--brand);
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;
  font-weight:900;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}

button:hover{
  background:linear-gradient(135deg,var(--brand-2),#38679e);
  border-color:var(--brand-2);
  box-shadow:0 8px 18px rgba(0,51,102,.16);
  transform:translateY(-1px);
}

button:disabled{
  cursor:not-allowed;
  opacity:.65;
  transform:none;
  box-shadow:none;
}

button.secondary{
  background:#fff;
  color:var(--brand);
  border-color:#b9cacc;
}

button.secondary:hover{
  background:#eef7f8;
  border-color:var(--accent-strong);
}

button.ghost{
  background:#fff;
  color:var(--brand);
  border-color:#b9cacc;
}

.linkBtn{
  min-height:auto;
  width:auto;
  justify-self:center;
  padding:4px 0;
  border:0;
  background:transparent;
  color:var(--brand);
  box-shadow:none;
  font-size:12px;
}

.linkBtn:hover{
  background:transparent;
  box-shadow:none;
  color:var(--accent-strong);
  transform:none;
}

.userBadge{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:8px 11px;
  border:1px solid #d7e8eb;
  border-radius:999px;
  background:#f7fbfc;
  color:var(--brand);
  font-size:12px;
  font-weight:900;
}

.userIcon{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e9f4f5;
  color:var(--brand);
}

.userIcon svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.settingsFab{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:80;
  width:auto;
  min-width:56px;
  height:56px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 16px;
  border-radius:999px;
  background:linear-gradient(135deg,#effaf5,#d7f0e4);
  color:var(--green);
  border:1px solid #b7e7d1;
  box-shadow:0 18px 34px rgba(15,107,75,.18);
}

.settingsFab span{
  font-size:12px;
  font-weight:900;
}

.settingsFab svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.settingsPanel{
  position:fixed;
  right:22px;
  bottom:88px;
  z-index:81;
  width:min(360px,calc(100vw - 32px));
  display:grid;
  gap:11px;
  padding:16px;
  border:1px solid rgba(153,192,195,.62);
  border-radius:8px;
  background:#fff;
  box-shadow:0 22px 55px rgba(28,54,97,.16);
}

.settingsHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.settingsHead h3{
  margin:0;
  color:var(--brand);
  font-size:16px;
}

.miniIcon{
  width:32px;
  min-width:32px;
  height:32px;
  min-height:32px;
  padding:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  line-height:1;
}

#settingsClose{
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  border-radius:999px;
  background:#f2f8f8;
  border-color:#cfe2e4;
  color:var(--brand);
  font-size:22px;
  font-weight:800;
  box-shadow:none;
}

#settingsClose:hover{
  background:#e7f3f4;
  border-color:var(--accent-strong);
  color:var(--brand);
  box-shadow:0 6px 14px rgba(28,54,97,.10);
}

.settingsNote{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.settingsBlock{
  display:grid;
  gap:9px;
  margin-top:4px;
  padding-top:13px;
  border-top:1px solid var(--line);
}

.settingsBlock h4{
  margin:0;
  color:var(--brand);
  font-size:13px;
}

.hidden{display:none!important}

.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.actions button{
  width:auto;
  min-width:110px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin:14px 0 16px;
}

.stat{
  padding:15px 16px;
  box-shadow:var(--shadow-soft);
  border:1px solid rgba(153,192,195,.46);
  border-top:4px solid var(--accent);
}

.stat b{
  display:block;
  margin-bottom:3px;
  color:var(--brand);
  font-size:27px;
  line-height:1;
  font-weight:900;
}

.urgentStat{
  background:linear-gradient(135deg,#fff,var(--red-bg));
  border-color:#f2bbb1;
  border-left-color:var(--red);
}

.urgentStat b,
.urgentPanel h2{
  color:var(--red);
}

.stat span{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.tabs,
.mainMenu{
  position:sticky;
  top:0;
  z-index:5;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:8px;
  margin:14px 0 18px;
  padding:9px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(153,192,195,.52);
  border-radius:8px;
  backdrop-filter:blur(10px);
  box-shadow:var(--shadow-soft);
}

.tab{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  background:#f8fbfc;
  color:var(--brand);
  border:1px solid #d6e6e8;
  border-radius:6px;
  font-size:13px;
  font-weight:900;
}

.tab.active{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;
  border-color:transparent;
}

.menuTab{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.menuTab svg{
  width:17px;
  height:17px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

section.panel{display:none}
section.panel.active{display:block}

.urgentPanel{
  margin:14px 0 16px;
}

.urgentPanel .panelHeader{
  margin-bottom:10px;
  padding:14px 16px;
  background:linear-gradient(135deg,#fff,var(--red-bg));
  border:1px solid #f0bbb4;
  border-left:5px solid var(--red);
  border-radius:8px;
}

.panelHeader{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin:4px 0 12px;
}

.panelHeader h2{
  margin:0;
  color:var(--brand);
  font-size:19px;
  font-weight:900;
  letter-spacing:0;
}

.panelHeader p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}

.panelControl{
  min-width:260px;
}

.planningControls{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.weekNav{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:42px;
}

.weekLabel{
  min-width:190px;
  padding:9px 12px;
  border:1px solid #d6e6e8;
  border-radius:8px;
  background:#fff;
  color:var(--brand);
  font-size:12px;
  font-weight:900;
  text-align:center;
}

.todayBtn{
  width:auto;
  min-height:36px;
  padding:8px 11px;
  font-size:12px;
}

.panelControl label{
  margin-bottom:6px;
}

.panelHeader.compact{
  margin:0 0 10px;
}

.dashboardHero{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:stretch;
  margin:4px 0 14px;
  padding:22px;
  border:1px solid rgba(153,192,195,.52);
  border-radius:8px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(239,250,245,.94)),
    linear-gradient(90deg,rgba(28,54,97,.08),rgba(153,192,195,.16));
  box-shadow:var(--shadow);
}

.eyebrow{
  display:inline-flex;
  margin-bottom:8px;
  padding:5px 9px;
  border-radius:999px;
  background:#dcecee;
  color:var(--brand);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.dashboardHero h2{
  margin:0;
  color:var(--brand);
  font-size:26px;
  font-weight:900;
}

.dashboardHero p{
  max-width:660px;
  margin:7px 0 0;
  color:var(--muted);
  font-weight:650;
}

.heroMetric{
  min-width:180px;
  display:grid;
  place-items:center;
  padding:16px;
  border-radius:8px;
  background:#fff;
  border:1px solid #cfe2e4;
}

.heroMetric b{
  color:var(--green);
  font-size:42px;
  line-height:1;
  font-weight:900;
}

.heroMetric span{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.dashboardGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.dashboardPanel{
  padding:16px;
  box-shadow:var(--shadow-soft);
}

.dashboardList{
  display:grid;
  gap:8px;
}

.dashRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-left:4px solid var(--accent);
  border-radius:8px;
  background:#fff;
}

.dashRow.red{border-left-color:var(--red);background:linear-gradient(135deg,#fff,var(--red-bg))}
.dashRow.orange{border-left-color:var(--orange);background:#fffaf3}
.dashRow.blue{border-left-color:var(--blue);background:var(--blue-bg)}

.dashRow h3{
  margin:0 0 3px;
  color:var(--ink-strong);
  font-size:13px;
  font-weight:900;
}

.dashRow p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.dashRow button{
  width:auto;
  min-width:86px;
  min-height:34px;
  padding:7px 10px;
  font-size:12px;
}

.list{display:grid;gap:10px}

.item{
  padding:15px;
  border-left:5px solid #cbd7da;
  box-shadow:none;
}

.item.red{
  border-left-color:var(--red);
  background:linear-gradient(135deg,#fff,#fff7f5);
}
.item.orange{border-left-color:var(--orange);background:#fffaf3}
.item.green{border-left-color:var(--green);background:#f4fbf7}
.item.blue{border-left-color:var(--blue);background:var(--blue-bg)}
.item.purple{border-left-color:var(--purple);background:var(--purple-bg)}

.itemTop{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.item h3{
  margin:0 0 7px;
  color:var(--ink-strong);
  font-size:16px;
  font-weight:900;
}

.item p{
  margin:4px 0;
  color:#304657;
  font-size:13px;
  line-height:1.45;
}

.badge{
  display:inline-flex;
  gap:6px;
  align-items:center;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}

.b-red{background:linear-gradient(135deg,#fde8e4,#ffe9df);color:var(--red)}
.b-orange{background:#fee9cf;color:var(--orange)}
.b-green{background:#dff4ea;color:var(--green)}
.b-blue{background:#dcecee;color:var(--blue)}
.b-purple{background:#efe7df;color:var(--warm)}
.b-gray{background:#eef2f2;color:#53636d}

.meta{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:9px;
}

table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow);
}

th,
td{
  padding:11px 12px;
  border-bottom:1px solid var(--line);
  font-size:13px;
  text-align:left;
  vertical-align:top;
}

th{
  background:var(--brand);
  color:#fff;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

tr:nth-child(even) td{background:#fbfdfd}
tr:last-child td{border-bottom:0}

.empty{
  padding:28px;
  text-align:center;
  color:var(--muted);
  box-shadow:none;
}

.notice{
  margin-bottom:14px;
  padding:13px 14px;
  background:#fff8e8;
  border:1px solid #efd39b;
  border-radius:8px;
  color:#815b1c;
  font-size:13px;
}

.advanced{
  margin-top:12px;
  padding:14px;
  border-top:4px solid var(--accent);
}

.advancedGrid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.advancedActions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}

.advancedActions button{
  width:auto;
  min-height:36px;
  padding:8px 11px;
  font-size:12px;
}

.small{
  color:var(--muted);
  font-size:12px;
}

.timelineGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.timelineBox{padding:15px}

.timelineBox h3{
  margin:0 0 10px;
  color:var(--brand);
  font-size:15px;
  font-weight:900;
}

.timeline{
  display:grid;
  gap:9px;
  margin-left:12px;
  padding-left:14px;
  border-left:3px solid var(--accent);
}

.tl{
  position:relative;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
}

.tl:before{
  content:"";
  position:absolute;
  left:-21px;
  top:16px;
  width:10px;
  height:10px;
  background:var(--brand);
  border:2px solid var(--bg);
  border-radius:50%;
}

.tl.travel{background:#f6f9f9;color:#53636d}
.tl.proposed{background:var(--blue-bg);border-color:var(--accent)}
.tl.pause{background:#fff8e8;border-color:#efd39b}
.tl.return{background:#f7f2ed;border-color:#dfd2c5}

.tlTime{
  margin-bottom:3px;
  color:var(--brand);
  font-size:12px;
  font-weight:900;
}

.tlTitle{
  font-size:14px;
  font-weight:900;
}

.tlSub{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
}

.verdict{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:8px;
  font-weight:900;
}

.verdict.ok{background:var(--green-bg);color:var(--green);border:1px solid #b7e7d1}
.verdict.warn{background:var(--orange-bg);color:var(--orange);border:1px solid #f2c18c}
.verdict.bad{background:var(--red-bg);color:var(--red);border:1px solid #efb0a8}

.miniBtn{
  width:auto;
  min-height:34px;
  margin-top:8px;
  padding:7px 10px;
  border-radius:6px;
  font-size:12px;
}

.decisionRow{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:10px;
}

.decisionRow .miniBtn{
  margin-top:0;
}

.ghostMini{
  background:#fff;
  color:#6b3f35;
  border-color:#e3c9c2;
}

.smartCard{
  padding:15px;
  border-left:5px solid var(--orange);
  box-shadow:none;
}

.smartCard.red{
  border-left-color:var(--red);
  background:linear-gradient(135deg,#fff,var(--red-bg));
}
.smartCard.green{border-left-color:var(--green)}

.smartHeader{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:12px;
}

.smartTitle h3{
  margin:0 0 5px;
  color:var(--brand);
  font-size:16px;
  font-weight:900;
}

.smartTitle p{
  margin:0;
  color:#455b6a;
  font-size:13px;
}

.clientLine{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.clientLine h3{
  margin:0;
}

.clientMeta{
  margin-top:7px!important;
  color:var(--ink-strong)!important;
  font-weight:850;
}

.callBtn{
  width:34px;
  height:34px;
  display:inline-grid;
  place-items:center;
  flex:none;
  border:1px solid #b7e7d1;
  border-radius:50%;
  background:linear-gradient(135deg,#effaf5,#d8f5e7);
  color:var(--green);
  text-decoration:none;
  box-shadow:0 8px 16px rgba(15,107,75,.12);
}

.callBtn:hover{
  border-color:var(--green);
  transform:translateY(-1px);
}

.callBtn svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.callBtn.smallCall{
  width:27px;
  height:27px;
  box-shadow:none;
}

.callBtn.smallCall svg{
  width:14px;
  height:14px;
}

.optionGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:12px;
}

.advanceDecision{
  display:grid;
  grid-template-columns:minmax(240px,.72fr) minmax(0,1.5fr);
  gap:12px;
  margin-top:13px;
}

.moveFlow{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:10px;
  align-items:center;
  margin-top:12px;
  padding:10px 12px;
  border:1px solid #cfe4e7;
  border-radius:8px;
  background:#f7fbfc;
  color:var(--brand);
  font-size:12px;
  font-weight:800;
}

.moveFlow b{
  display:block;
  margin-bottom:3px;
  color:var(--muted);
  font-size:10px;
  text-transform:uppercase;
}

.moveArrow{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--brand);
  color:#fff;
  font-size:18px;
  font-weight:900;
}

.currentBox{
  padding:14px;
  border:1px solid #d7e8eb;
  border-radius:8px;
  background:linear-gradient(180deg,#fff,#f7fbfc);
}

.boxLabel{
  display:inline-flex;
  margin-bottom:10px;
  padding:5px 9px;
  border-radius:999px;
  background:#e9f4f5;
  color:var(--brand);
  font-size:11px;
  font-weight:900;
}

.currentBox b{
  display:block;
  color:var(--brand);
  font-size:16px;
}

.currentBox span:not(.boxLabel){
  display:block;
  margin-top:4px;
  color:var(--green);
  font-size:18px;
  font-weight:900;
}

.currentBox p{
  margin:10px 0 0;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.choiceGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.option{
  padding:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
}

.option.best{border-color:#a8dbc7;background:linear-gradient(180deg,#fff,#f1fbf6)}
.option.fast{border-color:#fdba74;background:linear-gradient(180deg,#fff,#fff7ed)}
.option.free{border-color:#fde047;background:linear-gradient(180deg,#fff,#fefce8)}
.option.disabled{opacity:.62;background:#f4f6f7}

.option h4{
  margin:0 0 6px;
  color:var(--brand);
  font-size:13px;
  font-weight:900;
}

.targetPlanning{
  margin-bottom:7px;
  padding:6px 8px;
  border-radius:7px;
  background:#eef7f8;
  color:var(--brand);
  font-size:11px;
  font-weight:900;
}

.option p{
  margin:4px 0;
  color:#455b6a;
  font-size:12px;
  line-height:1.35;
}

.choiceTime{
  color:var(--green)!important;
  font-size:18px!important;
  font-weight:900;
}

.topActions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.pillBtn{
  width:auto;
  min-height:34px;
  padding:7px 10px;
  background:#fff;
  color:var(--brand);
  border:1px solid #b9cacc;
  border-radius:999px;
  font-size:12px;
}

.pillBtn.active{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}

.agencyToolbar{
  display:flex;
  gap:12px;
  align-items:end;
  justify-content:space-between;
  margin:0 0 14px;
  padding:14px;
  flex-wrap:wrap;
  box-shadow:none;
}

.agencyToolbar .field{
  min-width:280px;
  flex:1;
}

.agencyDot{
  display:inline-block;
  width:10px;
  height:10px;
  margin-right:6px;
  border-radius:50%;
  vertical-align:-1px;
}

.agencyBadge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 9px;
  border:1px solid transparent;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
}

.agencyStripe{
  height:4px;
  margin:-1px 0 12px;
  border-radius:999px;
}

.cityList{
  display:grid;
  gap:5px;
  margin-top:4px;
}

.cityLine{
  display:flex;
  align-items:center;
  gap:7px;
  color:#53636d;
  font-size:12px;
}

.cityLine:before{
  content:"";
  width:7px;
  height:7px;
  flex:none;
  border-radius:50%;
  background:var(--accent-strong);
}

.orderGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:12px;
}

.orderBox{
  padding:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
}

.orderBox h4{
  margin:0 0 8px;
  color:var(--brand);
  font-size:13px;
  font-weight:900;
}

.orderList{
  display:grid;
  gap:7px;
}

.orderStep{
  display:grid;
  grid-template-columns:26px 62px minmax(0,1fr);
  gap:8px;
  align-items:center;
  min-height:58px;
  padding:9px;
  background:var(--surface-soft);
  border:1px solid #e3eaec;
  border-radius:8px;
  color:#304657;
  font-size:13px;
}

.orderNum{
  min-width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--blue-bg);
  color:var(--brand);
  border-radius:50%;
  font-size:12px;
  font-weight:900;
}

.orderTime{
  color:var(--brand);
  font-size:13px;
  font-weight:900;
}

.orderInfo{
  min-width:0;
}

.orderClient{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--ink-strong);
  font-weight:900;
}

.orderMeta{
  margin-top:2px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.orderHints{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-top:6px;
}

.orderHint{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:3px 7px;
  border:1px solid #dbe5e7;
  border-radius:999px;
  background:#fff;
  color:#53636d;
  font-size:11px;
  font-weight:850;
}

.orderWarn{
  color:var(--red);
  border-color:#f2bbb1;
  background:var(--red-bg);
}

.gainBadge{
  padding:5px 9px;
  background:var(--green-bg);
  color:var(--green);
  border:1px solid #b7e7d1;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
}

.planningShell{
  overflow-x:auto;
  padding:10px;
  border:1px solid #cfe0e5;
  border-radius:10px;
  background:#fff;
  box-shadow:var(--shadow);
}

.planningHint{
  margin:0 0 10px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.planningWeek{
  min-width:1180px;
  display:grid;
  grid-template-columns:68px repeat(7, minmax(148px,1fr));
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:none;
}

.timeHead,
.dayHead{
  position:sticky;
  top:0;
  z-index:4;
  min-height:48px;
  padding:10px 8px;
  border-bottom:1px solid var(--line);
  background:#f7fbfc;
  color:var(--brand);
  font-weight:900;
}

.dayHead span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

.timeCol{
  display:grid;
  grid-template-rows:repeat(12, 64px);
  border-right:1px solid var(--line);
}

.timeTick{
  padding:6px 8px;
  border-bottom:1px dashed #c9d7dc;
  color:#5d6f80;
  font-size:11px;
  font-weight:800;
}

.dayCol{
  position:relative;
  min-height:768px;
  border-right:1px solid var(--line);
  background:repeating-linear-gradient(
    to bottom,
    #fff 0,
    #fff 31px,
    #eef5f7 32px,
    #fff 64px
  );
}

.dayCol:last-child{border-right:0}

.dayHead.weekend,
.dayCol.weekend{
  background:#f8f5f2;
}

.dayCol.weekend{
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.74) 0,
      rgba(255,255,255,.74) 31px,
      rgba(224,213,203,.45) 32px,
      rgba(255,255,255,.74) 64px
    ),
    #f8f5f2;
}

.planEvent{
  position:absolute;
  left:5px;
  right:5px;
  min-height:44px;
  display:block;
  padding:6px 7px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.72);
  border-radius:6px;
  background:linear-gradient(135deg,#145c3d,#1f7a52);
  color:#fff;
  box-shadow:0 5px 12px rgba(28,54,97,.15);
  text-decoration:none;
  cursor:pointer;
}

.planEvent.agence{
  background:linear-gradient(135deg,#5f5143,#7d6b5b);
}

.planEvent.advance{
  background:linear-gradient(135deg,#7149dc,#a979ff);
  box-shadow:0 0 0 2px rgba(167,121,255,.18),0 0 24px rgba(113,73,220,.42);
}

.planEvent.review{
  background:linear-gradient(135deg,#1c3661,#5fa8ad);
}

.planEvent:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(28,54,97,.24);
}

.planEvent strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  font-weight:900;
}

.planEvent span{
  display:block;
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:9.5px;
  font-weight:750;
  opacity:.94;
}

.planEvent .routeHint{
  margin-top:4px;
  color:#fff9d6;
  font-size:10px;
  font-weight:900;
  opacity:1;
}

.historyRow{
  display:grid;
  grid-template-columns:150px minmax(0,1fr) 180px;
  gap:10px;
  align-items:start;
  padding:13px;
  border-left:5px solid var(--accent-strong);
}

.aiReasoning{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-top:12px;
}

.reasonBox{
  min-height:86px;
  padding:10px;
  border:1px solid #dbe8eb;
  border-radius:8px;
  background:#fff;
}

.reasonBox h4{
  margin:0 0 5px;
  color:var(--brand);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.reasonBox p{
  margin:0;
  color:#455b6a;
  font-size:12px;
  line-height:1.35;
}

.reasonBox.good{border-color:#b7e7d1;background:#f4fbf7}
.reasonBox.warn{border-color:#f2c18c;background:#fffaf3}
.reasonBox.bad{border-color:#efb0a8;background:#fff7f5}

.appointmentSheet{
  display:grid;
  gap:12px;
}

.clientOverview{
  display:grid;
  grid-template-columns:minmax(220px,.7fr) minmax(0,1fr);
  gap:12px;
}

.historyRow h3{
  margin:0 0 4px;
  color:var(--ink-strong);
  font-size:14px;
  font-weight:900;
}

.historyRow p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.progressWrap{
  margin:14px 0 0;
  padding:14px 16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow);
}

.progressTop{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  color:#304657;
  font-size:13px;
  font-weight:900;
}

.progressBar{
  height:10px;
  overflow:hidden;
  background:#e3eaec;
  border-radius:999px;
}

.progressFill{
  height:100%;
  width:0%;
  background:var(--accent-strong);
  border-radius:999px;
  transition:width .2s ease;
}

.progressNote{
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
}

@media(max-width:980px){
  .commandBar{grid-template-columns:1fr}
  .actions button{flex:1}
  .stats{grid-template-columns:repeat(2,1fr)}
  .tabs,
  .mainMenu{grid-template-columns:1fr 1fr}
  .dashboardGrid{grid-template-columns:1fr}
  .dashboardHero{display:block}
  .heroMetric{margin-top:14px}
  .advancedGrid{grid-template-columns:1fr 1fr}
  .timelineGrid,
  .optionGrid,
  .choiceGrid,
  .advanceDecision,
  .orderGrid,
  .aiReasoning,
  .clientOverview{grid-template-columns:1fr}
  .moveFlow{grid-template-columns:1fr}
  .moveArrow{transform:rotate(90deg)}
  .planningControls{justify-content:flex-start}
}

@media(max-width:680px){
  .wrap,
  .appLayout{padding:14px}
  .appHeader{align-items:flex-start}
  .brand{align-items:flex-start;flex-direction:column}
  .brandLogo{width:210px;max-width:100%}
  .brand h1{font-size:21px}
  .version{display:none}
  .stats{grid-template-columns:1fr}
  .advancedGrid{grid-template-columns:1fr}
  .panelHeader{display:block}
  .mainMenu{grid-template-columns:1fr}
  .smartHeader,
  .itemTop{display:block}
  .historyRow{grid-template-columns:1fr}
  .orderStep{grid-template-columns:24px minmax(48px,.35fr) minmax(0,1fr)}
  .weekNav{width:100%;flex-wrap:wrap}
  .weekLabel{flex:1;min-width:170px}
  .tabs,
  .mainMenu{position:static}
}
