/* Account utilities share the existing surfaces; attendance never represents mastery. */
/* Neutral utility controls must not inherit the main action's hover/press fill. */
:is(.member-drawer,.member-welcome,.member-preferences,.calendar-nav,.calendar-footer,.member-utilities) button {
  --button-background: transparent;
  --button-background-hover: var(--surface-muted);
  --button-background-active: var(--journey-active,var(--surface-muted));
  --button-text: var(--ink);
}
html[data-design='focus'] .member-date-heading h1 {display:flex;align-items:baseline;gap:22px;margin:0;font:600 32px/1.25 var(--font-interface);letter-spacing:-.025em;font-variant-numeric:tabular-nums;}
html[data-design='focus'] #daily-clock-time {font-size:26px;font-weight:400;color:var(--muted);}
html[data-design='focus'] #daily-date {margin:8px 0 0;font-size:14px;}
#settings-drawer .member-preferences fieldset {margin-bottom:24px;}
#settings-drawer .member-preferences label>input {position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;}
#settings-drawer .member-preferences label>input::after {display:none;}
#settings-drawer .member-preferences legend {margin-bottom:12px;}
.inbox-manage-layout {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;align-items:start;}
.inbox-manage-layout .panel {margin:0;min-width:0;}
.inbox-manage-layout .stack {display:grid;gap:20px;}
.inbox-manage-layout :is(input,textarea,select) {box-sizing:border-box;width:100%;font:inherit;}
.inbox-manage-layout :is(input:not([type='hidden']),select) {min-height:44px;padding:8px 12px;}
.inbox-manage-layout textarea {min-height:180px;resize:vertical;}
.inbox-manage-layout .field label {display:block;margin-bottom:8px;}
.inbox-manage-layout .button {justify-self:start;}
.inbox-sent {padding:18px 0;border-bottom:1px solid var(--line);}
.inbox-sent h3 {font-size:16px;margin:0 0 8px;overflow-wrap:anywhere;}
.inbox-sent p {font-size:14px;margin:8px 0;}
.inbox-sent details {margin-top:8px;font-size:14px;}
.inbox-sent details p {white-space:pre-wrap;overflow-wrap:anywhere;}
@media(max-width:900px) {.inbox-manage-layout {grid-template-columns:1fr;}}
.member-utilities {display:flex;gap:6px;}
.member-utilities button {position:relative;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--muted);border-radius:10px;}
.member-utilities svg {width:24px;height:24px;}
.member-utility-label {display:none;}
.kana-symbol {font-size:23px;line-height:1;font-family:inherit;}
.member-badge[hidden] {display:none!important;}
.member-badge:not([hidden]) {position:absolute;right:0;top:0;min-width:16px;height:16px;padding:0 3px;border-radius:8px;font-size:11px;line-height:16px;background:var(--reference);color:var(--surface);font-variant-numeric:tabular-nums;}
.member-drawer,.member-welcome {color:var(--ink);background:var(--surface);border:1px solid var(--line);box-sizing:border-box;}
.member-drawer {position:fixed;inset:0 0 0 auto;margin:0;width:min(490px,100%);height:100dvh;max-height:100dvh;max-width:100vw;padding:28px;overflow:auto;overscroll-behavior:contain;border-radius:18px 0 0 18px;box-shadow:-12px 0 42px #0002;}
.member-drawer::backdrop,.member-welcome::backdrop {background:#0004;}
.member-drawer-heading {display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;}
.member-drawer-heading h2,.member-welcome h2 {font-size:24px;line-height:1.3;margin:0;}
.member-drawer-heading button {width:40px;height:40px;padding:0;font-size:26px;color:var(--muted);background:transparent;border:0;}
.member-drawer button,.member-welcome button,.member-preferences button {min-height:40px;}
.member-drawer :is(button,a):focus-visible,.member-welcome :is(button,input):focus-visible {outline:2px solid var(--ink);outline-offset:3px;}
.member-muted,.member-form-status,.kana-note {color:var(--muted);font-size:14px;line-height:1.7;}
.member-error {font-size:14px;color:var(--error);}
.member-primary {background:var(--journey-primary)!important;color:var(--journey-on-primary)!important;border-color:var(--journey-primary)!important;}
.member-welcome {width:min(540px,calc(100% - 32px));max-height:calc(100dvh - 32px);border-radius:16px;padding:28px;overflow:auto;}
.member-welcome>p {margin:10px 0 24px;}
.member-preferences fieldset {border:0;padding:0;margin:0 0 24px;min-width:0;}
.member-preferences legend {font-size:15px;font-weight:600;margin-bottom:12px;padding:0;}
.member-preferences legend small {font-size:13px;font-weight:400;color:var(--muted);margin-left:8px;}
.preference-levels {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;}
.preference-options {display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.preference-topics {display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.member-preferences label {position:relative;cursor:pointer;min-width:0;}
.member-preferences label>input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;}
.member-preferences label>span {display:flex;min-height:44px;align-items:center;justify-content:center;gap:5px;padding:10px 6px;border:1px solid var(--line);border-radius:8px;font-size:14px;box-sizing:border-box;}
.preference-levels label>span {flex-direction:column;}
.preference-levels strong {font-size:18px;font-variant-numeric:tabular-nums;}
.preference-levels small {font-size:13px;color:var(--muted);text-align:center;text-wrap:balance;}
.member-preferences label:hover>span {background:var(--surface-muted);border-color:var(--journey-control);}
.member-preferences input:checked+span {background:var(--accent-soft);border-color:var(--accent);color:var(--accent);}
.member-preferences input:checked+span small {color:inherit;}
.member-preferences input:focus-visible+span {outline:2px solid var(--accent);outline-offset:3px;}
.member-form-actions {display:flex;justify-content:flex-end;align-items:center;gap:12px;}
.member-form-actions button {padding:9px 18px;border-radius:8px;border:1px solid var(--line);background:transparent;color:var(--ink);}
.member-form-status:empty {display:none;}
html[data-design='focus'] .checkin-card {background:var(--attendance-soft);border:1px solid var(--attendance-line);padding:24px;}
html[data-design='focus'] .checkin-card .journey-section-head {align-items:center;margin:0 0 12px;}
.checkin-card h2 {font-size:16px;margin:0;}
.calendar-nav {display:flex;gap:6px;}
.calendar-nav button {width:32px;height:32px;padding:0;font-size:23px;border:0;background:transparent;color:var(--muted);}
.calendar-nav button:disabled {opacity:.35;}
.calendar-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:26px repeat(6,32px);gap:4px 2px;text-align:center;font-variant-numeric:tabular-nums;}
.calendar-grid>span {min-width:0;display:grid;place-items:center;}
.calendar-weekday {height:26px;font-size:13px;color:var(--muted);}
.calendar-day {position:relative;height:32px;width:32px;max-width:100%;justify-self:center;font-size:14px;border:1px solid transparent;border-radius:50%;box-sizing:border-box;}
.calendar-day.is-today {border-color:var(--attendance);color:var(--attendance);font-weight:600;}
.calendar-day.is-checked {background:var(--attendance-line);color:var(--attendance);font-weight:600;}
.calendar-day i {position:absolute;width:3px;height:3px;border-radius:50%;background:currentColor;bottom:2px;}
.calendar-footer {display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid var(--attendance-line);}
.member-points {font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums;}
.member-points strong {font-size:23px;font-weight:500;color:var(--attendance);margin-right:4px;}
.calendar-footer button {min-height:38px;padding:7px 14px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:8px;font-size:14px;}
.calendar-footer button:disabled {color:var(--muted);background:transparent;}
.calendar-footer button:not(:disabled) {border-color:var(--attendance);color:var(--attendance);}
.calendar-footer button:not(:disabled):hover {background:var(--attendance-line);}
.inbox-row {display:block;width:100%;padding:20px 0;text-align:left;color:var(--ink);background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;}
.inbox-meta {display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px;margin-bottom:10px;}
.inbox-row strong {display:block;font-size:17px;font-weight:500;line-height:1.5;overflow-wrap:anywhere;}
.inbox-row.is-unread strong::before {content:'';display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:8px;vertical-align:middle;background:var(--reference);}
.inbox-row:hover {background:var(--reference-soft);}
.inbox-row.is-unread strong {color:var(--reference);}
.inbox-preview {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:14px;line-height:1.7;margin-top:6px;}
.inbox-detail h3 {font-size:23px;line-height:1.5;margin:12px 0 24px;overflow-wrap:anywhere;}
.inbox-body {white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.9;}
.inbox-pagination {display:flex;justify-content:flex-end;gap:16px;margin-top:20px;}
.inbox-pagination button,.member-text-action {border:0;background:transparent;color:var(--ink);padding:8px 0;}
.inbox-empty {padding:36px 0;}
.member-segment {display:flex;border-bottom:1px solid var(--line);margin-bottom:18px;}
.member-segment button {flex:1;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);padding:10px;}
.member-segment button[aria-pressed='true'] {color:var(--reference);border-bottom-color:var(--reference);}
.kana-tabs {display:flex;gap:8px;margin-bottom:18px;}
.kana-tabs button {border:0;background:transparent;color:var(--muted);padding:6px 10px;font-size:14px;border-radius:6px;}
.kana-tabs button[aria-pressed='true'] {background:var(--reference-soft);color:var(--reference);}
.kana-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;}
.kana-grid.is-joined {grid-template-columns:repeat(3,minmax(0,1fr));}
.kana-cell {min-height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-bottom:1px solid var(--line);}
.kana-cell.is-empty {border:0;}
.kana-cell span {font:400 25px/1.3 'Noto Sans JP','Yu Gothic',sans-serif;}
.kana-cell small {font-size:13px;color:var(--reference);}
.kana-note {margin-top:24px;}
@media(min-width:901px) {
  .member-utilities {flex-direction:column;align-items:center;width:100%;}
  .member-utilities button {flex-shrink:0;}
}
@media(max-width:900px) {
  .member-utilities {order:1;gap:0;}
  .member-utilities button {width:32px;min-width:32px;height:44px;}
  .member-utilities svg {width:22px;}
  html[data-design='focus'] .member-date-heading h1 {font-size:28px;gap:16px;}
  html[data-design='focus'] #daily-clock-time {font-size:23px;}
  .calendar-nav button {width:44px;height:44px;}
}
@media(max-width:480px) {
  html[data-design='focus'] .product-identity .koetabi-symbol {display:block;width:30px;height:30px;flex-basis:30px;}
  .member-utilities button {width:40px;min-width:40px;}
  .member-drawer {border-radius:0;padding:20px;}
  .member-welcome {padding:20px;}
  .preference-levels {gap:4px;}
  .member-preferences label>span {padding-inline:4px;}
}
@media(prefers-reduced-motion:no-preference) {
  .member-drawer[open] {animation:member-slide .18s ease-out;}
  .member-welcome[open] {animation:member-enter .16s ease-out;}
  @keyframes member-slide {from {transform:translateX(24px);opacity:0;} to {transform:translateX(0);opacity:1;}}
  @keyframes member-enter {from {transform:translateY(8px);opacity:0;} to {transform:translateY(0);opacity:1;}}
}
