@font-face { font-family: Pretendard; src: url('/pretendard.otf') format('opentype'); font-display: swap; }
:root { color-scheme: light; font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: #171819; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; display: grid; place-items: center; background: #fff; }
.device { width: min(397px, 100%); padding: 9px; border: 2px solid #a5a5a8; border-radius: 52px; background: #171717; }
.screen { height: min(812px, calc(100dvh - 46px)); display: flex; flex-direction: column; background: #fff; border-radius: 41px; overflow: auto; scrollbar-width: none; }
.status { min-height: 50px; padding: 11px 24px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 14px; }
.status i { width: 116px; height: 30px; background: #121212; border-radius: 999px; }
.status span:last-child { text-align: right; white-space: nowrap; }
main { width: 100%; padding: clamp(36px, 13dvh, 105px) 24px 20px; }
header { text-align: center; margin-bottom: clamp(32px, 8dvh, 65px); }
header h1 { margin: 0; font-size: 36px; letter-spacing: -.06em; line-height: 1.12; font-weight: 800; }
header p { margin: 11px 0 0; color: #777; font-size: 14px; }
input, button { font: inherit; }
form > label:not(.remember) { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
form > input + label { margin-top: 13px !important; }
input:not([type=checkbox]) { width: 100%; height: 38px; padding: 0 15px; border: 1px solid #d9d9dc; border-radius: 999px; font-size: 16px; color: inherit; background: #fff; min-width: 0; }
input::placeholder { color: #76777b; font-size: 13px; }
.password-row { display: grid; grid-template-columns: minmax(0,1fr) 36px; align-items: center; gap: 6px; }
#toggle-password { border: 0; background: none; color: #777; display: grid; place-items: center; padding: 8px; cursor: pointer; }
#toggle-password svg { width: 19px; }
#toggle-password[aria-pressed=true] .eye-slash { display: none; }
.remember { display: flex; align-items: center; gap: 8px; margin: 19px 0; font-size: 13px; color: #56585c; cursor: pointer; }
.remember input { appearance: none; margin: 0; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #98999b; display: grid; place-items: center; }
.remember input:checked { background: #00bbc4; border-color: #00bbc4; }
.remember input:checked::after { content: ''; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
#login-button, #logout { width: 100%; min-height: 52px; border: 0; border-radius: 12px; background: #222; color: #fff; font-weight: 600; cursor: pointer; }
#login-button:disabled { background: #f1f1f1; color: #777; cursor: default; }
#login-error, #logout-error { min-height: 16px; margin: 8px 0 0; font-size: 12px; color: #a22632; }
#signed-in { text-align: center; }
footer { margin-top: auto; padding: 12px 14px 17px; text-align: center; color: #777; font-size: 12px; }
footer p { margin: 0 0 7px; }
.home-indicator { margin: 4px auto 9px; width: 130px; min-height: 5px; border-radius: 999px; background: #111; }
@media (max-width: 600px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  .device { width: 100%; padding: 0; border: 0; border-radius: 0; }
  .screen { height: 100dvh; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
  .status, .home-indicator { display: none; }
}

.screen.is-signed-in { overflow: hidden; background: #f7f8fa; }
.is-signed-in .login-view, .is-signed-in > footer, .is-checking-session > footer { display: none; }
#signed-in { --screen-gutter: 14px; display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 0; text-align: left; }
.app-header { margin: 0; padding: 10px var(--screen-gutter); text-align: left; }
.app-header h2 { margin: 0; font-size: 20px; line-height: 28px; }
.app-header h2:focus { outline: none; }
.app-content { flex: 1; min-height: 0; overflow: auto; padding: 8px var(--screen-gutter) 16px; }
.launchpad {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgb(44 101 130 / 10%);
}
.commerce-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(76px, auto));
  gap: 4px 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.shop-shortcut { display: grid; justify-items: center; gap: 5px; text-align: center; font-size: 13px; color: inherit; text-decoration: none; }
.shop-shortcut span { display: grid; place-items: center; width: 60px; max-width: 100%; aspect-ratio: 1; border: 1px solid #e3e7eb; border-radius: 18px; background: #fff; }
.shop-shortcut img { display: block; width: 60px; max-width: 100%; height: auto; border-radius: 18px; }
.shop-shortcut svg { width: 28px; max-width: 60%; fill: currentColor; }
.payment-link { display: inline-block; color: inherit; padding: 12px 0; }

.presence-dashboard { display: none; }
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .presence-dashboard {
    display: block;
    position: fixed;
    top: max(24px, calc((100dvh - 760px) / 2));
    left: calc(50% + 246px);
    width: min(320px, calc(50% - 270px));
    padding: 24px;
    border: 1px solid #e4e8ed;
    border-radius: 20px;
    background: #f7f9fb;
  }
  .presence-dashboard h2 { margin: 0; font-size: 15px; font-weight: 600; }
  .presence-dashboard p { margin: 10px 0 0; font-size: 32px; font-weight: 700; }
}

.profile-card { margin-bottom: 12px; padding: 0 14px; border: 1px solid #e8edf0; border-radius: 16px; background: #fff; }
.profile-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; font-size: 14px; }
.profile-row + .profile-row { border-top: 1px solid #eef1f2; }
.profile-row:first-child { padding-block: 12px; }
.profile-avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border-radius: 50%; color: #246080; background: #e2f4fc; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-detail { flex: 1; display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.profile-detail span, #profile-login-id { color: #626b73; }
.profile-action { flex: none; padding: 6px 12px; border: 1px solid #d5d9df; border-radius: 8px; background: #fff; color: #1f292f; font-size: 13px; cursor: pointer; }
#profile-password-form, #profile-nickname-form { display: grid; gap: 8px; padding: 0 0 14px; }
#profile-password-form button, #profile-nickname-form button { justify-self: end; background: #212121; border-color: #212121; color: #fff; }
.profile-action:disabled { opacity: .5; cursor: default; }
#profile-notice { margin: 0 0 12px; color: #315d72; font-size: 13px; }

.profile-notification-label { font-weight: 700; cursor: pointer; }
.profile-switch {
  appearance: none;
  display: inline-flex;
  align-items: center;
  width: 42px;
  height: 24px;
  margin: 0;
  padding: 2px;
  border: 1px solid #c5ced7;
  border-radius: 999px;
  background: #e3e8ee;
  cursor: pointer;
}
.profile-switch::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.profile-switch:checked { justify-content: flex-end; border-color: #4cc5f9; background: #4cc5f9; }
.profile-switch:focus-visible { outline: 2px solid #23759c; outline-offset: 2px; }

.profile-nickname { flex: 1; min-width: 0; overflow-wrap: anywhere; text-align: right; color: #626b73; }
