:root {
  --g23f-shell-bg: #f5f1ea;
  --g23f-shell-surface: #fffdf9;
  --g23f-shell-border: #ddd5c9;
  --g23f-shell-accent: #8b7355;
  --g23f-shell-text: #1f1b17;
  --g23f-shell-muted: #6f675e;
  --g23f-shell-danger: #b33c38;
}

.g23f-profile-trigger,
.g23f-admin-trigger,
.g23f-notification-trigger {
  min-height: 38px;
  border: 1px solid var(--g23f-shell-border);
  border-radius: 10px;
  background: var(--g23f-shell-surface);
  color: var(--g23f-shell-text);
  cursor: pointer;
  font: 600 .78rem/1 Inter, system-ui, sans-serif;
}
.g23f-profile-trigger {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  padding: .25rem .65rem .25rem .3rem;
}
.g23f-admin-trigger,
.g23f-notification-trigger { position: relative; width: 40px; padding: 0; }
.g23f-shell-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--g23f-shell-accent);
  color: #fff;
  font-size: .67rem;
  font-weight: 700;
}
.g23f-shell-avatar img { width: 100%; height: 100%; object-fit: cover; }
.g23f-shell-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--g23f-shell-surface);
  border-radius: 999px;
  background: #b33c38;
  color: #fff;
  font-size: .58rem;
}

.g23f-feedback-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: .2rem;
  padding: .35rem .58rem;
  border: 1px solid var(--g23f-shell-border);
  border-radius: 8px;
  background: var(--g23f-shell-surface);
  color: var(--g23f-shell-muted);
  cursor: pointer;
  font: 600 .7rem/1.2 Inter, system-ui, sans-serif;
}

.g23f-shell-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(31, 27, 23, .44);
  backdrop-filter: blur(5px);
}
.g23f-shell-modal[hidden] { display: none !important; }
.g23f-shell-panel {
  position: relative;
  width: min(580px, 100%);
  max-height: min(88vh, 860px);
  overflow-y: auto;
  padding: 1.25rem;
  border: 1px solid var(--g23f-shell-border);
  border-radius: 18px;
  background: var(--g23f-shell-surface);
  color: var(--g23f-shell-text);
  box-shadow: 0 24px 80px rgba(31, 27, 23, .24);
  font-family: Inter, system-ui, sans-serif;
}
.g23f-shell-panel.wide { width: min(850px, 100%); }
.g23f-shell-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--g23f-shell-border);
  border-radius: 10px;
  background: var(--g23f-shell-surface);
  cursor: pointer;
}
.g23f-shell-kicker {
  margin: 0 0 .35rem;
  color: var(--g23f-shell-accent);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.g23f-shell-panel h2,
.g23f-shell-panel h3 { margin: 0; color: var(--g23f-shell-text); }
.g23f-shell-panel h2 { padding-right: 2.8rem; font-family: "DM Serif Display", Georgia, serif; font-size: 1.75rem; font-weight: 400; }
.g23f-shell-panel h3 { font-size: .88rem; }
.g23f-shell-muted { color: var(--g23f-shell-muted); font-size: .75rem; line-height: 1.55; }
.g23f-shell-form { display: grid; gap: .62rem; margin-top: 1rem; }
.g23f-shell-form label { color: var(--g23f-shell-muted); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.g23f-shell-form select,
.g23f-shell-form input,
.g23f-shell-form textarea {
  width: 100%;
  min-width: 0;
  padding: .75rem .8rem;
  border: 1px solid var(--g23f-shell-border);
  border-radius: 10px;
  background: #fbf8f3;
  color: var(--g23f-shell-text);
  font: inherit;
}
.g23f-shell-actions { display: flex; flex-wrap: wrap; gap: .48rem; margin-top: 1rem; }
.g23f-shell-btn {
  min-height: 40px;
  padding: .55rem .78rem;
  border: 1px solid var(--g23f-shell-border);
  border-radius: 9px;
  background: var(--g23f-shell-surface);
  color: var(--g23f-shell-text);
  cursor: pointer;
  font: 600 .72rem/1.2 Inter, system-ui, sans-serif;
}
.g23f-shell-btn.primary { border-color: var(--g23f-shell-accent); background: var(--g23f-shell-accent); color: #fff; }
.g23f-shell-btn.danger { color: var(--g23f-shell-danger); }
.g23f-shell-btn:disabled { cursor: wait; opacity: .55; }
.g23f-shell-error { min-height: 1.1rem; margin: .2rem 0 0; color: var(--g23f-shell-danger); font-size: .72rem; }

.g23f-profile-head { display: flex; align-items: center; gap: .85rem; margin: 1rem 0; }
.g23f-profile-head .g23f-shell-avatar { width: 58px; height: 58px; font-size: 1rem; }
.g23f-profile-head p { margin: .2rem 0 0; }
.g23f-photo-label { position: relative; overflow: hidden; }
.g23f-photo-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.g23f-privacy-box { margin-top: .9rem; padding: .72rem .8rem; border: 1px solid var(--g23f-shell-border); border-radius: 10px; background: #f7f2eb; }

.g23f-status-list,
.g23f-admin-section { display: grid; gap: .55rem; margin-top: 1rem; }
.g23f-status-card,
.g23f-admin-card {
  padding: .75rem;
  border: 1px solid var(--g23f-shell-border);
  border-radius: 11px;
  background: #fbf8f3;
}
.g23f-status-card p,
.g23f-admin-card p { margin: .3rem 0 0; color: var(--g23f-shell-muted); font-size: .72rem; line-height: 1.5; white-space: pre-wrap; }
.g23f-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; }
.g23f-status-pill { flex: 0 0 auto; padding: .18rem .42rem; border-radius: 999px; background: #eee6dc; color: var(--g23f-shell-muted); font-size: .6rem; font-weight: 700; }
.g23f-status-pill.review { background: #fff0c9; color: #8c6200; }
.g23f-status-pill.done { background: #e3f2e7; color: #2d7040; }
.g23f-admin-tabs { display: flex; gap: .35rem; margin: 1rem 0 0; overflow-x: auto; }
.g23f-admin-tabs button { flex: 0 0 auto; }
.g23f-admin-tabs button.active { border-color: var(--g23f-shell-accent); background: #efe7dc; }
.g23f-admin-card select { min-height: 36px; padding: .35rem .5rem; border: 1px solid var(--g23f-shell-border); border-radius: 8px; background: #fff; }
.g23f-account-row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.g23f-account-name { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.g23f-account-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g23f-shell-empty { padding: 1.5rem .8rem; border: 1px dashed var(--g23f-shell-border); border-radius: 11px; color: var(--g23f-shell-muted); text-align: center; font-size: .76rem; }

.g23f-notification-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.g23f-notification-heading .g23f-shell-muted { margin: .45rem 0 0; }
.g23f-notification-form { margin: 1rem 0; padding: 1rem; border: 1px solid var(--g23f-shell-border); border-radius: 12px; background: #f7f2eb; }
.g23f-notification-people-wrap { display: grid; gap: .5rem; }
.g23f-notification-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
  max-height: 210px;
  overflow-y: auto;
  padding: .55rem;
  border: 1px solid var(--g23f-shell-border);
  border-radius: 10px;
  background: var(--g23f-shell-surface);
}
.g23f-notification-person { display: flex; align-items: center; gap: .45rem; padding: .45rem; border-radius: 8px; color: var(--g23f-shell-text) !important; font-size: .76rem !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; }
.g23f-notification-person:hover { background: #f2ece4; }
.g23f-notification-person input { width: 17px; height: 17px; margin: 0; padding: 0; }
.g23f-notification-list { display: grid; gap: .65rem; margin-top: 1rem; }
.g23f-notification-card { padding: .9rem; border: 1px solid var(--g23f-shell-border); border-radius: 12px; background: #fbf8f3; transition: opacity .18s ease; }
.g23f-notification-card.completed { opacity: .52; }
.g23f-notification-card h3 { margin-top: .28rem; font-size: .92rem; }
.g23f-notification-card p { margin: .48rem 0 0; color: var(--g23f-shell-muted); font-size: .76rem; line-height: 1.55; white-space: pre-wrap; }
.g23f-notification-card .g23f-shell-actions { margin-top: .7rem; }
.g23f-notification-type { color: var(--g23f-shell-accent); font-size: .59rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.g23f-notification-date { font-size: .64rem !important; }

.g23f-notification-stack {
  position: fixed;
  right: 1rem;
  top: max(4.8rem, calc(env(safe-area-inset-top) + 4.8rem));
  z-index: 1400;
  width: min(410px, calc(100% - 2rem));
  display: grid;
  gap: .55rem;
}
.g23f-update-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .7rem .8rem;
  border: 1px solid var(--g23f-shell-border);
  border-radius: 12px;
  background: var(--g23f-shell-surface);
  color: var(--g23f-shell-text);
  box-shadow: 0 12px 40px rgba(31, 27, 23, .18);
  font: .72rem/1.4 Inter, system-ui, sans-serif;
}
.g23f-update-banner[hidden] { display: none !important; }

@media (max-width: 650px) {
  .g23f-shell-modal { place-items: end center; padding: .5rem; padding-bottom: max(.5rem, env(safe-area-inset-bottom)); }
  .g23f-shell-panel { width: 100%; max-height: 92vh; border-radius: 18px 18px 12px 12px; }
  .g23f-profile-trigger .g23f-profile-name { display: none; }
  .g23f-profile-trigger { width: 40px; padding: .25rem; border-radius: 50%; }
  .g23f-shell-actions .g23f-shell-btn { flex: 1 1 145px; }
  .g23f-notification-stack { right: .7rem; width: calc(100% - 1.4rem); }
  .g23f-notification-heading { align-items: stretch; flex-direction: column; }
  .g23f-notification-heading > .g23f-shell-btn { align-self: flex-start; }
  .g23f-notification-people { grid-template-columns: 1fr; }
}
