:root {
  --navy: #173f5f;
  --navy-deep: #102f49;
  --teal: #1c9b8f;
  --teal-soft: #dff5f1;
  --blue: #3478a8;
  --amber: #d88a22;
  --amber-soft: #fff2dc;
  --red: #d14b4b;
  --red-soft: #fde9e9;
  --ink: #1d2a34;
  --muted: #697985;
  --line: #dbe3e7;
  --surface: #ffffff;
  --background: #f3f6f7;
  --shadow: 0 12px 32px rgba(27, 53, 72, .08);
  --radius: 18px;
  font-family: "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; min-height: 100vh; background: var(--background); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 10px; color: #9edbd3; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.eyebrow.dark { color: var(--teal); }

.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1.05fr) minmax(420px, .95fr); }
.login-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(52px, 6vw, 88px); color: white; background: linear-gradient(145deg, var(--navy-deep), var(--navy) 62%, #1c6170); }
.login-brand::before, .login-brand::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.13); }
.login-brand::before { width: 560px; height: 560px; right: -260px; top: -220px; }
.login-brand::after { width: 380px; height: 380px; right: -80px; bottom: -240px; background: rgba(96,215,199,.06); }
.brand-mark { position: relative; z-index: 1; width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 34px; border-radius: 16px; color: var(--navy); background: #60d7c7; font-weight: 900; letter-spacing: -.04em; box-shadow: 0 12px 24px rgba(0,0,0,.15); }
.brand-mark.small { width: 40px; height: 40px; margin: 0; border-radius: 11px; font-size: 14px; }
.login-brand h1 { position: relative; z-index: 1; max-width: 620px; margin: 0; font-size: clamp(34px, 3.4vw, 52px); line-height: 1.28; letter-spacing: -.035em; }
.brand-copy { position: relative; z-index: 1; max-width: 530px; margin: 28px 0; line-height: 1.9; color: rgba(255,255,255,.74); }
.brand-points { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
.brand-points span { padding: 8px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.82); font-size: 12px; }
.login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 44px; background: #fbfcfc; }
.login-card { width: min(420px, 100%); }
.login-card h2 { margin: 0; font-size: 34px; }
.login-card > .muted { margin: 10px 0 32px; line-height: 1.7; }
.portal-user { margin: -18px 0 24px; color: var(--navy); font-size: 13px; font-weight: 800; }
.service-options { display: grid; gap: 12px; }
.service-option { display: grid; grid-template-columns: 46px 1fr auto auto; gap: 12px; align-items: center; width: 100%; min-height: 82px; padding: 14px; color: var(--ink); text-align: left; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 7px 20px rgba(27,53,72,.06); transition: border-color .16s, box-shadow .16s, transform .1s; }
.service-option:hover:not(:disabled) { border-color: var(--teal); box-shadow: 0 10px 24px rgba(28,155,143,.13); }
.service-option:active:not(:disabled) { transform: scale(.985); }
.service-option:focus-visible { outline: 3px solid rgba(28,155,143,.2); outline-offset: 2px; }
.service-option:disabled { cursor: not-allowed; opacity: .62; box-shadow: none; }
.service-option-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--navy); font-size: 16px; font-weight: 900; }
.service-option-icon.sales { color: var(--navy-deep); background: #60d7c7; }
.service-option-copy { min-width: 0; display: grid; gap: 4px; }
.service-option-copy strong { color: var(--navy-deep); font-size: 16px; }
.service-option-copy small { color: var(--muted); font-size: 11px; }
.service-arrow { color: var(--teal); font-size: 19px; font-weight: 900; }
.service-status { padding: 5px 8px; border-radius: 999px; color: #744909; background: var(--amber-soft); font-size: 10px; font-weight: 900; white-space: nowrap; }
.service-status.no-entitlement { color: #8a3333; background: var(--red-soft); }
.selected-service-label { display: inline-flex; margin: 12px 0 0; padding: 6px 10px; color: var(--navy); background: var(--teal-soft); border-radius: 999px; font-size: 11px; font-weight: 800; }
.portal-text-button { display: block; width: 100%; margin-top: 18px; padding: 10px; color: var(--navy); border: 0; background: transparent; font-size: 12px; font-weight: 800; }
.portal-text-button:hover { text-decoration: underline; }
.mobile-brand { display: none; align-items: center; gap: 12px; margin-bottom: 42px; color: var(--navy); }
label { display: grid; gap: 8px; margin: 18px 0; color: #42515c; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: white; border: 1px solid #cfd9de; border-radius: 10px; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28,155,143,.12); }
.button { border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 800; }
.button.primary { color: white; background: var(--navy); box-shadow: 0 8px 18px rgba(23,63,95,.2); }
.button.primary:hover { background: var(--navy-deep); }
.button.wide { width: 100%; margin-top: 10px; padding: 14px; }
.button.ghost { color: var(--ink); background: #edf1f3; }
.warning-button { color: #75460a; background: #ffd99c; }
.login-footer { margin-top: 42px; color: #91a0aa; font-size: 12px; }
.demo-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; padding: 15px; background: #edf6f5; border-radius: 12px; font-size: 12px; }
.demo-accounts strong, .demo-accounts small { grid-column: 1 / -1; }
.demo-accounts button { padding: 8px; color: var(--navy); border: 1px solid #b9dcd8; border-radius: 8px; background: white; font-weight: 700; }

.app-layout { --sidebar-width: 250px; min-height: 100vh; background: var(--background); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 26px 18px 20px; color: white; background: var(--navy-deep); }
.app-logo { display: flex; align-items: center; gap: 11px; padding: 0 10px 28px; }
.uploaded-app-logo { width: 64px; height: 40px; object-fit: contain; object-position: center; }
.app-logo > span:last-child { display: grid; }
.app-logo small { margin-top: 3px; color: #86a2b6; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
#main-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 5px; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.24) transparent; }
#main-nav::-webkit-scrollbar { width: 6px; }
#main-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.24); border-radius: 999px; }
#main-nav::-webkit-scrollbar-track { background: transparent; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; color: #aac0cf; text-align: left; text-decoration: none; border: 0; border-radius: 10px; background: transparent; }
.nav-item span { width: 18px; color: #6e95ab; text-align: center; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.09); }
.nav-item.active span { color: #60d7c7; }
.nav-divider { height: 1px; margin: 16px 12px 12px; background: rgba(255,255,255,.1); }
.nav-caption { margin: 0 14px 5px; color: #607f94; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.sidebar-user { flex: 0 0 auto; display: grid; grid-template-columns: 38px 1fr 28px; gap: 10px; align-items: center; margin-top: 10px; padding: 15px 10px 2px; border-top: 1px solid rgba(255,255,255,.1); cursor: pointer; }
.sidebar-user > div:nth-child(2) { min-width: 0; display: grid; }
.sidebar-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.sidebar-user small { color: #7896a9; font-size: 10px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: #60d7c7; font-weight: 900; }
#logout-button { color: #7997aa; border: 0; background: transparent; font-size: 18px; }
.mobile-header { display: none; }

.content { min-width: 0; margin-left: var(--sidebar-width); padding: 42px clamp(24px, 4vw, 62px) 22px; }
.page-view { width: min(1240px, 100%); min-width: 0; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { margin: 0; color: var(--navy-deep); font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; }
.page-heading .muted { margin: 8px 0 0; }
.server-clock { min-width: 158px; padding: 13px 18px; text-align: right; border-left: 2px solid var(--teal); }
.server-clock span, .server-clock small { display: block; color: var(--muted); font-size: 10px; }
.server-clock strong { display: block; margin: 3px 0; color: var(--navy); font-size: 25px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 20px; padding: 16px 18px; border-radius: 13px; }
.notice p { margin: 4px 0 0; font-size: 13px; }
.notice.warning { color: #69450f; background: var(--amber-soft); border: 1px solid #f2d29d; }
.notice.info { color: #176a62; background: var(--teal-soft); border: 1px solid #b9e6df; }
.notice.info span { font-size: 12px; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid #e4eaed; border-radius: var(--radius); box-shadow: var(--shadow); }
.punch-card, .summary-card, .timeline-card { padding: 24px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-kicker { margin: 0 0 5px; color: #91a0a8; font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.card-heading h2 { margin: 0; color: var(--navy-deep); font-size: 21px; }
.status-dot { width: 12px; height: 12px; margin-top: 8px; border: 3px solid #e5eaed; border-radius: 50%; background: #9eabb3; box-shadow: 0 0 0 5px #f2f4f5; }
.status-dot.active { background: var(--teal); box-shadow: 0 0 0 5px var(--teal-soft); border-color: white; }
.status-dot.break { background: var(--amber); box-shadow: 0 0 0 5px var(--amber-soft); border-color: white; }
.status-dot.completed { background: var(--blue); box-shadow: 0 0 0 5px #e6f0f7; border-color: white; }
.punch-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.punch-button { min-height: 136px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 8px; color: #54646e; border: 1px solid #dde5e8; border-radius: 14px; background: #f9fbfb; transition: transform .18s, color .18s, border-color .18s, background .18s, box-shadow .18s; }
.punch-button:hover:not(:disabled), .punch-button.recommended { transform: translateY(-2px); color: var(--navy); border-color: #86ccc4; background: #f2fbf9; box-shadow: 0 8px 18px rgba(28,155,143,.12); }
.punch-button.wake-up { color: #825a08; border-color: #ead8a9; background: #fff9e8; }.punch-button.wake-up .punch-icon { color: #9c6900; background: #fff2bd; }
.punch-button.departure { color: #176596; border-color: #bfdbea; background: #f1f8fc; }.punch-button.departure .punch-icon { color: #176596; background: #dceef8; }
.punch-button.arrival { color: #13756b; border-color: #b9e2dd; background: #effaf8; }.punch-button.arrival .punch-icon { color: #13756b; background: #d9f2ee; }
.punch-button.clock-out { color: #593d8c; border-color: #d5c9e8; background: #f7f3fc; }.punch-button.clock-out .punch-icon { color: #593d8c; background: #ebe2f7; }
.punch-button.break-in, .punch-button.break-out { color: #9a5613; border-color: #efd1ae; background: #fff6ec; }.punch-button.break-in .punch-icon, .punch-button.break-out .punch-icon { color: #9a5613; background: #ffe7cc; }
.punch-button:disabled { cursor: not-allowed; opacity: .42; }
.punch-button strong { font-size: 15px; }
.punch-button small { color: #92a0a8; font-size: 9px; }
.punch-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 4px; color: var(--navy); background: white; border: 1px solid #e0e7ea; border-radius: 12px; font-size: 19px; font-weight: 900; }
.punch-help { margin: 14px 0 0; color: #93a0a8; font-size: 10px; text-align: center; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 5px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.badge.neutral { color: #6d7b84; background: #edf1f3; }
.badge.success { color: #13756b; background: var(--teal-soft); }
.badge.warning { color: #8d570d; background: var(--amber-soft); }
.plan-list { margin: 22px 0; }
.plan-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf1f3; }
.plan-list dt { color: var(--muted); font-size: 12px; }
.plan-list dd { margin: 0; color: var(--navy-deep); font-size: 13px; font-weight: 800; text-align: right; }
.break-meter { margin-top: 20px; padding: 16px; border-radius: 12px; background: #f4f8f8; }
.break-meter > div:first-child { display: flex; justify-content: space-between; font-size: 12px; }
.break-meter small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.meter { height: 6px; overflow: hidden; margin-top: 10px; border-radius: 6px; background: #dce7e7; }
.meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--teal); transition: width .3s; }
.timeline-card { margin-top: 20px; }
.text-button { color: var(--teal); border: 0; background: transparent; font-size: 12px; font-weight: 800; }
.map-link { margin-left: 4px; color: var(--teal); font-size: 10px; font-weight: 800; text-decoration: none; }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; margin-top: 22px; padding-bottom: 4px; }
.timeline.empty { display: block; padding: 24px; color: #8b989f; text-align: center; background: #f8fafb; border-radius: 12px; }
.event-item { min-width: 0; padding: 13px; border-left: 3px solid var(--teal); border-radius: 7px; background: #f5f9f9; }
.event-location { margin-top: 7px; padding-top: 7px; border-top: 1px solid #dae5e5; line-height: 1.55; word-break: break-word; }
.record-break-meter { margin-bottom: 2px; }
.event-item.auto { border-color: var(--amber); background: #fff9ef; }
.event-item strong, .event-item time, .event-item small { display: block; }
.event-item strong { color: var(--navy); font-size: 12px; }
.event-item time { margin: 5px 0; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.event-item small { color: var(--muted); font-size: 9px; }

.date-input { width: auto; min-width: 160px; }
.heading-actions { display: flex; gap: 10px; align-items: center; }.heading-actions input, .page-heading > input { width: auto; min-width: 160px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { padding: 17px 18px; background: white; border: 1px solid #e3e9ec; border-radius: 14px; }
.stat-card span { display: block; color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin-top: 5px; color: var(--navy); font-size: 26px; }
.table-card { overflow: hidden; }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.table-toolbar input { max-width: 320px; padding: 9px 12px; }
.legend { color: var(--muted); font-size: 10px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin: 0 4px 0 10px; border-radius: 50%; }
.legend-dot.unexpected { background: var(--amber); }.legend-dot.warning { background: var(--red); }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 12px 18px; color: #798790; text-align: left; background: #f7f9fa; font-size: 10px; letter-spacing: .06em; }
td { padding: 15px 18px; border-top: 1px solid #edf1f3; vertical-align: middle; }
.user-cell { display: grid; gap: 2px; }.user-cell small { color: var(--muted); }.user-cell strong { color: var(--navy-deep); }
.state-label { display: inline-block; padding: 5px 8px; color: #42606e; background: #edf3f5; border-radius: 6px; font-weight: 800; }
.state-label.on_break { color: #875308; background: var(--amber-soft); }
.state-label.completed { color: #176c64; background: var(--teal-soft); }
.warning-tags { display: flex; flex-wrap: wrap; gap: 4px; }.warning-tags span { padding: 4px 6px; color: #9a3636; background: var(--red-soft); border-radius: 5px; font-size: 9px; }.warning-tags span.unexpected { color: #8a560d; background: var(--amber-soft); }
.placeholder-card { padding: 42px; text-align: center; }.placeholder-card h2 { color: var(--navy); }.placeholder-card p { color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: minmax(290px, .75fr) minmax(0, 1.6fr); gap: 20px; align-items: start; }.settings-grid.narrow-left { grid-template-columns: minmax(260px, .55fr) minmax(0, 1.6fr); }
.settings-section { margin-top: 20px; }.registration-link-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }.registration-link-box input { min-width: 0; }
.settings-stack { width: min(820px, 100%); display: grid; gap: 20px; }
.tab-list { display: flex; gap: 8px; margin-bottom: 20px; padding: 5px; border-radius: 12px; background: #e7edef; }
.tab-button { flex: 1; min-height: 44px; color: #657780; border: 0; border-radius: 9px; background: transparent; font-weight: 800; }
.tab-button.active { color: var(--navy); background: white; box-shadow: 0 3px 12px rgba(28,53,67,.1); }
.form-card { padding: 24px; }.form-card h2 { margin: 0 0 18px; color: var(--navy); font-size: 19px; }.compact-form label { margin: 13px 0; }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.assignment-card { margin-top: 20px; }.assignment-card select[multiple] { min-height: 130px; }
.request-actions { display: flex; gap: 6px; }.request-actions button { padding: 6px 9px; border: 0; border-radius: 6px; font-size: 10px; font-weight: 800; }.approve-button { color: #136d64; background: var(--teal-soft); }.reject-button { color: #9a3636; background: var(--red-soft); }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: end; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.filter-grid label { min-width: 0; margin: 0; }.filter-grid .button { min-height: 45px; }
.list-summary { padding: 10px 20px; font-size: 11px; }
fieldset { margin: 18px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; } legend { color: #42515c; font-size: 13px; font-weight: 700; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }.check-grid label { display: flex; align-items: center; gap: 6px; margin: 0; }.check-grid input { width: auto; }
.unavailable-row { opacity: .6; background: #f0f1f2; }
.common-users-screen { display: grid; gap: 20px; }
.common-companies-screen { display: grid; gap: 20px; }
.common-companies-notice { align-items: center; justify-content: space-between; }
.common-companies-notice p { margin: 4px 0 0; }
.common-companies-notice .button:disabled { cursor: not-allowed; opacity: .48; }
.common-company-filter { max-width: 560px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.common-company-filter label { margin: 0; }
.common-company-types { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.common-company-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.common-company-actions .text-button { min-height: 30px; padding: 5px 8px; border-radius: 7px; background: var(--teal-soft); }
.common-company-actions .text-button.danger { color: #9a3636; background: var(--red-soft); }
.common-company-actions .text-button:disabled { cursor: not-allowed; opacity: .42; }
.common-users-notice { align-items: center; justify-content: space-between; }
.common-users-notice p { margin: 4px 0 0; }
.common-users-notice .button:disabled { cursor: not-allowed; opacity: .48; }
.common-experience-master { overflow: hidden; }
.common-experience-master-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.common-experience-master-header p { margin: 5px 0 3px; color: var(--muted); }
.common-experience-master-header small { color: var(--muted); }
.common-experience-master-actions { display: flex; align-items: center; flex-shrink: 0; gap: 8px; }
.common-experience-master-list { margin: 0; padding: 0; list-style: none; }
.common-experience-master-list li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.common-experience-master-list li:last-child { border-bottom: 0; }
.common-experience-master-list li > strong { flex: 1; }
.common-experience-order { width: 24px; color: var(--muted); font-size: 11px; text-align: center; }
.common-experience-row-actions { display: flex; align-items: center; gap: 5px; }
.common-experience-row-actions .text-button { min-height: 29px; padding: 4px 8px; border-radius: 7px; background: var(--teal-soft); }
.common-experience-row-actions .text-button.danger { color: #9a3636; background: var(--red-soft); }
.common-experience-row-actions .text-button:disabled { cursor: not-allowed; opacity: .4; }
.common-user-filter { grid-template-columns: minmax(240px, 1fr) minmax(150px, .45fr) minmax(110px, .3fr) auto; }
.common-company-row th { color: var(--navy); background: #eef5f5; font-size: 12px; letter-spacing: 0; }
.common-company-row small { margin-left: 6px; color: var(--muted); font-weight: 700; }
.common-service-list { display: flex; flex-wrap: wrap; gap: 5px; }
.common-profile-cell { display: grid; min-width: 190px; gap: 2px; }
.common-profile-cell small { margin-top: 4px; color: var(--muted); }
.common-profile-cell small:first-child { margin-top: 0; }
.common-profile-cell span { color: var(--ink); }
.common-users-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; border-top: 1px solid var(--line); }
.common-users-pagination span { color: var(--muted); font-size: 11px; }
.common-user-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.common-user-actions .text-button { min-height: 30px; padding: 5px 8px; border-radius: 7px; background: var(--teal-soft); }
.common-user-actions .text-button.danger { color: #9a3636; background: var(--red-soft); }
.common-user-actions .text-button:disabled { cursor: not-allowed; opacity: .42; }
.common-service-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.common-service-choices label { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.common-service-choices input { width: auto; }
.form-error { margin-top: 12px; padding: 10px 12px; color: #973d3d !important; background: var(--red-soft); border: 1px solid #efcaca; border-radius: 8px; }
.emergency-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 28px; }.emergency-card span { color: var(--muted); }.emergency-card strong, .emergency-card a { color: var(--navy); font-size: 20px; font-weight: 800; text-decoration: none; }
.shift-matrix { min-width: 1050px; table-layout: fixed; }.shift-matrix th, .shift-matrix td { min-width: 74px; padding: 10px 8px; text-align: center; border: 1px solid #e2e7e9; }.shift-matrix .person-column { position: sticky; left: 0; z-index: 2; width: 170px; min-width: 170px; text-align: left; background: white; }.shift-matrix thead .person-column { z-index: 3; background: #f7f9fa; }.shift-cell-off { color: #6f787d; background: #dfe3e5; }.shift-cell-work { color: var(--navy); background: #f8fcfb; }.shift-cell-warning { color: white; background: var(--red); }.shift-cell-completed { color: #176c64; background: var(--teal-soft); }.shift-unavailable-row td, .shift-unavailable-row .person-column { color: #8e969a !important; background: #e4e6e7 !important; opacity: .78; }
.dashboard-detail-button { white-space: nowrap; }
.logo-preview { height: 110px; display: flex; align-items: center; justify-content: center; gap: 15px; margin: 20px 0; background: #f4f7f8; border: 1px dashed #cbd7dc; border-radius: 12px; }.logo-preview .brand-mark { margin: 0; }.logo-preview small { color: var(--muted); }
.logo-preview img { max-width: 200px; max-height: 64px; object-fit: contain; object-position: center; }
.app-footer { padding: 24px 0 2px; color: #96a2a9; font-size: 11px; text-align: center; }

.modal { width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 70px rgba(13,34,49,.25); }
.modal::backdrop { background: rgba(11,30,44,.55); backdrop-filter: blur(2px); }
.modal form { padding: 28px; }.modal h2 { margin: 0; color: var(--navy); }.modal p { color: var(--muted); line-height: 1.7; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.wide-modal { width: min(760px, calc(100vw - 32px)); }.completion-modal { text-align: center; }.completion-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 18px; color: white; background: var(--teal); border-radius: 50%; font-size: 30px; font-weight: 900; }
.toast { position: fixed; right: 26px; bottom: 26px; z-index: 100; max-width: 360px; padding: 13px 17px; color: white; background: #183d55; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }.toast.error { background: #a83e3e; }
.announcement-message { white-space: pre-wrap; overflow-wrap: anywhere; }.registration-page { min-height: 100vh; background: linear-gradient(145deg, #edf6f5, #f8fafb 55%, #e8eef3); }.registration-shell { width: min(720px, calc(100% - 28px)); margin: 0 auto; padding: 40px 0; }.registration-card { box-shadow: 0 22px 55px rgba(21,55,77,.13); }.registration-card h1 { margin: 0; color: var(--navy-deep); }.registration-card > .notice { display: block; margin-top: 18px; }

@media (max-width: 980px) {
  .login-layout { grid-template-columns: 1fr; }.login-brand { display: none; }.login-panel { min-height: 100vh; }.mobile-brand { display: flex; }
  .app-layout { --sidebar-width: 210px; }.sidebar { padding-inline: 12px; }.content { padding-inline: 22px; }
  .today-grid { grid-template-columns: 1fr; }.punch-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }.punch-button { min-width: 0; }
  .settings-grid, .settings-grid.narrow-left { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .app-layout { display: block; background: var(--background); }.sidebar { inset: 0 auto 0 -270px; z-index: 50; width: 250px; transition: left .25s; }.sidebar.open { left: 0; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
  .mobile-header { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; height: 66px; padding: 10px 18px; color: white; background: var(--navy-deep); }.mobile-header .app-logo { padding: 0; }.mobile-header button { color: white; border: 0; background: transparent; font-size: 23px; }
  .content { margin-left: 0; padding: 25px 15px 18px; }.page-heading { align-items: stretch; flex-direction: column; gap: 14px; }.server-clock { align-self: flex-end; min-width: 118px; padding: 8px 10px; }.server-clock strong { font-size: 20px; }
  .notice { align-items: flex-start; flex-direction: column; }.notice .button { width: 100%; }
  .punch-card, .summary-card, .timeline-card { padding: 18px; }.punch-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }.punch-button { min-width: 0; min-height: 112px; }.timeline { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }.table-toolbar { align-items: stretch; flex-direction: column; }.table-toolbar input { max-width: none; }
  .heading-actions { width: 100%; align-items: stretch; flex-direction: column; }.heading-actions input, .heading-actions .button, .page-heading > input { width: 100%; min-width: 0; }.form-row { grid-template-columns: 1fr; }.filter-grid { grid-template-columns: 1fr 1fr; padding: 14px; }.filter-grid .button { grid-column: 1 / -1; }.emergency-card { grid-template-columns: 1fr; }.shift-matrix-scroll { margin: 0; }.check-grid { grid-template-columns: 1fr 1fr; }
  .login-panel { padding: 28px 22px; }.modal form { padding: 22px; }
}

@media (max-width: 420px) {
  .service-option { grid-template-columns: 44px 1fr auto; }
  .service-status { grid-column: 2 / 4; justify-self: start; }
  .content { padding-inline: 10px; }.punch-card, .summary-card, .timeline-card, .form-card { padding: 15px; }.punch-button { min-height: 104px; padding-inline: 5px; }.timeline { grid-template-columns: 1fr; }.filter-grid { grid-template-columns: 1fr; }.filter-grid .button { grid-column: auto; }.stats-grid { gap: 8px; }.stat-card { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-option { transition: none; }
}
