:root {
  --ink: #17223a;
  --muted: #70809b;
  --line: #e6eaf2;
  --paper: #ffffff;
  --soft: #f6f8fc;
  --blue: #4a8cff;
  --green: #24c887;
  --yellow: #e8a617;
  --purple: #9b67f1;
  --red: #e95766;
  font-family: Inter, ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f4f6fa;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { background: radial-gradient(circle at 50% -15%, #fff 0 33%, #f3f6fb 75%); }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(74, 140, 255, .32); outline-offset: 2px; }

#app { width: min(100%, 640px); min-height: 100dvh; margin: auto; }
.screen { min-height: 100dvh; display: flex; flex-direction: column; padding: max(22px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom)); }
.backbar { min-height: 40px; display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; margin-bottom: 13px; }
.backbar h1 { margin: 0; overflow: hidden; color: var(--ink); font-size: 16px; font-weight: 850; letter-spacing: -.2px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.backbar > span { display: block; }
.back { width: fit-content; padding: 10px 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 760; }

.home { justify-content: space-between; gap: 12px; padding: max(28px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom)); }
.dashboard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dashboard-head h1 { margin: 0; color: #101b36; font-size: clamp(36px, 10vw, 48px); line-height: 1.03; font-weight: 870; letter-spacing: -1.8px; }
.dashboard-head p { margin: 9px 0 0; color: #73809a; font-size: 14px; font-weight: 590; line-height: 1.35; }
.notification-button { width: 53px; height: 53px; position: relative; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border-radius: 50%; background: #fff; box-shadow: 0 8px 19px rgba(43, 60, 100, .14); color: #202838; font-size: 22px; }
.notification-button i { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 2px 4px; border: 2px solid #fff; border-radius: 10px; background: #ff2d45; color: #fff; font-size: 10px; font-style: normal; font-weight: 800; }
.delivery-orb { width: 100%; min-height: 194px; position: relative; display: block; overflow: hidden; padding: 48px 27px 24px 31px; border-radius: 29px; background: linear-gradient(135deg, #68d564 0%, #20ba50 48%, #07933f 100%); box-shadow: 0 18px 32px rgba(23, 159, 72, .25), inset 0 1px 0 rgba(255, 255, 255, .35); text-align: left; }
.delivery-orb::before { content: ''; position: absolute; width: 230px; height: 230px; right: -86px; bottom: -126px; border-radius: 50%; background: rgba(0, 111, 48, .17); }
.delivery-orb span { position: relative; display: block; color: #fff; font-size: clamp(31px, 8.5vw, 43px); font-weight: 860; letter-spacing: -1px; }
.delivery-orb small { position: relative; display: block; margin-top: 13px; color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.37; }
.delivery-orb em { position: absolute; right: 23px; bottom: 23px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #159348; font-size: 31px; font-style: normal; font-weight: 400; }
.home-actions { width: 100%; display: grid; gap: 12px; }
.home-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-action { min-height: 146px; position: relative; display: block; padding: 18px 16px; overflow: hidden; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 10px 22px rgba(44, 59, 96, .09); text-align: left; }
.home-action span { display: block; margin-top: 0; color: #15203b; font-size: 20px; font-weight: 850; letter-spacing: -.4px; }
.home-action small { display: block; margin-top: 6px; color: #77849b; font-size: 12px; line-height: 1.35; }
.home-action em { position: absolute; right: 15px; bottom: 14px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; font-style: normal; }
.register-action em { background: #e6f4ff; color: #2689dc; }
.drawer-action em { background: #f0e6ff; color: #7742c8; }
.settings-action { min-height: 82px; display: grid; grid-template-columns: 1fr 35px; align-items: center; gap: 12px; padding: 12px 18px; }
.settings-action span { margin: 0; }
.settings-action span strong { display: block; color: #15203b; font-size: 20px; font-weight: 850; letter-spacing: -.4px; }
.settings-action small { margin: 3px 0 0; }
.settings-action em { position: static; background: #e6f9f8; color: #1aabad; }
.calendar-action { min-height: 82px; display: grid; grid-template-columns: 1fr 35px; align-items: center; gap: 12px; padding: 12px 18px; }
.calendar-action span { margin: 0; }
.calendar-action span strong { display: block; color: #15203b; font-size: 20px; font-weight: 850; letter-spacing: -.4px; }
.calendar-action small { margin: 3px 0 0; }
.calendar-action em { position: static; background: #fff0df; color: #d78428; }
.safety-note { min-height: 58px; display: grid; grid-template-columns: 1fr; align-items: center; padding: 10px 16px; border-radius: 17px; background: #eef3ff; color: #253e6a; }
.safety-note span { font-size: 13px; font-weight: 800; }
.safety-note small { display: block; margin-top: 3px; color: #7587a7; font-size: 10px; font-weight: 600; }

.panel { display: flex; flex-direction: column; flex: 1; }
.login-panel { align-items: center; justify-content: center; gap: 14px; text-align: center; }
.login-panel h1 { margin: 0; font-size: 27px; letter-spacing: -.8px; }
.login-panel p { max-width: 290px; margin: 0 0 9px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.login-panel .manual-input, .login-panel .big-action { width: min(100%, 350px); }
.login-mark { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 24px; background: linear-gradient(135deg, #397cf6, #75b6ff); box-shadow: 0 15px 28px rgba(65, 129, 246, .25); color: #fff; font-size: 35px; }
.identity-help { margin: 0; padding: 12px 14px; border-radius: 13px; background: #eef6ff; color: #52708f !important; font-size: 13px !important; }
.eyebrow { margin: 7px 0 5px; color: var(--muted); font-size: 11px; font-weight: 790; letter-spacing: .65px; }
.search-input, .manual-input { width: 100%; min-height: 60px; padding: 0 17px; border: 1px solid #dfe5ef; border-radius: 17px; background: #fff; color: var(--ink); box-shadow: 0 5px 13px rgba(34, 55, 97, .04); font-size: 22px; font-weight: 780; letter-spacing: 1.3px; text-transform: uppercase; }
.search-input::placeholder, .manual-input::placeholder { color: #c0c9d7; letter-spacing: 0; }
.hint { margin: 11px 3px; color: var(--muted); font-size: 13px; line-height: 1.42; }
.result-list, .history-list { display: grid; gap: 9px; margin-top: 8px; }
.permit-row, .history-row { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 5px 14px rgba(38, 55, 91, .04); text-align: left; }
.permit-row strong, .history-row strong { display: block; font-size: 18px; font-weight: 850; letter-spacing: 1px; }
.permit-row small, .history-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 690; }
.permit-row em { padding: 6px 8px; border-radius: 9px; background: #ecf4ff; color: #3675de; font-size: 12px; font-style: normal; font-weight: 820; }
.permit-row.delivered-row { border-color: #e8bc67; background: #fffaf0; }
.permit-row.delivered-row em { background: #fff0d3; color: #a46d03; }
.permit-row.delivered-current-row { border-color: #8ed6b0; background: #f2fcf6; }
.permit-row.delivered-current-row em { background: #d8f5e4; color: #157b4e; }
.permit-row.delivered-current-row small { color: #27855b; }
.delivered-message { margin-top: 17px; padding: 12px; border-radius: 13px; background: #fff3d9; color: #9c6705; font-size: 12px; font-weight: 820; line-height: 1.4; letter-spacing: .45px; }
.delivered-current-message { margin-top: 17px; padding: 12px; border-radius: 13px; background: #e8f8ee; color: #18794c; font-size: 13px; font-weight: 850; line-height: 1.55; letter-spacing: .4px; }
.delivered-current-message span { color: #317c5a; font-size: 12px; font-weight: 760; letter-spacing: 0; }
.permit-row.discarded-row { border-color: #c9d2df; background: #f7f9fc; }
.permit-row.discarded-row em { background: #e9edf3; color: #60708a; }
.discarded-message { margin-top: 17px; padding: 12px; border-radius: 13px; background: #edf1f6; color: #5b6b83; font-size: 12px; font-weight: 820; line-height: 1.4; letter-spacing: .45px; }
.empty { margin: 38px 0; color: var(--muted); font-size: 14px; text-align: center; }

.permit-card { margin: 24px 0 auto; padding: 28px 22px; border: 1px solid #e3e9f2; border-radius: 25px; background: #fff; box-shadow: 0 13px 30px rgba(42, 62, 105, .08); text-align: center; }
.permit-card .plate { font-size: clamp(31px, 9vw, 46px); font-weight: 880; letter-spacing: 2px; }
.permit-card .location-label { margin-top: 25px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.permit-card .location { margin-top: 7px; color: #2e73dc; font-size: 24px; font-weight: 850; }
.permit-card .location span { color: var(--ink); }
.permit-card .status { margin-top: 17px; color: #1aa974; font-size: 12px; font-weight: 800; letter-spacing: .8px; }
.big-action, .outline-action { min-height: 57px; border-radius: 17px; font-size: 16px; font-weight: 830; }
.big-action { background: linear-gradient(105deg, #397cf6, #5aa7ff); color: #fff; box-shadow: 0 9px 18px rgba(68, 132, 246, .25); }
.outline-action { border: 1px solid #dde4ef; background: #fff; color: var(--ink); }
.action-stack { display: grid; gap: 11px; margin-top: 21px; }
.red-action { background: linear-gradient(105deg, #e84f61, #f17c80); }

.choice-grid { display: grid; gap: 14px; margin-top: 17px; }
.choice { min-height: 152px; padding: 24px 22px; border: 1px solid #e3e8f2; border-radius: 24px; background: #fff; box-shadow: 0 9px 22px rgba(40, 58, 99, .06); text-align: left; }
.choice span { display: block; color: var(--ink); font-size: 21px; font-weight: 850; }
.choice small { display: block; max-width: 260px; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.choice.green-choice { border-color: rgba(36, 200, 135, .42); }
.choice.blue-choice { border-color: rgba(74, 140, 255, .38); }
.choice.folder-choice { border-color: rgba(232, 166, 23, .52); background: linear-gradient(145deg, #fff 0%, #fffaf0 100%); }
.manual-form { display: grid; gap: 9px; margin-top: 21px; }
.manual-form label { margin: 4px 3px 0; color: #586984; font-size: 12px; font-weight: 800; letter-spacing: .4px; }
.manual-form .free-input { min-height: 53px; color: var(--ink); font-size: 16px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.manual-form .manual-notes { min-height: 116px; padding: 15px 17px; resize: vertical; line-height: 1.45; }
.manual-form input[type="date"] { letter-spacing: 0; text-transform: none; }
.form-error { margin: 5px 3px 0; color: #c84453; font-size: 12px; font-weight: 720; }

.scan-view { position: relative; min-height: min(47vh, 390px); display: grid; place-items: center; overflow: hidden; border: 2px solid rgba(52, 127, 247, .5); border-radius: 25px; background: #192232; }
.scan-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-empty { position: relative; color: #d9e7ff; font-size: 16px; font-weight: 750; text-align: center; }
.scan-frame { position: absolute; width: 68%; height: 47%; border: 3px solid #5bc8ff; border-radius: 19px; box-shadow: 0 0 0 999px rgba(7, 19, 37, .22); }
.scan-frame.date-frame { width: 76%; height: 23%; border-radius: 13px; }
.scan-status { min-height: 47px; margin: 12px 0; padding: 13px; border-radius: 13px; background: #eef6ff; color: #47708f; font-size: 13px; font-weight: 700; }
.scan-status.error { background: #fff0f1; color: #c84453; }
.scan-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; }
.manual-date-entry { margin: -2px 0 12px; }
.manual-date-entry label { display: block; margin: 0 3px 7px; color: #586984; font-size: 12px; font-weight: 800; }
.manual-date-entry > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.manual-date-entry .manual-input { min-height: 50px; padding: 0 12px; font-size: 14px; }
.manual-date-entry .outline-action { min-height: 50px; padding: 0 10px; font-size: 11px; }
.text-action { align-self: center; margin: 12px auto 0; padding: 8px; background: transparent; color: #47708f; font-size: 12px; font-weight: 790; text-decoration: underline; text-underline-offset: 3px; }
.delivery-photo-view { min-height: min(48vh, 410px); position: relative; display: grid; place-items: center; overflow: hidden; margin-top: 10px; border: 2px solid rgba(52, 127, 247, .5); border-radius: 25px; background: #192232; }
.delivery-photo-view video, .delivery-photo-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.delivery-photo-preview { object-fit: contain; background: #111b2a; }
.delivery-photo-view .scan-empty { padding: 20px; }
.photo-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: auto; padding-top: 17px; }
.photo-actions > .big-action:only-child { grid-column: 1 / -1; }
.photo-actions button { min-height: 57px; }

.processing { text-align: center; }
.progress { margin-top: 15px; color: var(--muted); font-size: 13px; font-weight: 750; }
.process-plate { margin-top: 66px; color: var(--ink); font-size: clamp(36px, 12vw, 54px); font-weight: 880; letter-spacing: 2px; }
.process-location-label { margin-top: 34px; color: var(--muted); font-size: 12px; font-weight: 820; letter-spacing: 1px; }
.process-location { margin-top: 8px; color: #2f79e5; font-size: 28px; font-weight: 860; }
.process-location span { color: var(--ink); }
.process-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 11px; margin-top: auto; }
.process-actions button { min-height: 60px; }
.registration-actions { margin-top: auto; padding-top: 27px; }
.registration-actions > .big-action { width: 100%; min-height: 68px; font-size: 19px; }
.registration-actions > div { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 11px; }
.registration-actions .outline-action { min-height: 53px; padding: 7px; font-size: 12px; }
.registration-actions p { margin: 12px 5px 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.warning { margin-top: 13px; color: #b07504; font-size: 13px; font-weight: 790; }

.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.drawer-button { min-height: 126px; padding: 16px; border: 1px solid #e2e7ef; border-radius: 21px; background: #fff; box-shadow: 0 7px 17px rgba(43, 61, 100, .05); text-align: left; }
.drawer-button strong { display: block; color: #d09413; font-size: 25px; font-weight: 880; }
.drawer-button small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.folder-chip { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #fff4db; color: #a46d03; font-size: 13px; font-weight: 820; letter-spacing: .35px; text-align: center; }
.folder-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 10px; }
.folder-tools .outline-action { min-height: 49px; padding: 8px; font-size: 12px; }
.folder-list { display: grid; gap: 10px; margin-top: 8px; }
.month-group { display: grid; gap: 9px; margin: 5px 0 13px; }
.month-group h2 { margin: 0 3px 2px; color: #42506b; font-size: 14px; font-weight: 850; letter-spacing: .25px; text-transform: uppercase; }
.folder-row { width: 100%; min-height: 82px; display: grid; grid-template-columns: 1fr 32px; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid #e7e3d7; border-radius: 18px; background: #fff; box-shadow: 0 6px 15px rgba(62, 61, 42, .05); color: var(--ink); text-align: left; }
.folder-row strong { display: block; color: #a46d03; font-size: 18px; font-weight: 850; letter-spacing: .2px; }
.folder-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.folder-row em { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff4db; color: #a46d03; font-size: 20px; font-style: normal; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; overflow: auto; padding-bottom: 4px; }
.slot { min-height: 78px; display: grid; place-items: center; padding: 8px 4px; border: 1px solid #e2e6ed; border-radius: 16px; background: #fff; color: #a5afbd; font-size: 13px; font-weight: 770; text-align: center; }
.slot.occupied { border-color: rgba(234, 174, 26, .55); background: linear-gradient(145deg, #fffdfa, #fff7df); color: var(--ink); }
.slot.occupied strong { display: block; font-size: 13px; letter-spacing: .4px; }
.slot.occupied small { display: block; margin-top: 4px; color: #b47a09; font-size: 10px; font-weight: 800; }

.signature-wrap { margin-top: 17px; padding: 13px; border: 1px solid #e1e7f0; border-radius: 20px; background: #fff; }
.signature-canvas { display: block; width: 100%; height: min(36vw, 190px); border-radius: 12px; background: repeating-linear-gradient(to bottom, #fff 0, #fff calc(100% - 2px), #eaf0f6 calc(100% - 2px), #eaf0f6 100%); touch-action: none; }
.signature-help { margin: 8px 3px 0; color: var(--muted); font-size: 12px; text-align: center; }
.signature-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: auto; }
.signature-actions button { min-height: 56px; }

.settings-list { display: grid; gap: 10px; }
.session-user { padding: 12px 15px; border-radius: 14px; background: #eef6ff; color: #58708f; font-size: 13px; }
.session-user strong { color: #245ea8; }
.settings-list button { min-height: 57px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border: 1px solid #e3e8f1; border-radius: 16px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 780; text-align: left; }
.settings-list button span:last-child { color: var(--purple); font-size: 22px; font-weight: 400; }
.about { margin: auto 0 4px; color: #9da8ba; font-size: 12px; text-align: center; }
.about strong { color: #7860ba; }
.small-danger { display: block; width: fit-content; margin: 18px auto 0; padding: 8px 12px; background: transparent; color: #c45261; font-size: 12px; font-weight: 800; }
.delete-card { margin: 24px 0 auto; padding: 23px 19px; border: 1px solid #f0d7dc; border-radius: 21px; background: #fff; text-align: center; }
.delete-card strong { display: block; color: #bd4251; font-size: 25px; font-weight: 860; letter-spacing: .7px; }
.delete-card p { margin: 13px 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.delete-card small { display: block; margin-top: 11px; color: #a26973; font-size: 11px; line-height: 1.35; }
.danger-action { min-height: 57px; border-radius: 17px; background: linear-gradient(105deg, #df4c5e, #ef747b); color: #fff; font-size: 16px; font-weight: 830; box-shadow: 0 9px 18px rgba(208, 65, 83, .2); }
.danger-action:disabled { opacity: .42; box-shadow: none; }
.deletion-row { padding: 16px; border: 1px solid #ebe0e3; border-radius: 17px; background: #fff; box-shadow: 0 6px 15px rgba(81, 48, 58, .04); }
.deletion-row strong { display: block; color: #82414c; font-size: 15px; font-weight: 830; }
.deletion-row small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.48; }
.history-row { border-radius: 15px; }
.manual-record-row { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 15px 16px; border: 1px solid #dfe9e4; border-radius: 15px; background: #fff; box-shadow: 0 5px 14px rgba(38, 77, 60, .04); color: var(--ink); text-align: left; }
.manual-record-row.delivered { border-color: #bfe7d1; background: #fbfffc; }
.manual-record-row strong { display: block; font-size: 16px; font-weight: 850; line-height: 1.25; }
.manual-record-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.manual-record-row em { max-width: 110px; color: #5d7381; font-size: 11px; font-style: normal; font-weight: 720; line-height: 1.35; text-align: right; }
.manual-record-row.delivered em { color: #168358; }
.manual-record-detail { margin-top: 18px; padding: 22px; border: 1px solid #dfe9e4; border-radius: 20px; background: #fff; }
.manual-record-concept { color: #17382d; font-size: 24px; font-weight: 850; line-height: 1.22; }
.manual-record-meta { margin: 9px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.manual-detail-field { padding: 13px 0; border-top: 1px solid #edf0f4; }
.manual-detail-field small { display: block; color: #77879e; font-size: 11px; font-weight: 820; letter-spacing: .45px; text-transform: uppercase; }
.manual-detail-field p { margin: 6px 0 0; color: var(--ink); font-size: 14px; line-height: 1.48; overflow-wrap: anywhere; }
.manual-delivery-status { display: grid; gap: 4px; margin-top: 18px; padding: 13px 14px; border-radius: 14px; background: #f1f4f8; color: #64738a; }
.manual-delivery-status strong { color: #516079; font-size: 12px; font-weight: 850; letter-spacing: .65px; }
.manual-delivery-status span { font-size: 12px; line-height: 1.4; }
.manual-delivery-status.delivered { background: #eaf8f0; color: #287c58; }
.manual-delivery-status.delivered strong { color: #188353; }
.manual-record-photo { width: 100%; max-height: 330px; margin-top: 8px; border: 1px solid #dbe7df; border-radius: 12px; background: #fff; object-fit: contain; }
.manual-detail-actions { margin-top: 17px; }
.manual-detail-actions .small-danger { margin-top: 0; justify-self: center; }
.history-detail { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.history-detail .plate { font-size: 28px; font-weight: 850; letter-spacing: 1.5px; }
.history-detail p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.evidence-label { margin-top: 17px; color: #697993; font-size: 11px; font-weight: 830; letter-spacing: .7px; }
.history-photo, .history-signature { width: 100%; max-height: 330px; margin-top: 8px; border: 1px solid #e3e9f1; border-radius: 12px; background: #fff; object-fit: contain; }
.history-missing { margin-top: 18px !important; padding: 11px 12px; border-radius: 12px; background: #f2f5f9; color: #77849a !important; font-size: 12px !important; line-height: 1.4 !important; }

.calendar-nav { min-height: 53px; display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; margin-top: 7px; border-radius: 16px; background: #f2f5fa; text-align: center; }
.calendar-nav button { height: 40px; background: transparent; color: #365174; font-size: 23px; }
.calendar-nav strong { color: #1b2943; font-size: 16px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.calendar-weekdays { margin-top: 17px; color: #8290a8; font-size: 11px; font-weight: 800; text-align: center; }
.calendar-grid { margin-top: 9px; }
.calendar-blank { min-height: 45px; }
.calendar-day { min-height: 45px; position: relative; border-radius: 12px; background: #f7f9fc; color: #506079; font-size: 14px; font-weight: 760; }
.calendar-day.today { box-shadow: inset 0 0 0 2px #4b91f5; color: #2469c9; }
.calendar-day.has-deliveries { background: #e9f4ff; color: #225fba; }
.calendar-day small { position: absolute; top: -4px; right: -3px; min-width: 15px; height: 15px; padding-top: 1px; border-radius: 10px; background: #ff2d45; color: #fff; font-size: 9px; }
.calendar-delivery { padding: 17px; border: 1px solid #e3e8f1; border-radius: 18px; background: #fff; box-shadow: 0 6px 15px rgba(42, 59, 97, .05); }
.calendar-delivery strong { display: block; color: #17223a; font-size: 20px; letter-spacing: 1px; }
.calendar-delivery small, .calendar-delivery div { display: block; margin-top: 6px; color: #6f7f98; font-size: 12px; line-height: 1.4; }
.calendar-delivery div { color: #2f6fc9; font-weight: 750; }
.calendar-delivery img { width: 100%; max-height: 142px; margin-top: 12px; border: 1px solid #e3e9f1; border-radius: 11px; background: #fff; object-fit: contain; }
.calendar-delivery .calendar-photo { max-height: 210px; object-fit: contain; }

.toast { position: fixed; z-index: 3; right: 20px; bottom: 20px; left: 20px; max-width: 500px; margin: auto; padding: 14px 16px; border-radius: 14px; background: #20304a; color: #fff; box-shadow: 0 12px 28px rgba(23, 37, 66, .28); font-size: 14px; font-weight: 720; text-align: center; }

@media (min-width: 641px) {
  body { padding: 18px; }
  #app { min-height: calc(100dvh - 36px); overflow: hidden; border-radius: 30px; background: #fff; box-shadow: 0 22px 55px rgba(44, 62, 103, .12); }
  .screen { min-height: calc(100dvh - 36px); }
}
