:root {
  --ink:#202825;
  --muted:#728078;
  --line:#dce2dc;
  --paper:#fff;
  --bg:#f5f6f1;
  --accent:#354e3e;
  --accent-hover:#263e30;
  --soft:#e9eee7;
  --warning:#8e6540;
  --error:#9f3830;
  --radius:8px;
  --font:"Trebuchet MS","PT Sans",sans-serif;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:15px/1.45 var(--font);
  -webkit-font-smoothing:antialiased;
}
button,input,select {
  font:inherit;
}
button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent;
}
button,a {
  touch-action:manipulation;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:default;
  opacity:.45;
}
a {
  color:inherit;
}
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:3px solid #8baf95;
  outline-offset:3px;
}
input:focus,select:focus {
  outline:2px solid #86a991;
  outline-offset:0;
  border-color:#547660;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-size:31px;
  line-height:1.18;
  letter-spacing:-1.1px;
  font-weight:700;
}
h2 {
  font-size:18px;
  letter-spacing:-.35px;
}
h3 {
  font-size:16px;
}
[hidden] {
  display:none!important;
}
.topbar {
  height:88px;
  background:var(--paper);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 max(32px,calc((100vw - 1280px)/2));
  gap:20px;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  font-size:24px;
  font-weight:700;
  line-height:1;
}
.brand-mark {
  display:grid;
  place-items:center;
  background:var(--accent);
  color:white;
  width:38px;
  height:40px;
  border-radius:4px;
  font-size:27px;
  font-weight:400;
}
.account {
  display:flex;
  align-items:center;
  gap:22px;
  max-width:55%;
  font-size:13px;
}
.account>span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.text-button {
  border:0;
  padding:6px 0;
  background:transparent;
  color:var(--muted);
  font-size:13px;
}
.text-button:hover {
  color:var(--ink);
}
.boot {
  padding:100px 24px;
  text-align:center;
  color:var(--muted);
}
.app-wrap {
  max-width:1280px;
  padding:26px 32px 0;
  margin:auto;
}
.demo-banner {
  display:flex;
  align-items:center;
  gap:10px;
  color:#6d765b;
  font-size:12px;
  margin-bottom:20px;
}
.pill {
  font-size:9px;
  font-weight:700;
  letter-spacing:1px;
  border:1px solid #ccd4be;
  border-radius:4px;
  padding:3px 6px;
}
.tabs {
  display:flex;
  border-bottom:1px solid var(--line);
  gap:28px;
  margin-bottom:35px;
}
.tab {
  border:0;
  background:none;
  padding:0 0 17px;
  color:var(--muted);
  font-size:14px;
  white-space:nowrap;
  position:relative;
}
.tab.active {
  color:var(--ink);
  font-weight:700;
}
.tab.active:after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background:var(--accent);
}
.tab-count {
  background:var(--soft);
  border-radius:20px;
  font-size:10px;
  padding:2px 6px;
  margin-left:4px;
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:27px;
}
.page-heading h1 {
  margin:0;
}
.eyebrow {
  display:block;
  color:var(--muted);
  font-size:10px;
  letter-spacing:1.4px;
  font-weight:700;
}
.muted {
  color:var(--muted);
}
.small {
  font-size:12px;
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid transparent;
  border-radius:5px;
  padding:11px 16px;
  font-size:13px;
  font-weight:700;
  line-height:1.3;
  text-decoration:none;
  min-height:42px;
  transition:background .15s,border-color .15s;
}
.button.primary {
  color:white;
  background:var(--accent);
}
.button.primary:not(:disabled):hover {
  background:var(--accent-hover);
}
.button.secondary {
  background:white;
  color:var(--ink);
  border-color:#cbd4cd;
}
.button.secondary:not(:disabled):hover {
  background:#f0f4ef;
}
.full {
  width:100%;
}
.work-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 294px;
  gap:26px;
  align-items:start;
}
.work-form {
  min-width:0;
}
.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px 22px 0;
}
.section-note {
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  margin:9px 22px 20px;
  max-width:540px;
}
label {
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:11px;
  font-weight:700;
  color:#68776e;
}
input,select {
  width:100%;
  min-width:0;
  height:42px;
  border:1px solid #d5ddd5;
  border-radius:4px;
  background:white;
  padding:9px 10px;
  font-size:13px;
  color:var(--ink);
  font-weight:400;
  font-variant-numeric:tabular-nums;
}
select {
  padding-right:24px;
}
input::placeholder {
  color:#929c95;
}
input[type=date] {
  font-size:12px;
  padding-left:9px;
  padding-right:6px;
}
.document-settings {
  margin-top:16px;
  padding:0 22px;
}
.document-settings summary {
  cursor:pointer;
  padding:16px 0;
  font-size:13px;
  font-weight:700;
  display:list-item;
  list-style-position:inside;
}
.document-settings summary>span {
  font-size:11px;
  font-weight:400;
  float:right;
  padding-top:2px;
}
.document-settings .section-note {
  margin:12px 0 19px;
}
.settings-grid {
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr;
  gap:13px;
}
.summary-panel {
  padding:24px;
  position:sticky;
  top:24px;
}
.grand-total {
  font-size:42px;
  letter-spacing:-1.8px;
  font-weight:700;
  line-height:1.15;
  margin:12px 0 4px;
  font-variant-numeric:tabular-nums;
}
.grand-total>span {
  font-size:27px;
  font-weight:400;
  color:var(--muted);
}
.summary-rule {
  height:1px;
  background:var(--line);
  margin:24px 0 20px;
}
.summary-details {
  margin:0;
  font-size:12px;
}
.summary-details>div {
  margin-bottom:16px;
}
.summary-details dt {
  color:var(--muted);
  font-size:10px;
  letter-spacing:.3px;
  margin-bottom:4px;
}
.summary-details dd {
  margin:0;
  line-height:1.5;
}
.review-status {
  margin:6px 0 15px;
  font-size:11px;
  color:var(--muted);
  padding:10px 0;
  border-top:1px solid var(--line);
}
.review-status.ready {
  color:#43634a;
}
.summary-panel .button+.button {
  margin-top:9px;
}
.summary-footnote {
  font-size:10px;
  text-align:center;
  color:var(--muted);
  line-height:1.5;
  margin-top:13px;
}
.message {
  padding:14px 16px;
  border-radius:5px;
  font-size:13px;
  margin-bottom:20px;
  line-height:1.5;
  background:#edf3e9;
  color:#37583d;
  border:1px solid #d6e2d1;
}
.message.error {
  background:#fbf0eb;
  color:var(--error);
  border-color:#ecd4c9;
}
.result-panel {
  border:1px solid #bbd1b9;
  background:#eef5e9;
  border-radius:8px;
  padding:22px;
  margin-bottom:24px;
}
.result-top {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
}
.result-panel h2 {
  font-size:19px;
  margin-bottom:5px;
}
.result-total {
  font-size:27px;
  letter-spacing:-1px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.download-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:17px;
}
.download-actions .button {
  min-height:37px;
  padding:8px 12px;
  font-size:12px;
}
.download-actions .button:first-child {
  background:var(--accent);
  color:white;
  border-color:var(--accent);
}
.download-actions .view-link {
  font-size:12px;
  align-self:center;
  margin-left:5px;
  color:#526c58;
  text-underline-offset:3px;
}
.history-list {
  display:grid;
  gap:12px;
}
.history-item {
  padding:20px 23px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px 25px;
}
.history-title {
  display:flex;
  gap:12px;
  align-items:center;
}
.doc-icon {
  width:33px;
  height:39px;
  display:grid;
  place-items:center;
  border:1px solid #cbd4cd;
  border-radius:3px;
  color:#6d7e71;
  font-size:12px;
  letter-spacing:-.3px;
  font-weight:700;
}
.history-title h3 {
  font-size:14px;
}
.history-title p {
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}
.history-total {
  font-size:23px;
  font-weight:700;
  letter-spacing:-.7px;
  font-variant-numeric:tabular-nums;
  text-align:right;
}
.history-total small {
  display:block;
  font-size:10px;
  color:var(--muted);
  font-weight:400;
  letter-spacing:0;
  margin-top:3px;
}
.history-actions {
  grid-column:1/-1;
  margin-top:3px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.history-actions .download-actions {
  margin-top:0;
}
.delete-document {
  color:var(--error);
  font-size:12px;
  min-height:40px;
  padding:8px 4px;
  white-space:nowrap;
}
.empty-state {
  padding:64px 24px;
  text-align:center;
}
.empty-state .empty-mark {
  font-size:27px;
  font-weight:400;
  color:#8b9c8c;
  margin-bottom:16px;
}
.empty-state h2 {
  font-size:20px;
  margin-bottom:9px;
}
.empty-state p {
  color:var(--muted);
  font-size:13px;
  margin-bottom:22px;
}
.history-loading {
  padding:60px 20px;
  text-align:center;
  color:var(--muted);
}
.profile-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 294px;
  gap:26px;
  align-items:start;
}
.profile-panel {
  padding:23px;
}
.profile-panel>h2 {
  margin-bottom:23px;
}
.profile-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:17px 16px;
}
.profile-field-wide {
  grid-column:1/-1;
}
.profile-footer {
  border-top:1px solid var(--line);
  margin-top:25px;
  padding-top:20px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:13px;
}
.profile-aside {
  display:grid;
  gap:17px;
}
.info-panel {
  padding:23px;
}
.info-panel .eyebrow {
  margin-bottom:15px;
}
.info-panel h3 {
  font-size:14px;
  margin-bottom:9px;
}
.info-panel p {
  font-size:12px;
  line-height:1.65;
}
.info-panel #contract-details {
  border-top:1px solid var(--line);
  padding-top:15px;
  margin-top:16px;
}
.service-line {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  font-size:12px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.service-line:last-child {
  border-bottom:0;
}
.service-line strong {
  white-space:nowrap;
  font-size:13px;
}
.info-panel #service-details+p {
  margin-top:17px;
}
.profile-panel .message {
  margin-top:20px;
  margin-bottom:0;
}
.login-wrap {
  max-width:1000px;
  margin:66px auto;
  padding:0 28px;
}
.login-card {
  max-width:500px;
  margin:auto;
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  padding:38px;
}
.login-card h1 {
  font-size:34px;
  margin:0;
}
.login-form {
  display:grid;
  gap:16px;
  margin-top:27px;
}
.login-form label {
  font-size:12px;
}
.login-form input {
  height:46px;
  font-size:15px;
}
.login-form .message {
  margin:0;
}
.login-form .button {
  margin-top:3px;
  min-height:46px;
}
.demo-login {
  border-top:1px solid var(--line);
  margin-top:29px;
  padding-top:24px;
}
.demo-actions {
  display:flex;
  gap:8px;
}
.demo-actions .button {
  font-size:12px;
  padding:10px 12px;
  flex:1;
}
.demo-actions .button>span {
  font-weight:400;
  color:var(--muted);
}
@media(min-width:1500px) {
.app-wrap {
    padding-top:30px;
  }
}
@media(max-width:1050px) {
.app-wrap {
    padding:24px;
  }
.work-layout,.profile-layout {
    grid-template-columns:minmax(0,1fr) 264px;
    gap:19px;
  }
.summary-panel {
    padding:20px;
  }
.panel-heading {
    padding-left:18px;
    padding-right:18px;
  }
.grand-total {
    font-size:37px;
  }
.summary-details {
    font-size:11px;
  }
}
@media(max-width:760px) {
.topbar {
    height:75px;
    padding:0 20px;
  }
.brand {
    font-size:22px;
  }
.brand-mark {
    width:34px;
    height:37px;
    font-size:25px;
  }
.account {
    font-size:11px;
    gap:12px;
    max-width:53%;
  }
.account>span {
    max-width:140px;
  }
.account .text-button {
    font-size:12px;
  }
.app-wrap {
    padding:19px 18px 0;
  }
.demo-banner {
    font-size:11px;
    margin-bottom:21px;
    gap:8px;
  }
.pill {
    font-size:8px;
  }
.tabs {
    gap:24px;
    margin-bottom:27px;
  }
.tab {
    font-size:12px;
    padding-bottom:15px;
  }
.tab-count {
    font-size:9px;
  }
.page-heading {
    align-items:flex-start;
    gap:13px;
    flex-wrap:wrap;
    margin-bottom:23px;
  }
.page-heading h1 {
    font-size:28px;
  }
.page-heading>.button {
    min-height:35px;
    padding:8px 11px;
    font-size:11px;
  }
.work-layout,.profile-layout {
    grid-template-columns:1fr;
    gap:18px;
  }
.summary-panel {
    position:static;
    padding:22px;
  }
.grand-total {
    font-size:42px;
  }
.summary-details {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 18px;
    font-size:12px;
  }
.summary-details>div {
    margin-bottom:15px;
  }
.summary-rule {
    margin:21px 0 17px;
  }
.review-status {
    margin-top:0;
  }
.summary-panel .button {
    min-height:46px;
  }
.summary-footnote {
    font-size:11px;
  }
.panel-heading {
    padding-top:20px;
  }
input,select {
    min-height:44px;
  }
input[type=date] {
    font-size:13px;
  }
.section-note {
    margin-left:18px;
    margin-right:18px;
    font-size:11px;
  }
.document-settings {
    padding:0 18px;
  }
.document-settings summary {
    font-size:12px;
  }
.document-settings summary>span {
    font-size:10px;
  }
.settings-grid {
    grid-template-columns:1fr 1fr;
    gap:13px;
  }
.settings-grid>label:first-child {
    grid-column:1/-1;
  }
.result-panel {
    padding:19px 18px;
  }
.result-top {
    display:block;
  }
.result-total {
    margin-top:12px;
    font-size:25px;
  }
.download-actions {
    gap:7px;
  }
.download-actions .button {
    font-size:11px;
    min-height:41px;
    padding:9px 11px;
  }
.download-actions .view-link {
    font-size:11px;
    margin-left:0;
    padding:7px 0;
    width:100%;
  }
.history-item {
    padding:18px 17px;
    grid-template-columns:1fr;
    gap:15px;
  }
.history-total {
    text-align:left;
    margin-left:45px;
    font-size:24px;
  }
.history-total small {
    display:inline;
    margin-left:10px;
  }
.history-title {
    gap:11px;
  }
.history-actions {
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }
.delete-document {
    min-height:44px;
  }
.profile-panel {
    padding:20px 18px;
  }
.profile-fields {
    grid-template-columns:1fr;
    gap:16px;
  }
.profile-field-wide {
    grid-column:auto;
  }
.profile-footer .button {
    width:100%;
    min-height:46px;
  }
.profile-aside {
    gap:16px;
  }
.info-panel {
    padding:21px;
  }
.login-wrap {
    margin:36px auto;
    padding:0 19px;
  }
.login-card {
    padding:28px 23px;
  }
.login-card h1 {
    font-size:30px;
  }
.demo-actions {
    flex-direction:column;
  }
.demo-actions .button {
    justify-content:space-between;
    min-height:45px;
  }
.empty-state {
    padding:48px 20px;
  }
.eyebrow {
    font-size:9px;
    letter-spacing:1.2px;
  }
}
@media(prefers-reduced-motion:reduce) {
* {
    transition:none!important;
  }
}
.next-document {
  margin-top:15px;
}

/* Weekly day selection. Existing document/profile views keep their styles. */
.week-navigation {
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 40px;
  align-items:center;
  gap:12px;
  margin:14px 22px 13px;
}
.week-navigation h3 {
  font-size:14px;
  line-height:1.35;
  font-weight:400;
  text-align:center;
}
.week-arrow {
  width:40px;
  height:37px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:4px;
  background:white;
  color:var(--ink);
  font-size:18px;
}
.week-arrow:not(:disabled):hover { background:var(--bg); }
.calendar-days {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
  padding:0 22px 16px;
}
.calendar-day {
  min-width:0;
  min-height:65px;
  border:1px solid var(--line);
  border-radius:5px;
  background:white;
  color:var(--ink);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:9px 2px;
  font-variant-numeric:tabular-nums;
}
.calendar-day.weekend { background:#f8f9f5; }
.calendar-day.today { border-color:#70927a; }
.calendar-day:not(:disabled):not(.selected):hover { background:var(--soft); border-color:#adc2af; }
.calendar-day.selected { background:var(--accent); border-color:var(--accent); color:white; }
.calendar-day:disabled { opacity:.32; }
.calendar-weekday { font-size:9px; letter-spacing:.5px; opacity:.7; }
.calendar-number { font-size:21px; line-height:1; font-weight:400; }
.calendar-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:0 22px 18px;
}
.calendar-footer>span { font-size:11px; max-width:210px; }
.day-picker-label {
  flex-direction:row;
  align-items:center;
  gap:8px;
  font-size:11px;
  font-weight:400;
  color:var(--muted);
}
.day-picker-label input { width:134px; height:35px; font-size:12px; }
.selected-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-top:1px solid var(--line);
  padding:18px 22px 13px;
}
.selected-heading h3 { font-size:13px; font-weight:700; }
.work-rows { border-top:0; }
.day-row {
  display:grid;
  grid-template-columns:110px minmax(135px,1fr) 84px 29px;
  align-items:center;
  gap:14px;
  border-top:1px solid #edf0e9;
  padding:13px 22px;
}
.day-date { min-width:0; }
.day-date strong { display:block; font-size:13px; line-height:1.35; font-weight:700; }
.day-date>span { display:block; color:var(--muted); font-size:10px; margin-top:3px; }
.day-row select { min-width:0; height:38px; font-size:12px; }
.day-price { text-align:right; font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.remove-day {
  width:29px;
  height:35px;
  border:0;
  border-radius:4px;
  background:none;
  color:#819085;
  font-size:20px;
  line-height:1;
}
.remove-day:hover { background:#faf0ea; color:var(--error); }
.days-empty { color:var(--muted); font-size:12px; padding:12px 22px 28px; }
.retry-quote { font-size:11px; margin:0 0 12px; color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.error-history { display:block; margin:-12px 0 21px 16px; color:var(--error); font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.panel-heading>#this-week { min-height:34px; padding:6px 0; font-size:11px; }
@media(min-width:761px) {
  .page-heading { margin-bottom:22px; }
  .page-heading h1 { font-size:29px; }
  .tabs { margin-bottom:29px; }
}
@media(max-width:1050px) and (min-width:761px) {
  .day-row { grid-template-columns:80px minmax(110px,1fr) 69px 25px; gap:9px; padding-left:18px; padding-right:18px; }
  .day-row select { font-size:11px; padding-left:7px; }
  .day-price { font-size:12px; }
  .calendar-footer { flex-wrap:wrap; gap:8px; }
}
@media(max-width:760px) {
  .week-navigation { grid-template-columns:35px minmax(0,1fr) 35px; gap:8px; margin:10px 15px 13px; }
  .week-navigation h3 { font-size:12px; }
  .week-arrow { width:35px; height:35px; }
  .calendar-days { padding:0 15px 14px; gap:5px; }
  .calendar-day { min-height:60px; border-radius:4px; gap:6px; }
  .calendar-number { font-size:20px; }
  .calendar-weekday { font-size:8px; letter-spacing:.1px; }
  .calendar-footer { display:block; padding:0 15px 15px; }
  .calendar-footer>span { display:block; max-width:none; margin-bottom:10px; font-size:10px; }
  .day-picker-label { justify-content:space-between; font-size:11px; }
  .day-picker-label input { width:148px; min-height:36px; height:36px; }
  .selected-heading { padding:15px 15px 10px; }
  .selected-heading h3 { font-size:12px; }
  .day-row { grid-template-columns:minmax(0,1fr) auto 28px; gap:9px 10px; padding:12px 15px; }
  .day-date { grid-column:1; grid-row:1; }
  .day-date strong { font-size:13px; }
  .day-date>span { font-size:10px; margin-top:2px; }
  .day-price { grid-column:2; grid-row:1; font-size:15px; }
  .day-row select { grid-column:1/3; grid-row:2; min-height:40px; height:40px; font-size:12px; }
  .remove-day { grid-column:3; grid-row:1/3; width:28px; min-height:42px; }
  .days-empty { padding:10px 15px 23px; font-size:11px; }
  .page-heading { margin-bottom:19px; }
  .page-heading h1 { font-size:27px; }
  .tabs { margin-bottom:24px; }
  .summary-panel { padding:20px 22px; }
  .summary-rule { margin:18px 0 15px; }
  .summary-details>div { margin-bottom:12px; }
  .error-history { margin-left:14px; }
}
