:root {
  font-family:
    Inter,
    "Noto Sans JP",
    system-ui,
    -apple-system,
    sans-serif;
  color: #24304a;
  background: #f4f6fb;
  font-size: 16px;
  line-height: 1.65;
  --accent: #6653dd;
  --border: #e0e5ef;
  --muted: #68768d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
  color: #29354d;
  border-radius: 9px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 650;
  transition: background 0.15s;
}
button:hover {
  background: #eef0f9;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
button.primary:hover {
  background: #5140bf;
}
button.danger {
  color: #b8394b;
  border-color: #e9b9c1;
}
button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
a {
  color: #5b49cb;
  text-underline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
small,
.small {
  font-size: 0.85rem;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.loading {
  padding: 4rem;
  text-align: center;
}
.layout {
  display: grid;
  grid-template-columns: 234px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #111b32;
  color: #c1c9db;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 234px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #8170f0;
  color: white;
  font-size: 1.2rem;
}
.sidebar button {
  border: 0;
  background: none;
  color: #bfc8da;
  text-align: left;
  padding: 12px 14px;
  margin: 3px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
}
.sidebar button.active {
  background: #2a2b4e;
  color: #ded6ff;
}
.nav-symbol {
  width: 22px;
  text-align: center;
}
.sidebar-label {
  text-transform: uppercase;
  color: #7e8aa4;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  margin: 28px 14px 8px;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid #2b354b;
  padding-top: 18px;
}
.avatar {
  width: 36px;
  height: 36px;
  background: #e9e5ff;
  color: #6653c9;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 750;
  flex: none;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-row span {
  overflow-wrap: anywhere;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: white;
  gap: 12px;
}
.topbar .crumb {
  font-size: 0.9rem;
  color: var(--muted);
}
.version {
  font-size: 0.8rem;
  color: #8290a6;
}
.workspace {
  max-width: 1440px;
  padding: 36px 38px 60px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  margin-bottom: 9px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px #17254a03;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.card-title h2 {
  margin: 0;
}
.banner {
  padding: 14px 18px;
  border-radius: 10px;
  background: #eeebff;
  border: 1px solid #ddd6ff;
  color: #514192;
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.banner.warning {
  background: #fff6e7;
  border-color: #f1dfba;
  color: #8a622a;
}
.banner.error {
  background: #fff0f2;
  border-color: #edc7ce;
  color: #a1394b;
}
.banner.success {
  background: #eaf7f3;
  border-color: #c6e9dd;
  color: #287a62;
}
.grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
  align-items: start;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  border: 1px solid var(--border);
  background: white;
  border-radius: 12px;
  padding: 18px 22px;
}
.stat strong {
  display: block;
  font-size: 1.6rem;
  margin: 3px 0 0;
}
.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.room-card {
  padding: 25px;
  text-align: left;
  width: 100%;
  border-radius: 14px;
  font-weight: 400;
}
.room-card h2 {
  margin: 14px 0 6px;
}
.room-icon {
  font-size: 1.5rem;
  color: #7564dd;
  background: #eeeaff;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  width: 47px;
  height: 47px;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: #edf0f6;
  color: #62718a;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}
.badge.purple {
  background: #eee9ff;
  color: #7153cb;
}
.badge.green {
  background: #e9f6f0;
  color: #318164;
}
.badge.orange {
  background: #fff2dd;
  color: #9f7328;
}
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 25px;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: none;
  white-space: nowrap;
  color: var(--muted);
  padding: 10px 17px;
  border-bottom: 3px solid transparent;
}
.tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
label.field {
  display: block;
  margin: 0 0 18px;
}
.label-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 7px;
}
.support {
  font-size: 0.72rem;
  color: #65907e;
  background: #edf7f2;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.support.studio {
  background: #f1f2f5;
  color: #7c8290;
}
input:not([type="checkbox"]):not([type="file"]),
textarea,
select {
  width: 100%;
  border: 1px solid #d7deea;
  border-radius: 8px;
  background: #fff;
  color: #24304a;
  padding: 10px 12px;
  font-size: 0.94rem;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #8874ec;
  outline: 2px solid #ece7ff;
}
textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  vertical-align: middle;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23748093' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 32px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  margin: 12px 0;
}
.switch-row input {
  margin-top: 5px;
  flex: none;
}
.thumb {
  border: 1px dashed #cdd3e5;
  background: #f7f8fc;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  margin-bottom: 10px;
}
.thumb img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
}
.thumb input {
  max-width: 100%;
  font-size: 0.85rem;
}
.preview {
  background: #f7f8fc;
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 9px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  max-height: 400px;
  overflow: auto;
}
.preview-title {
  font-weight: 750;
  font-size: 1.05rem;
}
.member {
  padding: 17px 0;
  border-bottom: 1px solid #eef0f6;
}
.member:last-child {
  border-bottom: 0;
}
.member-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.member-top .meta {
  flex: 1;
  min-width: 0;
}
.member-top strong {
  font-size: 0.94rem;
  display: block;
}
.member-top small {
  font-size: 0.79rem;
}
.member .actions button {
  font-size: 0.78rem;
  padding: 5px 9px;
}
.save-state {
  font-size: 0.8rem;
  color: #387d68;
}
.save-state.dirty {
  color: #af7b27;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}
.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}
.empty .room-icon {
  margin-bottom: 15px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-hero {
  background: #111b32;
  color: white;
  padding: 10vh 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-hero .brand {
  margin-bottom: 60px;
}
.login-hero h1 {
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1.45;
}
.login-hero p {
  color: #b8c3d8;
  max-width: 430px;
}
.hero-lines {
  display: grid;
  gap: 14px;
  margin: 30px 0;
}
.hero-lines span {
  border-left: 3px solid #8874ed;
  padding-left: 15px;
  color: #d4dcef;
}
.login-panel {
  padding: 8vw;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.login-panel h2 {
  font-size: 1.6rem;
}
.login-panel .actions {
  flex-direction: column;
  align-items: stretch;
}
.login-panel button,
.login-panel a.button {
  text-align: center;
  padding: 13px;
  text-decoration: none;
}
.button {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  color: #24304a;
}
.button.primary {
  background: var(--accent);
  color: white;
  border: 0;
}
dialog {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 25px 100px #101a3250;
  max-width: 650px;
  width: calc(100% - 32px);
  padding: 28px;
  max-height: 88vh;
}
dialog::backdrop {
  background: #101a3275;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 1.25rem;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 22px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  max-width: min(480px, calc(100% - 48px));
  background: #18243c;
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px #17254a35;
  display: none;
}
#toast.show {
  display: block;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
td,
th {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 600;
}
.table-wrap {
  overflow: auto;
}
.log-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.log-row small {
  display: block;
}
.override {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--accent);
}
.progress-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.progress-line span {
  font-size: 0.8rem;
  padding: 7px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
}
.progress-line span.current {
  background: #eeeaff;
  border-color: #d5cdf6;
  color: #6750bc;
}
.demo-ribbon {
  background: #f5c96c;
  color: #573b0a;
  text-align: center;
  font-size: 0.83rem;
  padding: 7px;
}
.channel-block {
  background: #f7f8fc;
  border-radius: 9px;
  padding: 14px;
  overflow-wrap: anywhere;
}
code {
  font-size: 0.85em;
  background: #eceff6;
  padding: 2px 5px;
  border-radius: 4px;
}
.inline-link {
  background: none;
  border: 0;
  color: var(--accent);
  padding: 0;
  text-decoration: underline;
}
.notification {
  display: flex;
  gap: 12px;
}
.notification strong {
  font-size: 0.95rem;
}
.mono {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
}
.footer-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 20px;
}
.mobile-head {
  display: none;
}
@media (max-width: 1050px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 200px;
  }
  .layout {
    grid-template-columns: 200px 1fr;
  }
  .workspace {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 14px;
  }
  .page-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 700px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 14px 18px;
    display: block;
  }
  .sidebar .brand {
    margin: 0 0 8px;
    font-size: 1.1rem;
  }
  .sidebar-label,
  .side-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .sidebar button {
    display: inline-flex;
    white-space: nowrap;
    padding: 8px;
    font-size: 0.84rem;
  }
  .nav-symbol {
    display: none;
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 55px;
    padding: 0 18px;
  }
  .workspace {
    padding: 24px 16px 40px;
  }
  .card {
    padding: 18px;
  }
  .page-head {
    gap: 12px;
  }
  .page-head h1 {
    font-size: 1.5rem;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat {
    padding: 12px;
  }
  .stat strong {
    font-size: 1.3rem;
  }
  .stat span {
    font-size: 0.74rem;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-hero {
    padding: 35px 24px;
  }
  .login-hero .brand {
    margin-bottom: 25px;
  }
  .login-hero h1 {
    font-size: 2rem;
  }
  .login-panel {
    padding: 30px 24px;
  }
  .hero-lines {
    display: none;
  }
  .tabs button {
    padding: 9px 12px;
  }
  .actions {
    gap: 7px;
  }
  .actions button {
    font-size: 0.84rem;
    padding: 0.55rem 0.75rem;
  }
}
/* v0.2.0: guided setup and discovery */
.setup-shell {
  max-width: 900px;
  margin: auto;
  padding: 28px 24px 50px;
}
.setup-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.setup-header .brand {
  color: #24304a;
  margin: 0;
}
.setup-progress {
  display: flex;
  gap: 10px;
  margin: 22px 0;
}
.setup-progress span {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 9px;
  background: #e8ecf3;
  color: #68768d;
  font-size: 0.88rem;
}
.setup-progress .current {
  background: #6653dd;
  color: #fff;
}
.setup-progress .done {
  background: #e3f3ed;
  color: #287a62;
}
.setup-card {
  padding: 34px;
}
.setup-intro {
  text-align: center;
}
.setup-intro .room-icon {
  margin-bottom: 20px;
}
.setup-intro h1 {
  font-size: 1.8rem;
}
.setup-facts {
  display: grid;
  gap: 14px;
  margin: 26px 0;
}
.setup-facts article {
  border: 1px solid var(--border);
  padding: 18px 20px;
  border-radius: 10px;
}
.setup-facts p {
  font-size: 0.94rem;
  margin: 7px 0 0;
  color: var(--muted);
}
.setup-group {
  margin-top: 30px;
}
.permission-choice {
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  margin: 14px 0;
}
.permission-choice h3 {
  font-size: 1rem;
}
.permission-choice p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.choice-buttons {
  display: flex;
  gap: 10px;
}
.choice-buttons label {
  flex: 1;
  cursor: pointer;
}
.choice-buttons input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice-buttons span {
  display: block;
  text-align: center;
  border: 1px solid #ccd4e3;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.9rem;
  color: #5a6980;
}
.choice-buttons input:checked + span {
  background: #eeeaff;
  border-color: #8470e5;
  color: #5542b6;
  box-shadow: 0 0 0 1px #8470e5;
}
.choice-buttons input:focus-visible + span {
  outline: 3px solid #b4a7fa;
  outline-offset: 2px;
}
.setup-footer {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 26px;
}
.setup-summary {
  margin: 24px 0;
  padding: 20px;
  background: #f5f6fb;
  border-radius: 10px;
}
.setup-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 7px 0;
  font-size: 0.9rem;
}
.setup-note {
  text-align: center;
}
.search-panel .search-input {
  display: flex;
  align-items: center;
  gap: 14px;
}
.search-input > span {
  font-size: 0.9rem;
  font-weight: 700;
}
.search-input input {
  flex: 1;
  min-width: 0;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 10px;
  flex-wrap: wrap;
}
.filter-tabs button {
  font-weight: 500;
}
.filter-tabs .active {
  background: #eeeaff;
  color: #5841b7;
  border-color: #c8bef5;
}
.invitation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.person-card h2 {
  margin: 0;
}
.person-card .mono {
  margin: 16px 0;
}
.advanced-settings {
  border-top: 1px solid var(--border);
  margin: 20px 0;
  padding-top: 14px;
}
.advanced-settings summary {
  cursor: pointer;
  color: #6453c1;
  font-size: 0.92rem;
  margin-bottom: 18px;
  font-weight: 650;
}
.inherit-hint {
  font-size: 0.78rem;
  color: #6955bd;
  margin: 6px 0 0;
}
.inherited .inherit-hint {
  color: #597e71;
}
.inherited input:not([type="checkbox"]),
.inherited textarea,
.inherited select {
  background: #f5f9f7;
  border-color: #d7e5dd;
}
.field {
  margin-bottom: 20px;
}
.setup-footer button {
  min-height: 44px;
}
@media (max-width: 700px) {
  .setup-shell {
    padding: 18px 14px 40px;
  }
  .setup-card {
    padding: 20px 16px;
  }
  .setup-header {
    align-items: flex-start;
  }
  .setup-header .small {
    font-size: 0.75rem;
    text-align: right;
  }
  .setup-progress {
    gap: 5px;
  }
  .setup-progress span {
    font-size: 0.74rem;
    padding: 9px 4px;
  }
  .permission-choice {
    padding: 16px;
  }
  .setup-intro h1 {
    font-size: 1.5rem;
  }
  .setup-summary {
    padding: 15px;
  }
  .setup-summary > div {
    font-size: 0.82rem;
  }
  .choice-buttons span {
    padding: 10px 5px;
    font-size: 0.85rem;
  }
  .invitation {
    align-items: flex-start;
    flex-direction: column;
  }
  .setup-footer {
    gap: 8px;
  }
  .setup-footer button {
    font-size: 0.84rem;
    padding: 10px;
  }
  .search-input > span {
    display: none;
  }
}
.choice-buttons label {
  position: relative;
}
.choice-buttons input[type="radio"] {
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
}
/* v0.3.0: dated, scan-friendly search lists */
.search-results {
  width: 100%;
}
.search-table-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
}
.room-search-table {
  min-width: 860px;
  table-layout: fixed;
}
.room-search-table th {
  background: #f7f8fc;
  font-size: 0.82rem;
  padding: 14px;
}
.room-search-table td {
  padding: 18px 14px;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.room-search-table th:first-child {
  width: 30%;
}
.room-search-table th:nth-child(2) {
  width: 23%;
}
.room-search-table th:nth-child(3),
.room-search-table th:nth-child(4) {
  width: 16%;
}
.room-search-table th:last-child {
  width: 15%;
}
.room-search-table tbody tr:last-child td {
  border-bottom: 0;
}
.room-search-table tbody tr:hover {
  background: #faf9ff;
}
.search-room-title strong {
  font-size: 0.96rem;
  display: block;
  line-height: 1.5;
  margin-bottom: 5px;
}
.search-room-title .small {
  display: block;
  margin: 3px 0;
}
.search-room-title .badge {
  margin-top: 8px;
}
.search-date {
  display: block;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.85rem;
}
.date-kind {
  font-size: 0.75rem;
  color: #6a55be;
  display: block;
  margin-bottom: 3px;
}
.room-search-table td > small {
  display: block;
  font-size: 0.74rem;
  margin-top: 4px;
}
.room-search-table td > button {
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 8px 10px;
}
.sort-control {
  display: flex;
  gap: 8px;
  align-items: center;
}
.sort-control select {
  width: auto;
  font-size: 0.85rem;
  max-width: 235px;
}
.people-search-list {
  display: grid;
  gap: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}
.person-row:last-child {
  border-bottom: 0;
}
.person-row h3 {
  margin: 0 0 4px;
}
.person-row > .user-row {
  flex: 1;
  min-width: 170px;
}
.person-row .person-code {
  font-size: 0.78rem;
  margin: 0;
  min-width: 180px;
}
.person-invite {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.person-invite .field {
  margin: 0;
  min-width: 180px;
}
.person-invite .label-line {
  font-size: 0.78rem;
}
.person-invite > button {
  white-space: nowrap;
  font-size: 0.82rem;
  min-height: 43px;
}
@media (max-width: 1100px) {
  .person-row {
    flex-wrap: wrap;
    gap: 14px;
  }
  .person-invite {
    width: 100%;
  }
  .person-invite .field {
    flex: 1;
  }
}
@media (max-width: 700px) {
  .room-search-table {
    min-width: 0;
    table-layout: auto;
  }
  .room-search-table thead {
    display: none;
  }
  .room-search-table,
  .room-search-table tbody {
    display: block;
    width: 100%;
  }
  .room-search-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
  }
  .room-search-table tr:last-child {
    border-bottom: 0;
  }
  .room-search-table td {
    display: block;
    padding: 0;
    border: 0;
    font-size: 0.84rem;
  }
  .room-search-table td:before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 5px;
  }
  .room-search-table .search-room-title {
    grid-column: 1/-1;
  }
  .room-search-table .search-room-title:before {
    display: none;
  }
  .room-search-table td:nth-child(2) {
    grid-column: 1/-1;
  }
  .room-search-table td:last-child {
    grid-column: 1/-1;
  }
  .room-search-table td:last-child:before {
    display: none;
  }
  .room-search-table td > button {
    width: 100%;
    min-height: 42px;
  }
  .search-date {
    font-size: 0.88rem;
  }
  .sort-control {
    flex-wrap: wrap;
    gap: 6px;
  }
  .sort-control select {
    max-width: 220px;
  }
  .person-row {
    padding: 18px;
  }
  .person-row .person-code {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .person-row > .user-row {
    min-width: 0;
    width: 100%;
  }
  .person-invite {
    flex-wrap: wrap;
  }
  .person-invite .field {
    min-width: 0;
    width: 100%;
  }
  .person-invite > button {
    width: 100%;
  }
}

.setting-group {
  border-top: 1px solid var(--border, #ddd);
  margin-top: 24px;
  padding-top: 16px;
}
.setting-lock {
  color: #7a6471;
}
fieldset:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}
