:root {
  --ink: #f7f8f3;
  --muted: #bdc8c0;
  --forest-950: #07100c;
  --forest-900: #0d1c14;
  --forest-850: #11251a;
  --forest-800: #173322;
  --forest-700: #245036;
  --copper: #c97743;
  --copper-bright: #e49a66;
  --line: rgba(255, 255, 255, .11);
  --glass: rgba(10, 23, 16, .72);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-width: 320px;
  color: var(--ink);
  background: var(--forest-950);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(228, 154, 102, .72);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hidden { display: none !important; }
.browser-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  overflow: hidden;
  background: var(--forest-950);
}

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(14px, 2.4vw, 34px);
  background: #09150f;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #2f6644, #10271a 65%);
  border: 2px solid var(--copper);
  box-shadow: inset 0 0 0 3px rgba(7, 16, 12, .54), 0 6px 16px rgba(0, 0, 0, .2);
}
.brand-mark span {
  color: var(--copper-bright);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 800;
  transform: translateY(-1px);
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 1.1rem; letter-spacing: .16em; }
.brand-copy small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.account-actions { display: flex; align-items: center; gap: 7px; }
.icon-action, .profile-button, .new-tab, .toolbar button {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.icon-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #dce5de;
}
.icon-action:hover, .toolbar button:hover, .new-tab:hover { background: rgba(255, 255, 255, .08); }
.profile-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-color: rgba(228, 154, 102, .48);
  border-radius: 999px;
  background: rgba(201, 119, 67, .12);
  font-weight: 750;
}
.profile-button:hover { background: rgba(201, 119, 67, .24); }
.profile-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--copper-bright), #7d3c22);
  box-shadow: inset 0 0 0 5px rgba(7, 16, 12, .24);
}

.tabs-row {
  min-height: 44px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 7px 12px 0;
  background: #0b1710;
}
.tabs {
  display: flex;
  align-items: end;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tab {
  min-width: 160px;
  max-width: 230px;
  min-height: 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  border-radius: 11px 11px 0 0;
  color: #b8c5bc;
  background: rgba(255, 255, 255, .045);
  cursor: pointer;
  user-select: none;
}
.tab.active {
  color: #fff;
  background: #172b1e;
  box-shadow: inset 0 2px 0 var(--copper);
}
.tab-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tab-close {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  opacity: .76;
}
.tab-close:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.new-tab {
  width: 36px;
  height: 36px;
  margin-bottom: 2px;
  border-radius: 10px;
  font-size: 1.35rem;
}

.toolbar {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  background: #172b1e;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  z-index: 4;
}
.navigation-buttons { display: flex; align-items: center; }
.navigation-buttons button, .toolbar-menu {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.15rem;
}
.address-form {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  padding: 0 6px 0 13px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: #0c1a12;
  transition: border-color .2s, box-shadow .2s;
}
.address-form:focus-within {
  border-color: rgba(228, 154, 102, .64);
  box-shadow: 0 0 0 3px rgba(201, 119, 67, .12);
}
.privacy-mark { color: #7eb38e; font-weight: 800; }
.address-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #f4f7f4;
  background: transparent;
}
.address-form input::placeholder { color: #93a399; opacity: 1; }
.address-form #starBtn { width: 34px; height: 34px; color: #d8c2b2; font-size: 1.2rem; }

.home {
  position: relative;
  min-height: calc(100vh - 172px);
  overflow: auto;
  display: grid;
  place-items: center;
  background-color: #183925;
  background-image: url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=2200&q=88");
  background-position: center;
  background-size: cover;
}
.scenic-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(38, 74, 48, .12), rgba(4, 10, 6, .28) 55%, rgba(3, 8, 5, .72) 100%),
    linear-gradient(180deg, rgba(3, 10, 6, .22), rgba(3, 10, 6, .48));
}
.home-content {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100vw - 36px));
  min-height: calc(100vh - 210px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px 0 24px;
  text-align: center;
}
.welcome-line {
  margin-bottom: 9px;
  color: #e4eadf;
  font-size: .92rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.hero-wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 8.3vw, 7.2rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: .08em;
  text-shadow: 0 7px 30px rgba(0, 0, 0, .48);
}
.hero-company {
  margin-top: 9px;
  color: #f0d3bc;
  font-size: clamp(.86rem, 1.5vw, 1rem);
  font-weight: 750;
  letter-spacing: .15em;
}
.home h1 {
  margin: 18px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 500;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .52);
}
.hero-search {
  width: min(720px, 100%);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 18px;
  background: rgba(248, 249, 246, .96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .27);
}
.search-icon {
  margin-left: 11px;
  color: #295239;
  font-size: 1.75rem;
  transform: rotate(-15deg);
}
.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #14241a;
  background: transparent;
  font-size: 1.06rem;
}
.hero-search input::placeholder { color: #5f6e64; opacity: 1; }
.hero-search button {
  min-height: 46px;
  padding: 0 23px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #b96336, #d58650);
  font-weight: 800;
  cursor: pointer;
}
.hero-search button:hover { filter: brightness(1.08); }
.service-dock {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 9px;
  margin-top: 24px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: rgba(6, 17, 10, .62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .25);
  backdrop-filter: blur(18px);
}
.service {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 5px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #eff4ef;
  background: transparent;
  cursor: pointer;
}
.service:hover, .service:focus-visible {
  border-color: rgba(228, 154, 102, .44);
  background: rgba(255, 255, 255, .09);
  transform: translateY(-2px);
}
.service.active { background: rgba(201, 119, 67, .14); }
.service-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #f0cbb1;
  background: rgba(40, 87, 57, .82);
  font-size: 1.3rem;
  font-weight: 800;
}
.weather-icon { color: #fff2aa; background: rgba(157, 105, 32, .68); }
.service > span:last-child { font-size: .78rem; font-weight: 700; }
.home-footer {
  width: min(900px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  color: rgba(255, 255, 255, .86);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.home-footer button {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 17, 10, .5);
  cursor: pointer;
  backdrop-filter: blur(10px);
}
#clock { font-weight: 700; }

.panel {
  min-height: calc(100vh - 172px);
  overflow: auto;
  padding: clamp(22px, 4vw, 54px) 18px;
  background:
    radial-gradient(circle at 15% 0%, rgba(57, 114, 76, .26), transparent 35%),
    var(--forest-950);
}
.panel-card {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(16, 37, 25, .9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.panel h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.panel-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
}
.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.item-row:last-child { border-bottom: 0; }
.item-row a { color: #f2c8aa; text-decoration: none; }
.item-row button, .panel-card select {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  background: #1a4029;
  cursor: pointer;
}
.muted { margin-top: 4px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.service-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
}
.service-card strong { display: block; margin-bottom: 7px; font-size: 1.05rem; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.status-pill {
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #f0cbb1;
  background: rgba(201, 119, 67, .14);
  font-size: .78rem;
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 4, .8);
  backdrop-filter: blur(12px);
}
.signin-card {
  position: relative;
  z-index: 1;
  width: min(460px, 96vw);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px;
  background: #102319;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}
.signin-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .13em; }
.signin-brand > span:last-child { display: grid; }
.signin-brand small { margin-top: 2px; color: var(--muted); font-size: .68rem; letter-spacing: .04em; }
.signin-card h2 { margin: 24px 0 8px; font-family: Georgia, serif; font-size: 1.9rem; }
.signin-card p { color: var(--muted); line-height: 1.5; }
.signin-card label { display: block; margin-top: 14px; font-size: .9rem; font-weight: 750; }
.signin-card input {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #45634f;
  border-radius: 12px;
  color: #fff;
  background: #09160f;
}
.signin-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 20px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #a9532e, #d9854f);
  font-weight: 800;
  cursor: pointer;
}
.signin-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 15px; }
.signin-meta button, .modal-close { border: 0; color: #f0cbb1; background: transparent; cursor: pointer; }
.modal-close { position: absolute; top: 13px; right: 16px; font-size: 2rem; }
.signin-note { font-size: .78rem; }
.toast {
  position: fixed;
  z-index: 1100;
  right: 18px;
  bottom: 18px;
  max-width: min(380px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid rgba(228, 154, 102, .46);
  border-radius: 12px;
  color: #fff;
  background: #183724;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}

@media (max-width: 860px) {
  .action-label { display: none; }
  .icon-action { width: 40px; justify-content: center; }
  .service-dock { grid-template-columns: repeat(4, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .topbar { min-height: 62px; padding: 9px 12px; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-copy strong { font-size: .95rem; }
  .brand-copy small { font-size: .67rem; }
  .account-actions .icon-action:nth-child(1),
  .account-actions .icon-action:nth-child(2) { display: none; }
  .profile-button { padding: 8px 11px; }
  .tabs-row { padding-left: 8px; }
  .tab { min-width: 136px; }
  .toolbar { gap: 4px; padding: 8px; }
  .navigation-buttons button { width: 34px; height: 36px; }
  #forwardBtn { display: none; }
  .toolbar-menu { width: 34px !important; }
  .address-form { min-height: 40px; padding-left: 10px; }
  .home { min-height: calc(100vh - 166px); align-items: start; }
  .home-content { min-height: calc(100vh - 176px); padding-top: 48px; justify-content: flex-start; }
  .welcome-line { font-size: .74rem; }
  .hero-wordmark { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-company { font-size: .75rem; }
  .home h1 { margin: 14px 0 18px; font-size: 1.32rem; }
  .hero-search { min-height: 58px; border-radius: 16px; }
  .hero-search button { padding: 0 15px; }
  .service-dock { margin-top: 19px; padding: 8px; gap: 5px; border-radius: 17px; }
  .service { min-height: 78px; }
  .service-icon { width: 33px; height: 33px; }
  .home-footer { font-size: .82rem; }
  #clock { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .item-row { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: no-preference) {
  .service, .hero-search button, .profile-button { transition: transform .2s ease, background .2s ease, filter .2s ease; }
  .home-content { animation: settle .7s ease-out both; }
  @keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}
