:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --team-blue: #02396c;
  --team-blue-soft: #eaf1f7;
  --team-border: #dbe3ea;
  --team-bg: #f4f7fa;
  --team-text: #17212b;
  --team-muted: #6c7885;
  --team-danger: #b42318;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--team-bg); color: var(--team-text); }
body { min-height: 100vh; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.team-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(160deg, #eef4f9 0%, #f8fafc 58%, #e8f0f6 100%);
}

.team-login-card {
  width: min(100%, 420px);
  padding: 30px 22px 24px;
  background: #fff;
  border: 1px solid var(--team-border);
  border-radius: 24px;
  box-shadow: 0 16px 45px rgba(2, 57, 108, .10);
}

.team-brand { font-size: 28px; font-weight: 700; color: var(--team-blue); letter-spacing: -.02em; }
.team-login-card h1 { margin: 26px 0 4px; font-size: 26px; }
.team-muted { margin: 0 0 24px; color: var(--team-muted); }
.team-login-card label { display: block; margin: 15px 0 7px; font-size: 14px; font-weight: 650; }
.team-login-card input,
.team-search-wrap input {
  width: 100%;
  border: 1px solid var(--team-border);
  border-radius: 14px;
  background: #fff;
  color: var(--team-text);
  outline: none;
}
.team-login-card input { min-height: 50px; padding: 0 14px; }
.team-login-card input:focus,
.team-search-wrap input:focus { border-color: var(--team-blue); box-shadow: 0 0 0 3px rgba(2,57,108,.10); }
.team-login-card button {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  border: 0;
  border-radius: 15px;
  background: var(--team-blue);
  color: #fff;
  font-weight: 700;
}
.team-login-card button:disabled { opacity: .6; }
.team-login-message { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: #fff4e5; color: #7a4d00; font-size: 14px; }
.team-login-status { min-height: 10px; }

.team-shell { min-height: 100vh; padding-bottom: 82px; }
.team-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: max(10px, env(safe-area-inset-top)) 18px 10px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--team-border);
  backdrop-filter: blur(14px);
}
.team-logo { color: var(--team-blue); font-size: 21px; font-weight: 800; }
.team-logo-sub { font-size: 18px; font-weight: 600; }
.team-icon-button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--team-blue-soft); color: var(--team-blue); font-size: 18px; }

.team-page-head { padding: 20px 16px 10px; }
.team-page-head h1 { margin: 0 0 14px; font-size: 26px; }
.team-search-wrap input { min-height: 46px; padding: 0 14px; }
.team-content { padding: 6px 14px 18px; }

.team-card {
  margin: 10px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--team-border);
  border-radius: 17px;
  box-shadow: 0 5px 16px rgba(30, 50, 70, .04);
}
.team-card > strong { display: block; font-size: 16px; }
.team-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.team-card-top strong:first-child { min-width: 0; line-height: 1.32; }
.team-card-sub { margin-top: 8px; color: var(--team-muted); font-size: 14px; }
.team-card-address { margin-top: 8px; line-height: 1.45; }
.team-badge { flex: 0 0 auto; max-width: 42%; padding: 5px 8px; border-radius: 999px; background: var(--team-blue-soft); color: var(--team-blue); font-size: 11px; font-weight: 700; text-align: center; }
.team-empty { margin: 24px 4px; padding: 22px; border-radius: 16px; background: #fff; color: var(--team-muted); text-align: center; border: 1px solid var(--team-border); }

.team-nav {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 70px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--team-border);
  backdrop-filter: blur(14px);
}
.team-nav button { border: 0; background: transparent; color: var(--team-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 650; }
.team-nav button.active { color: var(--team-blue); }
.team-nav-icon { font-size: 20px; line-height: 1; }

.team-week-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin: 2px 0 10px; }
.team-week-head button { height: 42px; border: 1px solid var(--team-border); border-radius: 12px; background: #fff; color: var(--team-blue); font-size: 26px; }
.team-week-head strong { text-align: center; font-size: 13px; }
.team-time-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.team-time-summary div { padding: 12px 8px; border: 1px solid var(--team-border); border-radius: 14px; background: #fff; text-align: center; }
.team-time-summary span { display: block; color: var(--team-muted); font-size: 11px; }
.team-time-summary strong { display: block; margin-top: 4px; font-size: 17px; }
.team-time-card { padding: 14px 16px; }

.team-toast {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  width: min(calc(100% - 28px), 440px);
  transform: translateX(-50%);
  padding: 13px 16px;
  border-radius: 14px;
  background: #18212a;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
  text-align: center;
  font-size: 14px;
}

@media (min-width: 700px) {
  .team-shell { width: min(100%, 760px); margin: 0 auto; border-left: 1px solid var(--team-border); border-right: 1px solid var(--team-border); background: var(--team-bg); }
  .team-nav { left: 50%; width: min(100%, 760px); transform: translateX(-50%); }
}
