:root {
  --blue: #1757ad;
  --blue-dark: #0d4698;
  --yellow: #f3ff00;
  --ink: #33363a;
  --muted: #777b80;
  --line: #e4e5e7;
  --soft: #f4f6fa;
  --green: #00843d;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; }
body {
  background: #f4ed8d;
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 14px;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.phone-shell {
  width: min(100%, 620px);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.app-header {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  min-height: 70px;
  padding: 18px 14px 8px;
  background: #fff;
}
.app-name { font-size: 18px; font-weight: 400; }
.logo-button { border: 0; padding: 0; background: transparent; }
.app-logo { width: 72px; height: 28px; padding: 5px 7px; border-radius: 5px; object-fit: contain; background: var(--green); }
.header-actions { display: flex; gap: 8px; }
.icon-btn {
  border: 0;
  background: transparent;
  color: #4b4f53;
  font-size: 22px;
  line-height: 1;
  min-width: 30px;
  padding: 4px;
}
.main-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 46px;
  border-bottom: 1px solid var(--line);
}
.main-tab {
  position: relative;
  border: 0;
  background: #fff;
  color: #4f5357;
  font-size: 12px;
}
.main-tab.active { color: var(--blue); font-weight: 700; }
.main-tab[data-view="plus"].active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 18%;
  right: 18%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.filter-row select {
  border: 0;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  padding: 2px 0;
}
.plus-date-filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; align-items: end; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); }
.plus-date-filter label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.plus-date-filter input { min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 8px; background: #fff; color: var(--ink); }
.plus-date-filter .action-btn { padding: 8px 10px; }
.plus-date-status { grid-column: 1 / -1; min-height: 16px; color: var(--muted); font-size: 11px; }
.filter-arrow { border: 0; background: #fff; font-size: 17px; color: var(--muted); }
.range-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.range-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 0;
  background: #fff;
  color: #55595d;
  padding: 0;
  font-size: 13px;
}
.range-option i {
  width: 15px;
  height: 15px;
  border: 2px solid #73777b;
  border-radius: 50%;
}
.range-option.selected i { border-color: #fbff00; box-shadow: inset 0 0 0 3px #fff; background: #fbff00; }
.home-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 10px; background: #f4f6fa; border-bottom: 1px solid var(--line); }
.home-summary div { display: grid; gap: 4px; }
.home-summary span { color: var(--muted); font-size: 12px; }
.home-summary strong { font-size: 20px; }
.clock-btn, .action-btn { border: 0; border-radius: 7px; padding: 10px 13px; background: var(--blue); color: #fff; font-weight: 700; }
.clock-btn.active { background: #d71920; }
.clock-controls { display: grid; gap: 7px; justify-items: stretch; }
.pause-btn { border: 1px solid #d99a00; border-radius: 7px; padding: 8px 13px; background: #fff7dc; color: #8a5b00; font-weight: 700; }
.clock-panel { display: grid; justify-items: center; gap: 3px; padding: 18px 10px; background: #eef7ef; border-bottom: 1px solid var(--line); }
.clock-panel span, .clock-panel small { color: var(--muted); font-size: 12px; }
.clock-panel strong { color: var(--green); font-size: clamp(34px, 10vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; }
.home-actions { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); }
.action-btn.secondary { background: #fff; border: 1px solid var(--blue); color: var(--blue); }
.calendar-input { width: 1px; height: 1px; opacity: 0; position: absolute; pointer-events: none; }

.hours-list { background: #fff; }
.month-header, .period-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}
.month-header { background: var(--yellow); color: #20231c; }
.period-header { background: #3867b9; color: #fff; }
.hour-row {
  display: grid;
  grid-template-columns: 1fr auto 18px;
  gap: 8px;
  min-height: 74px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.hour-times { font-size: 14px; line-height: 1.45; }
.hour-times small { display: block; color: #55595d; font-size: 12px; }
.hour-total { text-align: right; line-height: 1.4; white-space: nowrap; }
.hour-total small { display: block; color: #777b80; font-size: 12px; }
.hour-dot, .job-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); }
.hour-actions { display: flex; gap: 2px; }
.hour-actions button { width: 28px; height: 28px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 17px; }
.hour-actions button:hover { background: var(--soft); color: var(--blue); }

.floating-add {
  position: fixed;
  right: max(18px, calc((100vw - 620px) / 2 + 18px));
  bottom: 24px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 13px;
  background: var(--yellow);
  color: #1d2100;
  font-size: 29px;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(0,0,0,.2);
}

.jobs-content, .plus-summary, .plus-notice { padding: 14px 10px; }
.jobs-content h3 { margin: 0; padding: 8px 8px; color: var(--blue); font-size: 12px; }
.job-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.job-row strong, .job-row span { display: block; }
.job-row span { margin-top: 3px; color: #5d6166; font-size: 12px; }
.job-row-actions { display: flex; align-items: center; gap: 4px; }
.job-row-actions button { border: 0; border-radius: 5px; padding: 5px 7px; background: transparent; color: var(--muted); font-size: 16px; }
.job-row-actions button:hover { background: var(--soft); color: var(--blue); }
.add-job { margin: 14px 8px; border: 1px solid var(--blue); border-radius: 5px; background: #fff; color: var(--blue); padding: 9px 14px; }
.plus-summary { margin: 14px 10px; background: var(--soft); border-radius: 8px; box-shadow: 0 2px 7px rgba(0,0,0,.1); }
.summary-head, .summary-line { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid #e2e5eb; }
.summary-line:last-child { border-bottom: 0; }
.plus-notice { display: flex; align-items: center; gap: 12px; margin: 12px 10px; background: var(--green); color: #fff; border-radius: 8px; }
.plus-notice img { width: 78px; height: 31px; object-fit: contain; }
.plus-notice span { display: block; margin-top: 3px; font-size: 12px; opacity: .85; }

.landing-view, .login-view { width: 100%; min-height: 100vh; padding: 66px 22px; text-align: left; background: #032c20; }
.landing-logo, .auth-logo { width: 190px; padding: 20px; background: var(--green); }
.landing-view h1 { margin: 22px 0 10px; font-size: 42px; }
.landing-view p { color: var(--muted); }
.primary-btn { border: 0; border-radius: 8px; padding: 12px 20px; background: var(--blue); color: #fff; font-weight: 700; }
.auth-card { width: min(520px, 100%); margin: 0 auto; padding: 36px; background: #0e2c21; border: 1px solid rgba(139, 226, 164, .22); border-radius: 17px; box-shadow: 0 24px 60px rgba(0, 0, 0, .16); }
.auth-logo { width: 150px; margin: 0 auto 18px; }
.auth-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.auth-heading img { width: 46px; height: 30px; object-fit: contain; }
.auth-card h2 { margin: 0; font-size: 28px; color: #fff; }
.auth-subtitle { margin: 0 0 24px; color: #29463b; font-size: 17px; }
.auth-form, #login-form { display: grid; width: 100%; gap: 14px; }
.auth-form input, #login-form input { width: 100%; min-height: 52px; border: 1px solid #aeb5b1; border-radius: 10px; padding: 14px 15px; background: #fff; color: var(--ink); font-size: 15px; }
.auth-form input:focus, #login-form input:focus { outline: 3px solid rgba(126, 190, 22, .18); border-color: #7fbe16; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; background: #052217; border-radius: 8px; }
.auth-tab { border: 0; border-radius: 6px; padding: 9px; background: transparent; color: var(--muted); font-weight: 700; }
.auth-tab { color: #c4d9cc; }
.auth-tab.active { background: #207c50; color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.08); }
.login-note, .auth-status { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.text-link { border: 0; background: transparent; color: var(--blue); font-weight: 700; padding: 4px; }
.password-field { display: flex; align-items: center; width: 100%; border: 1px solid #aeb5b1; border-radius: 10px; overflow: hidden; background: #fff; }
.password-field input { border: 0; border-radius: 0; }
.password-field button { border: 0; background: #fff; color: #777; padding: 0 14px; }
.forgot-link { border: 0; background: transparent; color: #29463b; text-decoration: underline; font-size: 14px; padding: 4px 0; justify-self: start; }
#login-form .primary-btn, #signup-form .primary-btn { min-height: 52px; border-radius: 26px 26px 26px 6px; background: #80c900; color: #fff; font-size: 16px; box-shadow: 0 9px 20px rgba(112, 184, 12, .2); }
#login-form .primary-btn:hover, #signup-form .primary-btn:hover { background: linear-gradient(135deg, #a2d72a, #62a90a); transform: translateY(-1px); }
#login-form .forgot-link { margin-top: 0; }
#login-form { gap: 14px; }
.account-photo-preview { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; background: var(--green); padding: 8px; }

.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.45); z-index: 5; }
.modal-card { position: relative; width: min(430px, 100%); display: grid; gap: 12px; padding: 22px; background: #fff; border-radius: 12px; }
.modal-card h2 { margin: 0 0 4px; }
.modal-card p { margin: 0; color: var(--muted); }
.contact-card a { color: var(--blue); font-weight: 700; }
.contact-card .contact-mail-link { color: #fff; text-decoration: none; text-align: center; }
.report-card { max-height: calc(100vh - 36px); overflow-y: auto; }
.report-result { display: grid; gap: 4px; min-height: 64px; padding: 12px; border-radius: 8px; background: var(--soft); }
.report-result strong { font-size: 24px; }
.faq-card h3 { margin: 6px 0 0; font-size: 14px; }
.admin-user { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-user small { color: var(--muted); }
.admin-user button { grid-column: 2; grid-row: 1 / span 2; border: 1px solid #d71920; border-radius: 6px; padding: 6px 9px; background: #fff; color: #b31319; }
.modal-card label { display: grid; gap: 5px; color: #5b6065; font-size: 13px; }
.modal-card .check-label { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.modal-card .check-label input { width: 18px; height: 18px; }
.modal-card input { border: 1px solid var(--line); border-radius: 7px; padding: 10px; }
.time-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 25px; }
.more-menu {
  position: absolute;
  top: 58px;
  right: 12px;
  z-index: 4;
  width: 190px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.more-menu button { display: block; width: 100%; border: 0; border-radius: 7px; padding: 11px 10px; background: transparent; color: var(--ink); text-align: left; }
.more-menu button:hover { background: var(--soft); color: var(--blue); }
.main-menu { left: 12px; right: auto; }
.app-header { position: relative; }
.toggle-row { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; }
.toggle-row input { width: 18px; height: 18px; }
.schedule-fields { display: grid; gap: 8px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.schedule-fields legend { padding: 0 5px; font-weight: 700; }
.schedule-row { display: grid !important; grid-template-columns: 18px minmax(70px, 1fr) 82px 82px 58px; align-items: center; gap: 6px; }
.schedule-row input[type="checkbox"] { width: 16px; height: 16px; }
.schedule-row .time-text-input { min-width: 0; padding: 7px; }
.ai-content { max-width: 700px; margin: 0 auto; padding: 24px 16px; }
.ai-content h2 { margin: 0 0 6px; }
.ai-content > p { margin: 0 0 18px; color: var(--muted); }
.ai-form { display: grid; gap: 10px; }
.ai-form input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px; color: var(--ink); }
.ai-response { display: grid; gap: 6px; min-height: 68px; margin: 16px 0 10px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.ai-response p { margin: 0; }

body.auth-dark .login-view,
body.auth-dark .landing-view { background: linear-gradient(145deg, #071d14, #0e3c2b); color: #f4fff8; }
body.auth-dark .login-view { background: #032c20; color: #f4fff8; }
body.auth-dark .auth-card { background: #0e2c21; border: 1px solid rgba(139, 226, 164, .22); box-shadow: 0 22px 55px rgba(0,0,0,.3); }
body.auth-dark .auth-card h2 { color: #fff; }
body.auth-dark .auth-subtitle,
body.auth-dark .forgot-link { color: #d6eee0; }
body.auth-dark .forgot-link { text-decoration-color: #d6eee0; }
body.auth-dark .auth-card input { background: #0a2118; border-color: rgba(139, 226, 164, .25); color: #fff; }
body.auth-dark .auth-tab.active { background: #207c50; color: #fff; }
body.auth-dark .auth-tab { color: #b8d8c4; }
body.auth-dark .auth-switch { background: #0a2118; }
body.auth-dark .primary-btn { background: #80c900; color: #fff; }
body.auth-dark .landing-view p { color: #b8d8c4; }
body.auth-dark .phone-shell { background: #0c2419; color: #ecfff2; }
body.auth-dark .phone-shell .app-header,
body.auth-dark .phone-shell .main-tab,
body.auth-dark .phone-shell .filter-row,
body.auth-dark .phone-shell .range-option,
body.auth-dark .phone-shell .hours-list { background: #0c2419; color: #ecfff2; }
body.auth-dark .phone-shell .app-header { border-bottom-color: rgba(167, 230, 182, .15); }
body.auth-dark .phone-shell .main-tab { color: #a9c9b4; }
body.auth-dark .phone-shell .main-tab.active { color: #81df9d; }
body.auth-dark .phone-shell .filter-row,
body.auth-dark .phone-shell .range-row,
body.auth-dark .phone-shell .hour-row { border-color: rgba(167, 230, 182, .15); }
body.auth-dark .phone-shell .filter-row,
body.auth-dark .phone-shell .range-row { background: #164d34; }
body.auth-dark .phone-shell .filter-row select,
body.auth-dark .phone-shell .filter-arrow,
body.auth-dark .phone-shell .range-option { background: #164d34; color: #ecfff2; }
body.auth-dark .phone-shell .hours-list { border-left: 1px solid rgba(167, 230, 182, .25); border-right: 1px solid rgba(167, 230, 182, .25); }
body.auth-dark .phone-shell .hour-row { background: #1b563b; }
body.auth-dark .phone-shell .home-summary,
body.auth-dark .phone-shell .home-actions { background: #123a29; border-color: rgba(167, 230, 182, .15); }
body.auth-dark .phone-shell .home-summary span,
body.auth-dark .phone-shell .home-summary strong { color: #ecfff2; }
body.auth-dark .phone-shell .clock-btn,
body.auth-dark .phone-shell .action-btn { background: #52b978; color: #062214; }
body.auth-dark .phone-shell .action-btn.secondary { background: transparent; border-color: #81df9d; color: #b8f2c8; }
body.auth-dark .phone-shell .month-header { background: #b7d83d; color: #123018; }
body.auth-dark .phone-shell .period-header { background: #287b52; color: #fff; }
body.auth-dark .phone-shell .hour-times,
body.auth-dark .phone-shell .hour-total { color: #ecfff2; }
body.auth-dark .phone-shell .hour-actions button { color: #b8f2c8; }
body.auth-dark .phone-shell .ai-content { color: #ecfff2; }
body.auth-dark .phone-shell .ai-history { border-color: rgba(167, 230, 182, .2); }
body.auth-dark .phone-shell .ai-history-item { color: #ecfff2; }
body.auth-dark .phone-shell .ai-history-item.active,
body.auth-dark .phone-shell .ai-history-item:hover { background: #164d34; color: #fff; }
body.auth-dark .phone-shell .ai-content > p { color: #b8d8c4; }
body.auth-dark .phone-shell .ai-form input,
body.auth-dark .phone-shell .ai-response { background: #164d34; border-color: rgba(167, 230, 182, .25); color: #ecfff2; }
body.auth-dark .phone-shell .ai-message.user { background: #b8e6c5; color: #06351f; }
body.auth-dark .phone-shell .ai-message.assistant { background: #1f7049; color: #f1fff5; }
body.auth-dark .phone-shell .ai-message.assistant strong,
body.auth-dark .phone-shell .ai-message.assistant span { color: #f1fff5; }
body.auth-dark .phone-shell .ai-response { background: #1f7049; color: #f1fff5; }
body.auth-dark .report-result,
body.auth-dark .phone-shell .schedule-fields { background: #1f7049; border-color: #68c58b; color: #f1fff5; }
body.auth-dark .report-result span,
body.auth-dark .report-result strong,
body.auth-dark .report-result b { color: #f1fff5; }
body.auth-dark .modal-card { background: #0e2c21; color: #f1fff5; border: 1px solid #3b8e62; }
body.auth-dark .modal-card p,
body.auth-dark .modal-card label,
body.auth-dark .modal-card legend { color: #d7f4df; }
body.auth-dark .modal-card input,
body.auth-dark .modal-card select { background: #164d34; border-color: #68c58b; color: #fff; }
body.auth-dark .modal-card .modal-close { color: #f1fff5; }
body.auth-dark .phone-shell .plus-summary { background: #174b33; border: 1px solid #63bd83; box-shadow: 0 3px 10px rgba(0, 0, 0, .22); }
body.auth-dark .phone-shell .plus-summary .summary-head,
body.auth-dark .phone-shell .plus-summary .summary-line { border-color: rgba(190, 244, 203, .3); }
body.auth-dark .phone-shell .plus-summary strong,
body.auth-dark .phone-shell .plus-summary span,
body.auth-dark .phone-shell .plus-summary b { color: #f2fff5; }
body.auth-dark .phone-shell .plus-notice { background: #008b45; border: 1px solid #64d995; }
.ai-chat { display: grid; gap: 8px; max-height: 280px; overflow-y: auto; margin-bottom: 12px; }
.ai-layout { display: grid; grid-template-columns: 190px minmax(0, 700px); gap: 18px; max-width: 920px; margin: 0 auto; }
.ai-history { padding: 18px 0; border-right: 1px solid var(--line); }
.ai-history .action-btn { width: calc(100% - 14px); margin-right: 14px; }
.ai-history-actions { display: grid; gap: 6px; }
.ai-history-actions .text-link { justify-self: start; color: var(--muted); font-size: 12px; }
.ai-history-list { display: grid; gap: 4px; margin-top: 12px; }
.ai-history-item { width: calc(100% - 14px); overflow: hidden; border: 0; border-radius: 6px; padding: 9px; background: transparent; color: var(--ink); text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.ai-history-item.active, .ai-history-item:hover { background: var(--soft); color: var(--blue); }
.ai-message { max-width: 88%; padding: 9px 12px; border-radius: 10px; line-height: 1.4; }
.ai-message.user { justify-self: end; background: #e5f1e8; }
.ai-message.assistant { background: #edf0f5; }
.admin-page { min-height: 100vh; padding: 30px 20px; background: #eef6e9; color: var(--ink); }
.admin-page-card { width: min(100%, 980px); margin: 0 auto; padding: 28px; border: 1px solid #b4d4b7; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(22, 70, 38, .12); }
.admin-page-head, .admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-page-head { justify-content: flex-start; margin-bottom: 24px; }
.admin-page-head img { width: 78px; height: 36px; padding: 6px; border-radius: 5px; background: var(--green); object-fit: contain; }
.admin-page h1, .admin-page h2 { margin: 0 0 6px; }
.admin-page-head p { margin: 0; color: var(--muted); }
.admin-page label { display: grid; gap: 6px; max-width: 420px; margin-bottom: 12px; }
.admin-page input { padding: 11px; border: 1px solid var(--line); border-radius: 7px; }
.admin-page-user, .admin-activity { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.admin-overview div { display: grid; gap: 4px; padding: 14px; border: 1px solid #b4d4b7; border-radius: 8px; background: #eef6e9; }
.admin-overview strong { font-size: 20px; }
.admin-overview span, .admin-user-metrics { color: var(--muted); font-size: 12px; }
.admin-user-metrics { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; }
.admin-user-metrics button { border: 1px solid var(--blue); border-radius: 6px; padding: 6px 9px; background: #fff; color: var(--blue); }
.admin-page-user small, .admin-activity span, .admin-activity small { display: block; color: var(--muted); }
.admin-page-user button { border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; background: #fff; color: var(--blue); }
body.auth-dark .phone-shell .pause-btn { background: #3e3920; border-color: #e5c34e; color: #ffe58b; }
body.auth-dark .clock-panel { background: #102c21; border-color: rgba(167, 230, 182, .15); }
body.auth-dark .clock-panel strong { color: #81df9d; }
body.auth-dark .phone-shell select,
body.auth-dark .phone-shell .filter-arrow { background: #0c2419; color: #ecfff2; }
body.auth-dark .plus-date-filter { background: #123a29; border-color: rgba(167, 230, 182, .15); }
body.auth-dark .plus-date-filter label { color: #b8d8c4; }
body.auth-dark .plus-date-filter input { background: #164d34; border-color: #68c58b; color: #f1fff5; }
body.auth-dark .plus-date-filter .plus-date-status { color: #b8d8c4; }
body.auth-dark .phone-shell .hour-times small,
body.auth-dark .phone-shell .hour-total small { color: #a9c9b4; }
body.auth-dark .more-menu { background: #102c21; border-color: rgba(167, 230, 182, .2); }
body.auth-dark .more-menu button { color: #ecfff2; }
body.auth-dark .modal-card { background: #102c21; color: #ecfff2; }
body.auth-dark .modal-card input,
body.auth-dark .modal-card select,
body.auth-dark .modal-card input { background: #164d34; color: #f1fff5; border-color: #68c58b; }
body.auth-dark .modal-card input::placeholder { color: #b8d8c4; opacity: 1; }
body.auth-dark .modal-card input:focus,
body.auth-dark .modal-card select:focus { outline: 2px solid #b7e88b; outline-offset: 1px; }
body.auth-dark .modal-card input[type="checkbox"] { accent-color: #80c900; }

@media (min-width: 900px) {
  body { background: #032c20; }
  body:has(.phone-shell:not(.hidden)) { background: linear-gradient(135deg, #dff0d7, #f8fbdc); }
  body:has(.login-view:not(.hidden)), body:has(.landing-view:not(.hidden)) { background: #032c20; }
  .phone-shell { width: min(100% - 80px, 1180px); min-height: calc(100vh - 50px); margin: 25px auto; border-radius: 12px; overflow: hidden; }
  .app-header { grid-template-columns: 50px 1fr auto; min-height: 82px; padding: 20px 28px 10px; }
  .app-name { font-size: 24px; }
  .main-tabs { width: min(620px, 100%); margin-left: auto; margin-right: auto; }
  .filter-row, .range-row, .hours-list, .jobs-content, .plus-summary, .plus-notice, .home-summary, .home-actions { max-width: 920px; margin-left: auto; margin-right: auto; }
  .hours-list { border: 1px solid var(--line); }
  .hour-row { grid-template-columns: 1fr 160px 20px; min-height: 82px; }
  .floating-add { right: 34px; bottom: 34px; }
}

@media (max-width: 640px) {
  body { background: #0c2419; }
  .phone-shell { width: 100%; margin: 0; box-shadow: none; }
  .main-tabs { width: 100%; margin: 0; }
  .modal { place-items: center; overflow-y: auto; padding: 8px; }
  .modal-card { width: 100%; max-height: calc(100dvh - 16px); overflow-y: auto; padding: 14px; gap: 9px; }
  .settings-card { max-height: calc(100vh - 24px); overflow-y: auto; }
  .settings-card .schedule-row { grid-template-columns: 18px minmax(64px, 1fr) 70px 70px 52px; }
  .admin-page { padding: 14px 10px; }
  .admin-page-card { padding: 18px 14px; }
  .admin-overview { grid-template-columns: 1fr; }
  .admin-page-user { grid-template-columns: 1fr; }
  .ai-layout { display: block; }
  .plus-date-filter { grid-template-columns: 1fr 1fr; }
  .plus-date-filter .action-btn, .plus-date-filter .text-link { justify-self: start; }
  .ai-history { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .ai-history-list { display: flex; overflow-x: auto; }
  .ai-history-item { flex: 0 0 150px; }
  .ai-content { padding-top: 18px; }
}
