@font-face { font-family: 'Auth Pretendard'; font-style: normal; font-weight: 400; font-display: swap; src: url('./Pretendard-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Auth Pretendard'; font-style: normal; font-weight: 500; font-display: swap; src: url('./Pretendard-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Auth Pretendard'; font-style: normal; font-weight: 600; font-display: swap; src: url('./Pretendard-SemiBold.woff2') format('woff2'); }
:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eeedf5;
  --muted: #b0adbf;
  --line: #363443;
  --bg: #17161e;
  --white: #22212c;
  --accent: #b9a0ff;
  --accent-bg: #353047;
}
body, .sidebar, .topbar, .panel, .modal, .field, .btn, .login-form, .workspace {
  background-color: var(--white);
  color: var(--ink);
}
body, .shell { background: var(--bg); }
.sidebar { overflow-y: auto; }
.hero { background: var(--accent-bg); color: var(--ink); }
.btn.primary { background: #7452cf; color: #fff; }
.nav details { margin-bottom: 4px; }
.nav summary { padding: 11px; cursor: pointer; }
.nav a { display: block; padding: 9px 12px; }
.nav details a { padding-left: 28px; }
.nav a.active { color: var(--accent); background: var(--accent-bg); border-radius: 8px; }
.nav-label { color: var(--muted); font-size: 10px; margin: 20px 12px 8px; letter-spacing: 1.5px; }
.profile { margin-top: 14px; }
.field { border: 1px solid var(--line); width: 100%; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { position: relative; width: min(440px, 100%); padding: 36px; font-family: 'Auth Pretendard', 'Noto Sans CJK KR', sans-serif; font-size: 14px; font-weight: 400; line-height: 1.4; letter-spacing: -.025em; }
.login-card h1 { margin: 30px 0 12px; font-size: 28px; font-weight: 600; line-height: 1.3; }
.login-card .btn { margin-top: 24px; display: flex; justify-content: center; }
.login-card .brand { padding: 0 0 28px; font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.auth-themes { position: absolute; top: 20px; right: 20px; display: flex; gap: 4px; }
.auth-themes button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.auth-themes button[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent); }
.auth-themes button:hover { background: var(--accent-bg); }
.auth-themes svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-card .auth-google { min-height: 44px; gap: 12px; font-size: 14px; font-weight: 500; }
.google-mark { width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: white; }
.login-card .auth-intro { margin: 0; }
.login-card .muted { color: #706b7b; }
:root[data-theme="dark"] .login-card .muted { color: var(--muted); }
.login-card .auth-help { font-size: 13px; line-height: 1.4; margin: 16px 0 24px; }
.auth-link { display: block; width: fit-content; margin: 0 auto; font-size: 14px; font-weight: 500; color: var(--accent); }
.auth-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-update { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: #706b7b; }
:root[data-theme="dark"] .auth-update { color: var(--muted); }
.join-review { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.join-review .label { margin: 0; }
.join-request { gap: 24px; flex-wrap: wrap; }
.join-request > div { min-width: 180px; overflow-wrap: anywhere; }
.join-role-help { font-size: 12px; line-height: 1.8; margin: 18px 20px; }
.review-access { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 12px 16px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.review-access label { display: flex; align-items: center; gap: 12px; }
.review-access .field { width: auto; }
.join-review .field { display: block; min-width: 140px; }
.join-error { flex-basis: 100%; margin: 0; color: var(--red); }
.join-status { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--muted); }
@media(max-width:480px) { .login-card { padding: 56px 24px 28px; } .join-request { align-items: start; flex-direction: column; } }
.notice { padding: 15px 18px; background: var(--accent-bg); border-radius: 10px; margin: 16px 0; }
.empty { padding: 34px 20px; color: var(--muted); }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); }
.list-row.join-request { align-items: start; gap: 24px; }
.list-row small { display: block; color: var(--muted); margin-top: 5px; }
.list-row select { width: auto; max-width: 145px; }
.calendar-list { min-height: 210px; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.modal { max-height: 85vh; overflow: auto; }
dialog { color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 16px; width: min(470px, 92vw); padding: 28px; }
dialog::backdrop { background: #14101b88; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-head h2 { margin: 0; }
.version { color: var(--muted); font-size: 11px; padding: 16px 12px; }
.cards .panel { padding: 22px; }
.muted { color: var(--muted); }
.status-pill { color: var(--accent); background: var(--accent-bg); padding: 3px 8px; border-radius: 6px; font-size: 11px; }
.day-heading { font-size: 12px; color: var(--muted); padding: 14px 20px 5px; }
@media (max-width: 720px) {
  .list-row { flex-wrap: wrap; }
  .sidebar { background: var(--white); }
}

/* V1.1 company Google calendars */
.gcal-panel { padding: 24px; margin-bottom: 22px; }
.gcal-panel .panel-head { padding: 0 0 16px; flex-wrap: wrap; gap: 14px; }
.gcal-panel h2 { margin-top: 12px; }
.gcal-actions, .gcal-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gcal-toolbar { padding: 10px 0 20px; }
.gcal-toolbar strong { min-width: 100px; text-align: center; }
.gcal-scroll { overflow-x: auto; margin-bottom: 18px; }
.gcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 630px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.gcal-day, .gcal-weekday { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 7px; }
.gcal-weekday { text-align: center; color: var(--muted); font-size: 12px; }
.gcal-day { min-height: 120px; }
.gcal-day.today { background: var(--accent-bg); }
.gcal-date { border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 4px; }
.gcal-event, .gcal-task { display: block; width: 100%; border: 0; border-radius: 5px; background: var(--accent-bg); color: var(--accent); font-size: 11px; text-align: left; padding: 5px; margin: 4px 0; overflow-wrap: anywhere; }
.gcal-event { cursor: pointer; }
.gcal-task { color: var(--muted); background: var(--bg); }
.gcal-note { font-size: 12px; margin-top: 20px; line-height: 1.7; }
.gcal-description { white-space: pre-wrap; overflow-wrap: anywhere; }
#gcal-event-form textarea { min-height: 85px; }
@media (max-width: 720px) { .gcal-panel { padding: 16px; } }

/* Top bar, 3rd round (Hankyu 2026-10-19): store buttons · period · search · bell · two-line clock. */
.topbar { gap: 12px; flex-wrap: wrap; height: auto; min-height: 64px; padding: 8px 24px; position: sticky; top: 0; z-index: 20; background: var(--white); }
.crumb b { color: var(--ink); font-weight: 650; font-size: 13px; }
.crumb-store { color: var(--muted); }
.top-stores { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.top-store { font-size: 12px; font-weight: 650; padding: 6px 10px; border-radius: 7px; border: 1px solid transparent; opacity: .6; transition: .15s; line-height: 1.2; }
.top-store:hover { opacity: .9; }
.top-store.on { opacity: 1; border-color: currentColor; box-shadow: 0 0 0 2px var(--white), 0 0 0 3px currentColor; }
.top-store-all { background: var(--bg); color: var(--ink); }
.header-actions { margin-left: auto; gap: 6px; flex-wrap: wrap; }
.top-ico { font-size: 13px; line-height: 1; opacity: .8; }
.top-period small { color: var(--muted); font-weight: 400; margin-left: 2px; }
.top-caret { font-size: 10px; opacity: .6; }
.top-search kbd { font: 10px Pretendard, sans-serif; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; color: var(--muted); margin-left: 2px; }
.top-bell { position: relative; font-size: 15px; border: 1px solid var(--line); border-radius: 8px; }
.top-badge { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1; }
.top-clock { display: grid; text-align: right; line-height: 1.25; padding: 0 6px; font-variant-numeric: tabular-nums; }
.top-clock b { font-size: 12px; font-weight: 650; color: var(--ink); }
.top-clock span { font-size: 11px; color: var(--muted); }
.top-pop-wrap { position: relative; }
.top-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px #22222226; padding: 12px; z-index: 30; }
.top-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.top-pop-head b { font-size: 13px; }
.top-pop-label { font-size: 10px; letter-spacing: 1px; color: var(--muted); margin: 10px 4px 4px; }
.top-pop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.top-pop-item { text-align: left; font-size: 12px; padding: 7px 10px; border-radius: 7px; color: var(--ink); }
.top-pop-item:hover { background: var(--bg); }
.top-pop-item.on { background: var(--accent-bg); color: var(--accent); font-weight: 650; }
.top-pop-form { display: flex; align-items: center; gap: 6px; }
.top-pop-form .field { padding: 6px 8px; font-size: 12px; }
.top-pop-form span { color: var(--muted); }
.top-pop-note { font-size: 10.5px; margin: 8px 4px 0; }
.top-notify { width: 360px; max-height: 70vh; overflow: auto; }
.top-note { display: block; padding: 10px 12px; border-left: 3px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: var(--bg); }
.top-note:hover { background: var(--accent-bg); }
.top-note.red { border-left-color: var(--red); }
.top-note.orange { border-left-color: var(--orange); }
.top-note.green { border-left-color: var(--green); }
.top-note b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink); }
.top-note b em { font-style: normal; font-size: 9px; color: var(--accent); font-weight: 700; letter-spacing: .5px; }
.top-note span { display: block; font-size: 11.5px; color: var(--ink); margin-top: 3px; line-height: 1.5; }
.top-note small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.top-note:not(.unread) b, .top-note:not(.unread) span { opacity: .65; }
.search-list { max-height: 50vh; overflow: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; }
.search-item { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 14px; font-size: 13px; color: var(--ink); border-bottom: 1px solid var(--line); text-align: left; }
.search-item:last-child { border-bottom: 0; }
.search-item:hover, .search-item:focus { background: var(--accent-bg); }
.search-item small { color: var(--muted); font-size: 11px; }
@media (max-width: 950px) { .top-clock { display: none; } .top-search kbd { display: none; } }
@media (max-width: 720px) { .top-stores { order: 3; width: 100%; } .top-pop { width: min(92vw, 360px); } }
/* 광고 — 한규 손이 필요한 일 (hand-view.js). Drawn above every owner page only while something is open. */
.hand { margin: 0 0 20px; padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; }
.hand-title { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.hand-title span { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--red); }
.hand-list { list-style: none; margin: 0; padding: 0; }
.hand-item { padding: 12px 0; border-top: 1px solid var(--line); }
.hand-item:first-child { border-top: 0; }
.hand-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 12.5px; color: var(--muted); }
.hand-meta b { font-size: 13px; color: var(--ink); }
.hand-what { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.hand-todo { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.hand-link { display: inline-block; margin-top: 8px; padding: 6px 0; font-size: 13px; font-weight: 600; color: var(--accent); }
.hand-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hand-note { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
