:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: #eef2f3;
  background: #0b0d0e;
  --surface: #15191b;
  --surface-raised: #1a1f21;
  --line: #343b3e;
  --line-strong: #596469;
  --muted: #98a3a8;
  --cyan: #54c7ec;
  --orange: #e89443;
  --green: #7fbd8a;
  --rose: #d987a2;
  --danger: #df7777;
}

* {
  box-sizing: border-box;
}

.ui-icon-sprite {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

.ui-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html {
  min-width: 320px;
  background: #0b0d0e;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #101315;
  color: #eef2f3;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.sns-header {
  min-height: 70px;
  padding: 10px max(20px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #080a0b;
  border-bottom: 1px solid #2f3538;
}

.sns-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.sns-brand img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
}

.sns-brand span {
  min-width: 0;
  display: block;
}

.sns-brand small,
.section-kicker,
.tool-heading small {
  display: block;
  color: #899398;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.sns-brand strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.2;
}

.sns-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-mode-control {
  min-height: 36px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #3c4447;
  border-radius: 5px;
  background: #080a0b;
}

.sns-header-nav .workspace-mode-control button {
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #899398;
  font-size: 9px;
}

.sns-header-nav .workspace-mode-control button[aria-pressed="true"] {
  background: #263238;
  color: #dff7fc;
}

body:not([data-interface-mode="developer"]) .developer-only {
  display: none !important;
}

.sns-header-nav a,
.sns-header-nav button {
  min-height: 36px;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3c4447;
  border-radius: 5px;
  background: #15191b;
  color: #dce1e3;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.sns-header-nav a:hover,
.sns-header-nav button:hover {
  border-color: #637075;
  background: #202527;
}

.sns-main {
  width: min(1240px, calc(100% - 40px));
  min-height: calc(100vh - 130px);
  margin: 0 auto;
  padding: 34px 0 52px;
}

.loading-view {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.loading-view p {
  margin: 0;
}

.loading-mark {
  width: 34px;
  height: 34px;
  border: 3px solid #3d474b;
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: sns-loading 0.8s linear infinite;
}

@keyframes sns-loading {
  to {
    transform: rotate(360deg);
  }
}

.auth-view {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 44px;
  align-items: center;
}

.auth-view[data-auth-panel="register"] {
  grid-template-columns: minmax(230px, 0.48fr) minmax(0, 1.52fr);
  align-items: start;
}

.auth-intro h1 {
  margin: 5px 0 22px;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 0;
}

.auth-state-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-state-list span {
  min-height: 31px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #424b4f;
  border-radius: 4px;
  background: #15191b;
  color: #cbd1d3;
  font-size: 11px;
  font-weight: 800;
}

.auth-state-list span:nth-child(1) {
  border-left: 3px solid var(--green);
}

.auth-state-list span:nth-child(2) {
  border-left: 3px solid var(--orange);
}

.auth-state-list span:nth-child(3) {
  border-left: 3px solid var(--cyan);
}

.auth-state-list span:nth-child(4) {
  border-left: 3px solid var(--rose);
}

.member-auth-tool {
  min-width: 0;
  padding: 22px;
  border: 1px solid #424b4f;
  border-radius: 7px;
  background: var(--surface-raised);
}

.auth-tabs,
.scope-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #414a4e;
  border-radius: 5px;
  overflow: hidden;
}

.auth-tabs {
  margin-bottom: 22px;
}

.auth-tabs button,
.scope-tabs button {
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-right: 1px solid #414a4e;
  background: #111516;
  color: #9ca7ab;
  font-size: 12px;
  font-weight: 800;
}

.auth-tabs button:last-child,
.scope-tabs button:last-child {
  border-right: 0;
}

.auth-tabs button[aria-selected="true"] {
  background: #35202a;
  color: #ffc4d7;
}

.scope-tabs button[aria-selected="true"] {
  background: #17313a;
  color: #a7e6f8;
}

.tool-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.tool-heading h2 {
  margin: 3px 0 0;
  font-size: 20px;
  line-height: 1.25;
}

.tool-marker {
  width: 7px;
  height: 45px;
  flex: 0 0 7px;
  border-radius: 3px;
}

.marker-sns {
  background: var(--rose);
}

.marker-register {
  background: var(--cyan);
}

.member-form label,
.post-options label > span,
.post-title-field > span,
.post-body-field > span,
.comment-form label {
  display: block;
  margin: 14px 0 6px;
  color: #d6dcde;
  font-size: 12px;
  font-weight: 800;
}

.member-form input,
.member-form select,
.account-form input,
.account-form select,
.post-options select,
.post-title-field input,
.post-body-field textarea,
.comment-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #7a868b;
  border-radius: 6px;
  background: #f7f9fa;
  color: #172126;
  color-scheme: light;
}

.member-form input:focus,
.member-form select:focus,
.account-form input:focus,
.account-form select:focus,
.post-options select:focus,
.post-title-field input:focus,
.post-body-field textarea:focus,
.comment-form textarea:focus {
  outline: 3px solid rgba(84, 199, 236, 0.27);
  border-color: #238daf;
}

.post-body-field textarea,
.comment-form textarea {
  resize: vertical;
  line-height: 1.6;
}

.primary-action {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #8c4f65;
  border-radius: 6px;
  background: #a65370;
  color: #fff;
  font-weight: 800;
}

.member-form .primary-action {
  width: 100%;
  margin-top: 20px;
}

.register-profile-section {
  min-width: 0;
  margin: 18px 0 0;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid #414a4e;
}

.register-profile-section legend {
  padding: 0;
  color: #eef3f4;
  font-size: 12px;
  font-weight: 900;
}

.register-field-note {
  margin: 5px 0 11px;
  color: #95a1a5;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.55;
}

.member-form .profile-choice {
  margin: 0;
  display: flex;
  color: #d6dcde;
  font-size: 9px;
}

.member-form .profile-choice input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 16px;
  accent-color: #318eae;
}

.member-form .standalone-field > span {
  margin: 0 0 6px;
}

.manager-scope-note {
  margin: 10px 0 0;
  padding: 9px 10px;
  border-left: 3px solid #4fc7e8;
  background: #14272e;
  color: #bfeefa;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.5;
}

.primary-action:hover {
  background: #ba637f;
}

.primary-action:disabled {
  border-color: #4a5256;
  background: #343b3e;
  color: #aab2b5;
  cursor: wait;
}

.register-action {
  border-color: #277895;
  background: #1684aa;
}

.register-action:hover {
  background: #2196bd;
}

.register-gate {
  margin: 4px 0 18px;
  padding: 14px;
  border-left: 4px solid var(--cyan);
  background: #14272e;
}

.register-gate a {
  min-height: 42px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #277895;
  border-radius: 5px;
  background: #1684aa;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.form-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: #aeb7bb;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.form-status[data-tone="error"] {
  color: #ffadad;
}

.form-status[data-tone="success"] {
  color: #9edbaa;
}

.feed-view {
  min-width: 0;
}

.pull-refresh-indicator {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 90;
  min-height: 38px;
  padding: 7px 12px;
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid #4d5a5f;
  border-radius: 999px;
  background: #151a1c;
  color: #dbe4e7;
  box-shadow: 0 8px 24px rgb(0 0 0 / 38%);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -58px);
  transition: opacity 140ms ease, transform 160ms ease;
}

.pull-refresh-indicator.is-visible,
.pull-refresh-indicator.is-refreshing {
  opacity: 1;
}

.pull-refresh-spinner {
  width: 16px;
  height: 16px;
  display: block;
  border: 2px solid #526066;
  border-top-color: var(--cyan);
  border-radius: 50%;
}

.pull-refresh-indicator.is-refreshing .pull-refresh-spinner {
  animation: sns-loading 0.75s linear infinite;
}

.secondary-action {
  min-height: 40px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #536066;
  border-radius: 5px;
  background: #1b2022;
  color: #dce2e4;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.secondary-action:hover {
  border-color: #77858b;
  background: #252b2e;
}

.danger-action {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #8f4f52;
  border-radius: 5px;
  background: #321b1d;
  color: #ffb4b7;
  font-size: 11px;
  font-weight: 850;
}

.danger-action:hover {
  border-color: #c86b70;
  background: #472326;
}

.feed-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.feed-toolbar-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.registered-members-shortcut {
  min-height: 42px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #3f5057;
  border-radius: 5px;
  background: #141b1e;
  color: #b9c5c9;
  white-space: nowrap;
}

.registered-members-shortcut:hover {
  border-color: var(--cyan);
  background: #18252a;
}

.registered-members-shortcut span {
  font-size: 9px;
  font-weight: 800;
}

.registered-members-shortcut strong {
  color: #eaf8fb;
  font-size: 13px;
}

.system-admin-badge {
  min-height: 24px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #7d6537;
  border-radius: 4px;
  background: #282214;
  color: #f1d28d;
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}

.member-summary {
  min-width: 0;
  padding: 4px 8px 4px 4px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.member-summary:hover {
  border-color: #3f484c;
  background: #171b1d;
}

.member-summary > span:last-child {
  min-width: 0;
}

.member-summary strong,
.member-summary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-summary strong {
  font-size: 15px;
}

.member-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.member-initial {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #8c4f65;
  border-radius: 50%;
  background: #34202a;
  color: #ffd2e1;
  font-size: 15px;
  font-weight: 900;
}

.member-avatar-mini {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: block;
}

.member-avatar-mini > img,
.member-avatar-mini > .member-initial {
  width: 100%;
  height: 100%;
}

.member-avatar-mini > img {
  display: block;
  border: 1px solid #596469;
  border-radius: 50%;
  object-fit: cover;
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-state {
  min-height: 28px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #3d6878;
  border-radius: 4px;
  background: #14272e;
  color: #a9e7f8;
  font-size: 10px;
  font-weight: 850;
}

.workspace-nav {
  width: min(900px, 100%);
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #414a4e;
  border-radius: 5px;
  background: #101415;
}

body[data-interface-mode="developer"] .workspace-nav {
  width: min(1160px, 100%);
  grid-template-columns: repeat(13, minmax(0, 1fr));
}

.workspace-nav-spacer {
  display: none;
}

.workspace-nav button {
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-right: 1px solid #414a4e;
  background: transparent;
  color: #9ca7ab;
  font-size: 12px;
  font-weight: 850;
}

.workspace-nav button:last-child {
  border-right: 0;
}

.workspace-nav button:hover {
  background: #1b2022;
  color: #e4e8e9;
}

.workspace-nav button[aria-selected="true"] {
  box-shadow: inset 0 -3px 0 var(--cyan);
  background: #17313a;
  color: #bceefb;
}

.workspace-nav-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.workspace-nav-label .ui-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.workspace-nav-label > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-nav-badge {
  min-width: 20px;
  min-height: 20px;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e85f69;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.workspace-panel {
  min-width: 0;
}

.shift-readonly-bar {
  min-height: 68px;
  margin-bottom: 18px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border: 1px solid #3b5d68;
  border-left: 4px solid var(--cyan);
  border-radius: 5px;
  background: #111b1e;
}

.shift-readonly-bar > div {
  display: grid;
  gap: 2px;
}

.shift-readonly-bar span,
.shift-readonly-bar strong {
  color: #9fe5f6;
  font-size: 9px;
  font-weight: 900;
}

.shift-readonly-bar strong {
  color: #e9f8fb;
  font-size: 14px;
}

.shift-readonly-bar p {
  margin: 0;
  color: #bac4c7;
  font-size: 12px;
  line-height: 1.7;
}

.shift-summary {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #3c4447;
  border-radius: 5px;
  overflow: hidden;
  background: #111516;
}

.shift-summary > div {
  min-height: 74px;
  padding: 13px 15px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-right: 1px solid #3c4447;
}

.shift-summary > div:last-child {
  border-right: 0;
}

.shift-summary span {
  color: #8f9a9e;
  font-size: 10px;
  font-weight: 800;
}

.shift-summary strong {
  color: #eef3f4;
  font-size: 20px;
}

.shift-list {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  overflow-anchor: none;
  min-height: 0;
  touch-action: pan-y;
}

.workspace-panel.shifts-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shifts-panel .shifts-header { flex-shrink: 0; margin-bottom: 10px; }
.shifts-panel .shift-list { flex: 1; }
.shift-apply-bar { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.shift-month-details { flex-shrink: 0; border-bottom: 1px solid #353e41; }
.shift-month-details summary { cursor: pointer; padding: 8px 0; font-size: 12px; color: #cbd4d7; }
.shift-month-details summary span { margin-left: 12px; color: #8f9b9f; font-size: 11px; }
.shift-month-details .shift-summary { margin: 6px 0 10px; }
.shifts-panel #shiftStatus { flex-shrink: 0; min-height: 32px; margin: 8px 0; font-size: 11px; }
.shifts-panel .shift-row[data-today="true"] {
  border-color: #79c4dc;
  border-left-color: #aeeafb;
  background: #203337;
}
.shift-row-date .shift-today-label { color: #aeeafb; font-weight: 700; font-size: 11px; }

@media (max-width: 900px) {
  .shifts-panel .shift-list { flex: none; height: var(--shift-list-height, 48svh); min-height: 180px; }
  .shifts-panel .shift-actions { width: auto; gap: 6px; flex-direction: row; }
  .shifts-panel .shifts-header { gap: 8px; flex-direction: column; padding-bottom: 10px; }
  .shifts-panel .section-kicker { display: none; }
  .shifts-panel .shift-row-detail span,
  .shifts-panel .shift-row-place span,
  .shifts-panel .shift-row-time span { display: none; }
}

.shift-row {
  min-height: 72px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: 72px minmax(130px, 0.8fr) minmax(170px, 1.3fr) minmax(120px, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid #353e41;
  border-left: 3px solid #4f6066;
  border-radius: 5px;
  background: #121718;
}

.shift-row[data-work="true"] {
  border-left-color: var(--cyan);
  background: #121b1e;
}

.shift-row-date,
.shift-row-time,
.shift-row-detail,
.shift-row-place {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.shift-row-date strong,
.shift-row-time strong,
.shift-row-detail strong,
.shift-row-place strong {
  overflow-wrap: anywhere;
  color: #e8edef;
  font-size: 13px;
}

.shift-row-date span,
.shift-row-time span,
.shift-row-detail span,
.shift-row-place span {
  color: #8f9b9f;
  font-size: 9px;
  font-weight: 800;
}

.shift-row-date strong {
  font-size: 18px;
}

.shift-row[data-today="true"] .shift-row-date strong {
  color: #aeeafb;
}

.shift-empty {
  min-height: 180px;
  padding: 32px 18px;
  display: grid;
  place-items: center;
  border: 1px dashed #495357;
  border-radius: 5px;
  color: #aab4b7;
  text-align: center;
  line-height: 1.8;
}

.shift-match-note {
  margin: 10px 0 0;
  color: #9ba7aa;
  font-size: 11px;
}

.shift-match-note[data-linked="true"] {
  color: #9fe5f6;
}

.workspace-section-header {
  min-height: 90px;
  padding-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #343b3e;
}

.workspace-section-header h1 {
  margin: 5px 0 4px;
  font-size: 25px;
  line-height: 1.25;
}

.workspace-section-header p {
  margin: 0;
  color: #96a1a5;
  font-size: 11px;
  font-weight: 700;
}

.workspace-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-section-actions .primary-action {
  min-height: 42px;
  border-color: #277895;
  background: #1684aa;
  white-space: nowrap;
}

.workspace-section-actions .primary-action:hover {
  background: #2196bd;
}

.facility-context-bar {
  min-height: 64px;
  margin: 14px 0 18px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #3a464a;
  border-bottom: 1px solid #3a464a;
  background: #111719;
}

.facility-context-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.facility-context-copy span,
.facility-context-bar label > span {
  color: #83cfe5;
  font-size: 8px;
  font-weight: 850;
}

.facility-context-copy strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.facility-context-bar label {
  min-width: min(300px, 48%);
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr);
  align-items: center;
  gap: 10px;
}

.facility-context-bar select {
  width: 100%;
  min-height: 40px;
  padding: 7px 34px 7px 10px;
  border: 1px solid #7c898e;
  border-radius: 4px;
  background: #f7f9fa;
  color: #172126;
  color-scheme: light;
  font-size: 11px;
  font-weight: 800;
}

.home-metrics {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #384044;
  border-bottom: 1px solid #384044;
}

.home-metric {
  min-width: 0;
  min-height: 86px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-right: 1px solid #384044;
}

.home-metric-button {
  position: relative;
  width: 100%;
  margin: 0;
  padding-right: 38px;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.home-metric-button:hover {
  background: #101b1f;
}

.home-metric-button:focus-visible {
  z-index: 1;
  outline: 2px solid var(--cyan);
  outline-offset: -3px;
}

.home-metric-button[data-has-unread="true"] {
  background: #102129;
}

.home-metric-button[data-has-unread="true"] strong {
  color: #8de9ff;
}

.home-metric-button[data-loading="true"] {
  cursor: wait;
}

.home-metric-arrow {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 15px;
  height: 15px;
  color: #64757b;
  transform: translateY(-50%);
}

.home-metric-button[data-has-unread="true"] .home-metric-arrow {
  color: var(--cyan);
}

.home-metric:last-child {
  border-right: 0;
}

.home-metric span {
  color: #9aa5a9;
  font-size: 11px;
  font-weight: 800;
}

.home-metric strong {
  color: #e9f6f9;
  font-size: 28px;
  line-height: 1;
}

.workspace-install-bar {
  min-height: 76px;
  margin-top: 18px;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border-top: 1px solid #2b778d;
  border-bottom: 1px solid #2b778d;
  background: #101b1f;
}

.workspace-install-bar[hidden] {
  display: none;
}

.workspace-install-bar img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.workspace-install-bar div {
  min-width: 0;
}

.workspace-install-bar span {
  color: #69c9e5;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.workspace-install-bar strong,
.workspace-install-bar p {
  display: block;
}

.workspace-install-bar strong {
  margin-top: 3px;
  color: #ecf5f7;
  font-size: 13px;
}

.workspace-install-bar p {
  margin: 4px 0 0;
  color: #9aa8ac;
  font-size: 10px;
  line-height: 1.5;
}

.workspace-install-bar .secondary-action {
  min-height: 40px;
  border-color: #367f94;
  color: #c5eef8;
  white-space: nowrap;
}

.home-today {
  margin-top: 24px;
  padding: 18px 0 22px;
  border-top: 1px solid #3b464a;
  border-bottom: 1px solid #3b464a;
}

.home-today .home-subheading {
  margin-bottom: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.home-today-heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.freee-apply-trigger { gap: 7px; white-space: nowrap; }
.freee-apply-trigger .ui-icon { width: 15px; height: 15px; }

.home-today-status {
  min-height: 27px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #47555a;
  border-radius: 4px;
  background: #151b1d;
  color: #a8b4b8;
  font-size: 9px;
  font-weight: 900;
}

.home-today-status[data-active="true"] {
  border-color: #9b6637;
  background: #271d15;
  color: #ffd09a;
}

.home-today-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr);
  gap: 9px;
}

.home-today-shift {
  min-width: 0;
  min-height: 88px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 13px;
  border: 1px solid #3d5963;
  border-left: 4px solid #499db4;
  border-radius: 6px;
  background: #121c20;
  color: #e8f4f7;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.home-today-shift:hover {
  border-color: #5d91a1;
  background: #16262c;
}

.home-today-shift > .ui-icon:first-child {
  width: 28px;
  height: 28px;
  color: #7bd6ed;
}

.home-today-shift > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.home-today-shift small {
  color: #75cce2;
  font-size: 8px;
  font-weight: 900;
}

.home-today-shift strong,
.home-today-shift b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-today-shift strong {
  font-size: 17px;
  line-height: 1.25;
}

.home-today-shift b {
  color: #9caaaf;
  font-size: 9px;
}

.home-today-shift[data-state="working"] {
  border-left-color: #55c679;
  background: #121f19;
}

.home-today-shift[data-state="working"] > .ui-icon:first-child,
.home-today-shift[data-state="working"] small {
  color: #79df94;
}

.home-today-shift[data-state="unlinked"] {
  border-left-color: #c4924c;
  background: #211b14;
}

.home-today-shift[data-state="unlinked"] > .ui-icon:first-child,
.home-today-shift[data-state="unlinked"] small {
  color: #e7b66e;
}

.home-today-chevron {
  width: 17px;
  height: 17px;
  color: #6f8187;
}

.home-today-counts {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #3c4549;
  border-radius: 6px;
  overflow: hidden;
  background: #14191b;
}

.home-today-counts button {
  min-width: 0;
  min-height: 86px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-right: 1px solid #394246;
  background: transparent;
  color: #a5b0b4;
}

.home-today-counts button:last-child {
  border-right: 0;
}

.home-today-counts button:hover {
  background: #1a2022;
}

.home-today-counts button[data-active="true"] {
  background: #172329;
  color: #d9f5fc;
}

.home-today-counts span {
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}

.home-today-counts strong {
  color: #e9f2f4;
  font-size: 24px;
  line-height: 1;
}

.home-today-counts button:first-child[data-active="true"] strong { color: #88e4f9; }
.home-today-counts button:nth-child(2)[data-active="true"] strong { color: #85d99a; }
.home-today-counts button:last-child[data-active="true"] strong { color: #ffc482; }

.home-today-list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.home-today-item {
  width: 100%;
  min-width: 0;
  min-height: 76px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  border: 1px solid #394347;
  border-left: 3px solid #4c8392;
  border-radius: 5px;
  background: #13191b;
  color: #dce6e8;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.home-today-item:hover {
  border-color: #55727b;
  background: #192124;
  transform: translateY(-1px);
}

.home-today-item[data-kind="task"] { border-left-color: #d7a84e; }
.home-today-item[data-kind="calendar"] { border-left-color: #5cbb76; }
.home-today-item[data-kind="document"] { border-left-color: #d782a5; }
.home-today-item[data-kind="reminder"] { border-left-color: #d09b55; }
.home-today-item[data-kind="notice"] { border-left-color: #e07568; }
.home-today-item[data-kind="call"] { border-left-color: #e07568; }
.home-today-item[data-urgent="true"] { background: #211918; }

.home-today-item-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3f6570;
  border-radius: 50%;
  background: #14262c;
  color: #8fdef1;
}

.home-today-item-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.home-today-item > .ui-icon {
  width: 15px;
  height: 15px;
  color: #6d7d82;
}

.home-today-item-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.home-today-item-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-today-item-kind,
.home-today-item time {
  color: #79cde2;
  font-size: 8px;
  font-weight: 900;
}

.home-today-item time {
  flex: 0 0 auto;
  color: #a9b4b7;
  white-space: nowrap;
}

.home-today-item-copy strong,
.home-today-item-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-today-item-copy strong { font-size: 11px; }
.home-today-item-copy small { color: #849196; font-size: 8px; font-weight: 700; }

.home-today-empty {
  grid-column: 1 / -1;
  min-height: 68px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #304047;
  border-bottom: 1px solid #304047;
  color: #8ba0a7;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.home-today-more {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #7d898e;
  font-size: 8px;
  font-weight: 750;
  text-align: right;
}

.home-freee-requests {
  margin-top: 10px;
  border: 1px solid #3b5158;
  border-left: 4px solid #50b5d0;
  border-radius: 6px;
  background: #11191c;
  overflow: hidden;
}

.home-freee-heading {
  min-height: 54px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #334147;
}

.home-freee-heading h3,
.home-freee-heading p {
  margin: 0;
}

.home-freee-heading h3 {
  margin-top: 2px;
  font-size: 13px;
}

.home-freee-heading p {
  margin-top: 2px;
  color: #89989d;
  font-size: 8px;
  font-weight: 750;
}

.home-freee-heading-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.home-freee-heading > div:first-child { min-width: 0; }
.home-freee-heading-title { display: flex; align-items: center; gap: 6px; }
.home-freee-heading-title span { min-width: 0; overflow-wrap: anywhere; }
.home-freee-heading-actions { flex-shrink: 0; }

.home-freee-notices {
  margin-top: 10px;
  border: 1px solid var(--lch-line);
  border-radius: 6px;
  background: var(--lch-surface);
  color: var(--lch-text);
  overflow: hidden;
}
.home-freee-notices > summary { cursor: pointer; list-style: none; border-bottom-color: var(--lch-line); }
.home-freee-notices > summary::-webkit-details-marker { display: none; }
.home-freee-notices:not([open]) > summary { border-bottom: 0; }
.home-freee-notices .home-freee-heading p { color: var(--lch-muted); }
.home-freee-notices[open] .home-freee-notice-toggle { transform: rotate(90deg); }
.home-freee-notice-actions { padding: 10px 11px; border-top: 1px solid var(--lch-line); }
.home-freee-notice-actions a,
#freeeRequestOpen { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#freeeRequestOpen[hidden] { display: none; }

.home-freee-count {
  min-width: 44px;
  padding: 5px 8px;
  border: 1px solid #43626b;
  border-radius: 4px;
  background: #14252b;
  color: #9eeaff;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.home-freee-count[data-active="true"] {
  border-color: #9b7034;
  background: #2b2114;
  color: #ffd394;
}

.home-freee-request-list {
  display: grid;
  max-height: 420px;
  overflow-y: auto;
}

.home-freee-request-item {
  min-width: 0;
  min-height: 56px;
  padding: 8px 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15px;
  align-items: center;
  gap: 3px 9px;
  border: 0;
  border-bottom: 1px solid #303b3f;
  background: transparent;
  color: #dde8ea;
  text-align: left;
}

.home-freee-request-item:last-child { border-bottom: 0; }
.home-freee-request-item:hover { background: #182226; }

.home-freee-request-item-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-freee-request-item-heading strong,
.home-freee-request-title,
.home-freee-request-item > small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-freee-request-item-heading strong { font-size: 11px; }
.home-freee-request-title { color: #d6e0e3; font-size: 9px; font-weight: 800; }
.home-freee-request-item > small { color: #849399; font-size: 8px; font-weight: 750; }

.home-freee-request-type {
  min-width: 58px;
  padding: 4px 6px;
  border: 1px solid #52636a;
  border-radius: 4px;
  color: #aec0c5;
  font-size: 8px;
  font-weight: 900;
  text-align: center;
}

.home-freee-request-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.home-freee-request-copy strong,
.home-freee-request-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-freee-request-copy strong { font-size: 10px; }
.home-freee-request-copy small { color: #849399; font-size: 8px; font-weight: 750; }

.home-freee-request-status {
  color: #f3bd72;
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.home-freee-request-item[data-status="pending"] .home-freee-request-status,
.home-freee-request-item[data-status="processing"] .home-freee-request-status { color: #86dff5; }
.home-freee-request-item[data-status="readonly"] .home-freee-request-status { color: #9bcbd6; }
.home-freee-request-item[data-status="failed"] .home-freee-request-status { color: #ff9da3; }
.home-freee-request-item[data-status="approved"] .home-freee-request-status { color: #8bd79b; }
.home-freee-request-item[data-status="rejected"] .home-freee-request-status { color: #efa1a1; }
.home-freee-request-item > .ui-icon {
  width: 14px;
  height: 14px;
  grid-column: 2;
  grid-row: 1 / span 3;
  color: #6e8086;
}

.home-freee-coverage-warning {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  color: inherit;
  font-size: 12px;
  line-height: 1.5;
}

.home-freee-coverage-warning summary { cursor: pointer; font-weight: 700; }
.home-freee-coverage-warning p { margin: 8px 0 0; }

.home-freee-empty {
  min-height: 52px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #839398;
  font-size: 9px;
  font-weight: 750;
  text-align: center;
}

.home-freee-request-history { padding: 10px 14px; }
.home-freee-request-history summary { padding: 6px 0; cursor: pointer; font-size: 12px; }
.home-freee-history-entry {
  padding: 12px 0;
  border-top: 1px solid #39454a;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.home-freee-history-entry strong { display: block; }
.home-freee-history-entry p { margin: 4px 0 0; }

.home-freee-more {
  margin: 0;
  padding: 7px 11px;
  border-top: 1px solid #303b3f;
  color: #839398;
  font-size: 8px;
  font-weight: 800;
  text-align: right;
}

.home-recent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-more {
  margin-top: 12px;
  border: 1px solid #394448;
  border-radius: 6px;
  background: #121719;
  overflow: hidden;
}

.home-more > summary {
  min-height: 52px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #cbd6d9;
  cursor: pointer;
  list-style: none;
}

.home-more > summary::-webkit-details-marker { display: none; }

.home-more > summary > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.home-more > summary .ui-icon { width: 18px; height: 18px; color: #77cade; }
.home-more > summary strong { font-size: 11px; }
.home-more > summary small { color: #7f8d92; font-size: 8px; font-weight: 800; }
.home-more > summary small b { color: #79dc91; font-size: 10px; }

.home-more > summary::after {
  content: "+";
  width: 22px;
  height: 22px;
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #425157;
  border-radius: 4px;
  color: #92a3a8;
  font-size: 15px;
  line-height: 1;
}

.home-more[open] > summary {
  border-bottom: 1px solid #354045;
  background: #171d1f;
}

.home-more[open] > summary::after { content: "−"; }
.home-more-content { padding: 0 13px 18px; }
.home-more .home-tools { margin: 0; padding: 12px; }
.home-more .home-metrics { margin-top: 0; }
.home-more .home-online,
.home-more .home-directory { margin-top: 20px; }

.home-online,
.home-directory,
.home-tools,
.home-notices,
.home-recent {
  margin-top: 22px;
}

#workspaceHomePanel .home-notice-list > .empty-feed,
#workspaceHomePanel .home-post-list > .empty-feed {
  min-height: 64px;
  padding: 12px;
  font-size: 9px;
}

.home-subheading {
  min-height: 42px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.home-subheading h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.online-member-count {
  color: #78dc8f;
  font-size: 10px;
  font-weight: 850;
}

.home-online-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.online-member {
  min-width: 0;
  min-height: 58px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #35423a;
  border-radius: 5px;
  background: #121816;
}

.online-member-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #4dd36f;
  border-radius: 50%;
  background: #26302c;
  color: #f0f5f2;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(77, 211, 111, 0.14);
}

.online-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-member-copy {
  min-width: 0;
  flex: 1;
}

.online-member-copy strong,
.online-member-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-member-copy strong {
  font-size: 11px;
}

.online-member-copy small {
  margin-top: 4px;
  color: #89958f;
  font-size: 8px;
  font-weight: 750;
}

.online-member-state {
  flex: 0 0 auto;
  color: #78dc8f;
  font-size: 8px;
  font-weight: 850;
}

.online-member[data-self="true"] .online-member-state {
  color: #aeb7bb;
}

.home-online-empty {
  grid-column: 1 / -1;
}

.member-directory-count {
  color: #b8c3c7;
  font-size: 10px;
  font-weight: 850;
}

.home-member-list {
  max-height: 292px;
  padding-right: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  overflow-y: auto;
  scrollbar-color: #4b575c #14191b;
}

.registered-member {
  min-width: 0;
  min-height: 64px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #3c4549;
  border-radius: 5px;
  background: #14191b;
}

.registered-member-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #596469;
  border-radius: 50%;
  background: #293033;
  color: #f0f3f4;
  font-size: 13px;
  font-weight: 900;
}

.registered-member[data-online="true"] .registered-member-avatar {
  border-color: #4dd36f;
  box-shadow: 0 0 0 2px rgba(77, 211, 111, 0.14);
}

.registered-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.registered-member-copy {
  min-width: 0;
  flex: 1;
}

.registered-member-copy strong,
.registered-member-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registered-member-copy strong {
  font-size: 11px;
}

.registered-member-copy small {
  margin-top: 3px;
  color: #879297;
  font-size: 8px;
  font-weight: 750;
}

.registered-member-state {
  flex: 0 0 auto;
  color: #717d82;
  font-size: 8px;
  font-weight: 850;
}

.registered-member[data-online="true"] .registered-member-state {
  color: #78dc8f;
}

.business-tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.business-tool-list button {
  min-width: 0;
  min-height: 54px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #3c4447;
  border-radius: 5px;
  background: #15191b;
  color: #a6b0b4;
  text-align: left;
}

.business-tool-list button:disabled {
  cursor: default;
}

.business-tool-list strong {
  font-size: 11px;
}

.business-tool-list span {
  color: #778287;
  font-size: 9px;
  font-weight: 850;
}

.business-tool-list .business-tool-phone {
  color: #a9e7f8;
}

.business-tool-icon {
  width: 24px;
  height: 24px;
}

.home-administrative-watch {
  width: 100%;
  min-height: 72px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 12px;
  border: 1px solid #3b5057;
  border-left: 4px solid #3a91aa;
  border-radius: 6px;
  background: #131b1e;
  color: #d8e7eb;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.home-administrative-watch:hover {
  border-color: #4b8291;
  background: #172429;
  transform: translateY(-1px);
}

.administrative-watch-signal {
  width: 10px;
  height: 10px;
  border: 2px solid #526268;
  border-radius: 50%;
  background: #242d30;
}

.home-administrative-watch[data-has-news="true"] .administrative-watch-signal {
  border-color: #8de7fb;
  background: #20a8cc;
  box-shadow: 0 0 0 0 rgba(63, 200, 234, .32);
  animation: administrative-watch-pulse 2.2s ease-out infinite;
}

.home-administrative-watch-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.home-administrative-watch-copy small {
  color: #5faec1;
  font-size: 8px;
  font-weight: 900;
}

.home-administrative-watch-copy strong {
  font-size: 13px;
}

.home-administrative-watch-copy > span {
  color: #91a3a9;
  font-size: 9px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.home-administrative-watch > b {
  min-width: 46px;
  color: #9eb0b6;
  font-size: 15px;
  text-align: right;
}

.home-administrative-watch > b[data-has-news="true"] { color: #9eeafd; }
.home-administrative-watch > .ui-icon { width: 18px; height: 18px; color: #74878d; }

.home-post-list {
  display: grid;
  gap: 8px;
}

.freee-request-dialog {
  width: min(560px, calc(100% - 28px));
}

.freee-apply-identity {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #3d4b50;
  border-radius: 5px;
  background: #131a1d;
  color: #d9e3e6;
  font-size: 11px;
  font-weight: 800;
}

.freee-apply-menu {
  margin: 12px 0;
  color: #91d4e5;
  font-size: 12px;
  font-weight: 800;
}

.freee-apply-note { margin: 0; color: #a9b8bd; font-size: 10px; line-height: 1.6; }
.freee-apply-actions { flex-wrap: wrap; }
.freee-apply-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.freee-request-review-meta {
  margin-bottom: 12px;
  padding: 11px 12px;
  display: grid;
  gap: 3px;
  border: 1px solid #3d4b50;
  border-radius: 5px;
  background: #131a1d;
}

.freee-request-review-meta strong { font-size: 14px; }
.freee-request-review-meta span { color: #8d9ba0; font-size: 9px; font-weight: 750; }

.freee-request-review-details {
  margin: 0 0 14px;
  border-top: 1px solid #384448;
}

.freee-request-review-details > div {
  padding: 10px 3px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid #384448;
}

.freee-request-review-details dt {
  color: #829196;
  font-size: 9px;
  font-weight: 850;
}

.freee-request-review-details dd {
  margin: 0;
  color: #d9e3e6;
  font-size: 10px;
  font-weight: 750;
  white-space: pre-wrap;
}

.freee-request-review-note {
  margin: 8px 0 0;
  color: #7f8d92;
  font-size: 8px;
  font-weight: 750;
}

.freee-request-actions {
  justify-content: space-between;
}

.home-post-item {
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid #3c4447;
  border-left: 3px solid #657176;
  border-radius: 5px;
  background: #15191b;
}

.home-post-item[data-category="notice"] { border-left-color: var(--orange); }
.home-post-item[data-category="handover"] { border-left-color: var(--green); }
.home-post-item[data-category="question"] { border-left-color: var(--cyan); }
.home-post-item[data-category="sales"] { border-left-color: #e8b45c; }
.home-post-item[data-category="committee"] { border-left-color: #b99be0; }
.home-post-item[data-category="document"] { border-left-color: #ef8181; }

.home-post-top,
.home-post-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.home-post-top {
  justify-content: space-between;
}

.home-room-link {
  min-width: 0;
  padding: 3px 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #91dcef;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-room-link:hover {
  color: #c6f2fc;
}

.home-post-title {
  margin: 11px 0 0;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.home-post-body {
  margin: 7px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: #d2d9db;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-post-meta {
  margin-top: 13px;
  padding-top: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #2e3538;
  color: #899398;
  font-size: 9px;
  font-weight: 750;
}

.home-post-author {
  color: #bdc6c9;
}

.home-post-detail {
  margin-left: auto;
}

.home-open-room {
  min-height: 31px;
  padding: 5px 9px;
  border: 1px solid #45636f;
  border-radius: 4px;
  background: #17272d;
  color: #bfeaf6;
  font-size: 9px;
  font-weight: 850;
}

.task-card[data-highlight="true"],
.calendar-agenda-item[data-highlight="true"] {
  border-color: #79dfff;
  box-shadow: 0 0 0 3px rgb(87 205 240 / 16%);
}

.room-add-command {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  border: 1px solid #45636f;
  border-radius: 4px;
  background: #17272d;
  color: #bfeaf6;
  font-size: 20px;
  line-height: 1;
}

.account-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.account-identity {
  min-width: 0;
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid #3b4447;
  border-bottom: 1px solid #3b4447;
  text-align: center;
}

.account-initial {
  width: 74px;
  height: 74px;
  margin-bottom: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #4b8296;
  border-radius: 50%;
  background: #17313a;
  color: #bceefb;
  font-size: 25px;
  font-weight: 900;
}

.account-identity strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity > span:not(.account-initial),
.account-identity small {
  margin-top: 5px;
  color: #9ba6aa;
  font-size: 10px;
  font-weight: 750;
}

.account-form {
  min-width: 0;
  padding: 22px;
  border: 1px solid #424b4f;
  border-radius: 6px;
  background: #1a1f21;
}

.account-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid #343b3e;
}

.account-form fieldset + fieldset {
  padding-top: 20px;
}

.account-form legend {
  padding: 0;
  color: #e2e7e8;
  font-size: 12px;
  font-weight: 850;
}

.account-field-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 13px;
}

.account-field-grid label {
  min-width: 0;
}

.account-field-grid label > span {
  display: block;
  margin: 13px 0 6px;
  color: #d6dcde;
  font-size: 11px;
  font-weight: 800;
}

.account-field-grid input,
.account-field-grid select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #7a868b;
  border-radius: 5px;
  background: #f7f9fa;
  color: #172126;
  color-scheme: light;
}

.account-form-footer {
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.account-form-footer .form-status {
  margin: 0;
}

.account-form-footer .primary-action {
  min-width: 138px;
}

.profile-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: min(860px, calc(100vh - 24px));
  padding: 0;
  overflow: auto;
  border: 1px solid #576268;
  border-radius: 7px;
  background: #181d1f;
  color: #edf1f2;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.62);
}

.profile-dialog::backdrop {
  background: rgba(2, 3, 4, 0.84);
}

.profile-shell {
  position: relative;
}

.profile-cover {
  height: 122px;
  border-bottom: 1px solid #48606a;
  background: #203942;
}

.profile-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  background: rgba(10, 13, 14, 0.9);
}

.profile-overview {
  min-height: 340px;
  padding: 0 25px 26px;
}

.profile-avatar-row {
  min-height: 60px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-avatar {
  width: 104px;
  height: 104px;
  margin-top: -52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid #181d1f;
  border-radius: 50%;
  background: #2b3336;
  color: #eef2f3;
  font-size: 34px;
  font-weight: 900;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-row .secondary-action {
  margin-top: 14px;
}

.profile-overview h2 {
  margin: 16px 0 4px;
  font-size: 23px;
}

.profile-affiliations {
  margin: 0;
  color: #a6b0b4;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.6;
}

.profile-role-chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-role-chips span {
  min-height: 26px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #4d5a5f;
  border-radius: 4px;
  background: #111516;
  color: #d4dbdd;
  font-size: 9px;
  font-weight: 800;
}

.profile-private-data {
  margin: 19px 0 0;
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid #343b3e;
}

.profile-private-data div {
  min-width: 0;
}

.profile-private-data dt,
.profile-private-data dd {
  margin: 0;
}

.profile-private-data dt {
  color: #7f8b90;
  font-size: 8px;
  font-weight: 800;
}

.profile-private-data dd {
  margin-top: 4px;
  color: #dce2e4;
  font-size: 11px;
  font-weight: 750;
}

.profile-overview > .form-status {
  margin: 18px 0 0;
}

.profile-edit-form {
  padding: 24px 25px 26px;
  border: 0;
  border-radius: 0;
  background: #181d1f;
}

.avatar-editor {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar-editor-preview {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #596469;
  border-radius: 50%;
  background: #2b3336;
  font-size: 22px;
  font-weight: 900;
}

.avatar-picker-preview {
  position: relative;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.avatar-picker-preview::after {
  content: "+";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #181d1f;
  border-radius: 50%;
  background: #1684aa;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.avatar-picker-preview:hover {
  border-color: #73cce7;
  box-shadow: 0 0 0 3px rgba(42, 166, 202, 0.14);
}

.avatar-editor-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-editor > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.avatar-editor small {
  width: 100%;
  color: #899398;
  font-size: 8px;
}

.avatar-picker-action {
  cursor: pointer;
}

.avatar-picker-action:has(input:focus-visible) {
  outline: 2px solid #77d3ed;
  outline-offset: 2px;
}

.avatar-picker-action[data-busy="true"] {
  cursor: wait;
  opacity: 0.62;
  pointer-events: none;
}

.text-action {
  min-height: 36px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: #b9c3c6;
  font-size: 10px;
  font-weight: 800;
}

.danger-text {
  color: #ef9a9a;
}

.fieldset-note {
  margin: 6px 0 12px;
  color: #899398;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.55;
}

.profile-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.profile-choice-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-choice {
  min-width: 0;
  min-height: 42px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #465055;
  border-radius: 4px;
  background: #111516;
  color: #d6dcde;
  font-size: 9px;
  font-weight: 800;
}

.profile-choice:has(input:checked) {
  border-color: #4b8499;
  background: #152a31;
  color: #c8eff9;
}

.account-form .profile-choice input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
  accent-color: #318eae;
}

.standalone-field {
  display: block;
  margin-top: 14px;
}

.standalone-field > span {
  display: block;
  margin-bottom: 6px;
  color: #d6dcde;
  font-size: 10px;
  font-weight: 800;
}

.profile-edit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-room-filter {
  min-height: 44px;
  margin-top: 14px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #3d6878;
  border-radius: 4px;
  background: #14272e;
  color: #bceefb;
  font-size: 10px;
  font-weight: 800;
}

.task-room-filter button {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #527685;
  border-radius: 4px;
  background: #1b333c;
  color: #d4f3fa;
  font-size: 9px;
  font-weight: 800;
}

.sns-workspace {
  min-width: 0;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr) 218px;
  align-items: start;
  border-top: 1px solid #343b3e;
  border-bottom: 1px solid #343b3e;
}

.room-panel {
  min-width: 0;
  min-height: 620px;
  padding: 24px 20px 28px 0;
  border-right: 1px solid #343b3e;
}

.room-filter {
  display: block;
  margin-bottom: 14px;
}

.room-filter input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #4b5559;
  border-radius: 4px;
  background: #f7f9fa;
  color: #172126;
  color-scheme: light;
}

.room-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.room-panel-heading h2 {
  margin: 3px 0 0;
  font-size: 16px;
}

.room-list {
  display: grid;
  gap: 13px;
}

.room-group {
  display: grid;
  gap: 5px;
}

.room-group-title {
  margin: 0 3px 3px;
  color: #778388;
  font-size: 9px;
  font-weight: 850;
}

.room-button {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  display: block;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #b7c0c3;
  text-align: left;
}

.room-button:hover {
  border-color: #3f484c;
  background: #171b1d;
}

.room-button[data-active="true"] {
  border-color: #385967;
  border-left-color: var(--cyan);
  background: #15262d;
  color: #e7f7fc;
}

.room-button-name {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-button-name::before {
  content: "#";
  margin-right: 5px;
  color: #708087;
}

.room-button[data-active="true"] .room-button-name::before {
  color: var(--cyan);
}

.room-button-meta {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #7f8b90;
}

.room-button-meta small {
  overflow: hidden;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-panel-note {
  margin: 18px 2px 0;
  color: #7e898e;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.6;
}

.room-main {
  min-width: 0;
  padding: 24px 28px 34px;
}

.room-info-panel {
  min-width: 0;
  min-height: 620px;
  padding: 24px 0 28px 20px;
  border-left: 1px solid #343b3e;
}

.room-info-heading h2 {
  margin: 3px 0 0;
  font-size: 16px;
}

.room-info-actions {
  margin-top: 15px;
  display: grid;
  gap: 6px;
}

.room-info-actions button {
  min-width: 0;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid #3f484c;
  border-radius: 4px;
  background: #121617;
  color: #dce2e4;
  text-align: left;
}

.room-info-actions button:hover {
  border-color: #4d7180;
  background: #17272d;
}

.room-info-actions strong,
.room-info-actions span {
  display: block;
}

.room-info-actions strong {
  font-size: 11px;
}

.room-info-actions span {
  margin-top: 3px;
  color: #899398;
  font-size: 8px;
  font-weight: 700;
}

.room-participants {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #343b3e;
}

.room-participants-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.room-participants-heading h3 {
  margin: 0;
  font-size: 12px;
}

.room-participants-heading span,
.room-participant-more {
  color: #859095;
  font-size: 8px;
  font-weight: 750;
}

.room-participant-list {
  margin-top: 11px;
  display: grid;
  gap: 9px;
}

.room-participant {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.participant-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #596469;
  border-radius: 50%;
  background: #242a2d;
  color: #e4e8e9;
  font-size: 10px;
  font-weight: 900;
}

.participant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-participant-copy {
  min-width: 0;
  flex: 1;
}

.room-participant-copy strong,
.room-participant-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-participant-copy strong {
  font-size: 10px;
}

.room-participant-copy small {
  margin-top: 2px;
  color: #859095;
  font-size: 7px;
}

.room-header {
  min-height: 86px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.room-heading-copy {
  min-width: 0;
}

.room-heading-copy h1 {
  margin: 6px 0 4px;
  font-size: 25px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.room-heading-copy h1::before {
  content: "#";
  margin-right: 7px;
  color: var(--cyan);
}

.room-heading-copy p {
  margin: 0;
  color: #9ba6aa;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.room-visibility {
  min-height: 23px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #3e6979;
  border-radius: 4px;
  background: #14272e;
  color: #a9e7f8;
  font-size: 9px;
  font-weight: 850;
}

.scope-tabs {
  width: min(310px, 48vw);
}

.icon-command {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 1px solid #414a4e;
  border-radius: 5px;
  background: #15191b;
  color: #dbe1e3;
  font-size: 21px;
  line-height: 1;
}

.icon-command:hover {
  border-color: #6a777c;
  background: #202527;
}

.icon-command .ui-icon {
  width: 17px;
  height: 17px;
}

.composer {
  padding: 22px;
  border: 1px solid #424b4f;
  border-left: 4px solid var(--rose);
  border-radius: 7px;
  background: var(--surface-raised);
}

.attachment-toolbar {
  margin-top: 13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-toolbar > span {
  margin-left: auto;
  color: #899398;
  font-size: 9px;
  font-weight: 800;
}

.attachment-command {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #45636f;
  border-radius: 5px;
  background: #17272d;
  color: #bfeaf6;
  font-size: 10px;
  font-weight: 850;
}

.attachment-command:hover {
  border-color: #5c91a5;
  background: #1d333b;
}

.attachment-queue {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.attachment-queue:empty {
  display: none;
}

.queued-attachment {
  min-width: 0;
  min-height: 54px;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #3d4649;
  border-radius: 5px;
  background: #121617;
}

.queued-attachment > img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 3px;
}

.queued-file-kind {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #526067;
  border-radius: 3px;
  color: #b8c3c7;
  font-size: 8px;
  font-weight: 900;
}

.queued-attachment-copy {
  min-width: 0;
}

.queued-attachment-copy strong,
.queued-attachment-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queued-attachment-copy strong {
  font-size: 10px;
}

.queued-attachment-copy small {
  margin-top: 3px;
  color: #879297;
  font-size: 9px;
}

.queued-attachment-remove {
  min-height: 30px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: #df9292;
  font-size: 9px;
  font-weight: 850;
}

.composer-heading,
.feed-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.composer-heading h1,
.feed-heading h2 {
  margin: 3px 0 0;
  font-size: 19px;
  line-height: 1.3;
}

.audience-preview,
.feed-count,
.post-audience,
.post-category {
  min-height: 25px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #4b5559;
  border-radius: 4px;
  background: #141819;
  color: #c4cbce;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.post-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.post-options label {
  min-width: 0;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.composer-footer > span {
  color: #899398;
  font-size: 10px;
  font-weight: 800;
}

.post-submit {
  min-width: 130px;
}

.feed-heading {
  margin: 32px 0 14px;
}

.post-list {
  display: grid;
  gap: 12px;
}

.post-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid #3c4447;
  border-left: 4px solid #6c767a;
  border-radius: 6px;
  background: var(--surface);
}

.post-card[data-category="notice"] {
  border-left-color: var(--orange);
}

.post-card[data-category="handover"] {
  border-left-color: var(--green);
}

.post-card[data-category="question"] {
  border-left-color: var(--cyan);
}

.post-card[data-category="sales"] {
  border-left-color: #e8b45c;
}

.post-card[data-category="committee"] {
  border-left-color: #b99be0;
}

.post-card[data-category="document"] {
  border-left-color: #ef8181;
}

.post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.post-author {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.post-author-initial {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #596469;
  border-radius: 50%;
  background: #242a2d;
  color: #e4e8e9;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
}

.post-author-initial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-author strong,
.post-author small {
  display: block;
}

.post-author strong {
  font-size: 13px;
}

.post-author small,
.post-time,
.comment-meta {
  margin-top: 2px;
  color: #899398;
  font-size: 10px;
  font-weight: 700;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.post-category[data-category="notice"] {
  border-color: #8e5b2d;
  color: #ffc48a;
}

.post-category[data-category="handover"] {
  border-color: #497250;
  color: #a9dfaF;
}

.post-category[data-category="question"] {
  border-color: #277895;
  color: #a8e8fa;
}

.post-category[data-category="sales"] {
  border-color: #8d6b31;
  color: #f4cf8b;
}

.post-category[data-category="committee"] {
  border-color: #6d578a;
  color: #d7c2f1;
}

.post-category[data-category="document"] {
  border-color: #81484a;
  color: #f4aaaa;
}

.post-title {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.post-body {
  margin: 10px 0 0;
  color: #d9dfe1;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-card:not(:has(.post-title)) .post-body {
  margin-top: 16px;
}

.post-attachments {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.post-attachments[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.image-attachment {
  min-width: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #485257;
  border-radius: 5px;
  background: #090b0c;
  aspect-ratio: 16 / 10;
}

.image-attachment img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-attachment-name {
  max-width: calc(100% - 12px);
  padding: 5px 7px;
  position: absolute;
  left: 6px;
  bottom: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  background: rgba(5, 7, 8, 0.86);
  color: #f4f6f7;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-attachment {
  min-width: 0;
  min-height: 62px;
  padding: 10px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  align-content: center;
  gap: 2px 10px;
  border: 1px solid #455055;
  border-radius: 5px;
  background: #121718;
  color: #dde3e5;
  text-decoration: none;
}

.file-attachment:hover {
  border-color: #6d7b81;
  background: #1a2022;
}

.file-kind {
  width: 40px;
  height: 40px;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #5b6970;
  border-radius: 3px;
  color: #b9c5ca;
  font-size: 8px;
  font-weight: 900;
}

.file-copy {
  overflow: hidden;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-attachment small {
  color: #89959a;
  font-size: 9px;
  font-weight: 700;
}

.post-controls {
  margin-top: 16px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #303639;
}

.ack-button,
.comment-toggle,
.delete-command,
.comment-submit {
  min-height: 35px;
  padding: 7px 10px;
  border: 1px solid #465055;
  border-radius: 5px;
  background: #181d1f;
  color: #cad1d3;
  font-size: 11px;
  font-weight: 800;
}

.ack-button[data-active="true"] {
  border-color: #497250;
  background: #1b2b1e;
  color: #abe0b5;
}

.delete-command {
  margin-left: auto;
  border-color: #694143;
  color: #efaaaa;
}

.ack-button:hover,
.comment-toggle:hover,
.comment-submit:hover {
  border-color: #6b787d;
  background: #242a2d;
}

.comments {
  margin-top: 12px;
  border-top: 1px solid #303639;
}

.comment-row {
  padding: 11px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  border-bottom: 1px solid #2c3235;
}

.comment-row:last-child {
  border-bottom: 0;
}

.comment-row[data-highlight="true"] {
  margin-inline: -8px;
  padding-inline: 8px;
  border-color: #54c7ec;
  background: rgba(84, 199, 236, 0.12);
  box-shadow: inset 3px 0 0 #54c7ec;
}

.comment-author {
  font-size: 11px;
  font-weight: 800;
}

.comment-body {
  grid-column: 1;
  margin: 0;
  color: #cfd5d7;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-delete {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-height: 30px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: #d99191;
  font-size: 10px;
  font-weight: 800;
}

.comment-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #303639;
}

.comment-form textarea {
  min-height: 70px;
}

.comment-form-footer {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.empty-feed {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #465055;
  border-radius: 6px;
  color: #8f999e;
  font-size: 12px;
  font-weight: 800;
}

.sns-footer {
  width: min(1240px, calc(100% - 40px));
  min-height: 54px;
  margin: 0 auto;
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #2f3538;
  color: #7f898e;
  font-size: 9px;
  font-weight: 800;
}

.sns-dialog,
.attachment-viewer {
  width: min(560px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 30px));
  padding: 21px;
  overflow: auto;
  border: 1px solid #576268;
  border-radius: 7px;
  background: #181d1f;
  color: #edf1f2;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.56);
}

.sns-dialog::backdrop,
.attachment-viewer::backdrop {
  background: rgba(2, 3, 4, 0.82);
}

.install-app-dialog {
  width: min(590px, calc(100% - 28px));
}

.install-app-identity {
  padding: 13px 0 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #344248;
  border-bottom: 1px solid #344248;
}

.install-app-identity img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 8px;
}

.install-app-identity strong {
  color: #f0f7f9;
  font-size: 17px;
}

.install-app-identity p {
  margin: 5px 0 0;
  color: #9eaaae;
  font-size: 10px;
  line-height: 1.55;
}

.install-app-steps {
  margin: 17px 0 0;
  padding-left: 24px;
  color: #d7dfe1;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.75;
}

.install-app-steps li + li {
  margin-top: 4px;
}

.install-app-name-note {
  margin: 15px 0 0;
  padding: 10px 11px;
  border-left: 3px solid #62c8e6;
  background: #10252c;
  color: #c4eaf4;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.55;
}

.install-app-actions {
  margin-top: 16px;
}

.install-app-actions .primary-action {
  border-color: #277895;
  background: #1684aa;
}

.install-app-actions .primary-action:hover {
  background: #2196bd;
}

.browser-device-code-dialog {
  width: min(520px, calc(100% - 28px));
}

.browser-device-request {
  padding: 13px 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #344248;
  border-bottom: 1px solid #344248;
}

.browser-device-request span {
  color: #84d8ee;
  font-size: 11px;
  font-weight: 850;
}

.browser-device-request strong {
  color: #dce5e7;
  font-size: 11px;
  text-align: right;
}

.browser-device-code {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.browser-device-code span {
  width: 100%;
  min-width: 0;
  aspect-ratio: 0.9;
  max-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #8a979c;
  border-radius: 5px;
  background: #f7fafb;
  color: #132126;
  font-size: 25px;
  font-weight: 900;
}

.browser-device-expires {
  margin: 11px 0 0;
  color: #9fe1f1;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.browser-device-note {
  margin: 16px 0 0;
  padding: 11px 12px;
  border-left: 3px solid #53c6e6;
  background: #10242a;
  color: #c5e8f0;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.65;
}

.browser-device-code-dialog .dialog-actions {
  margin-top: 16px;
}

.browser-device-code-dialog .primary-action {
  border-color: #277895;
  background: #1684aa;
}

.dialog-heading,
.attachment-viewer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

.dialog-heading h2,
.attachment-viewer-heading h2 {
  margin: 3px 0 0;
  font-size: 19px;
  overflow-wrap: anywhere;
}

.dialog-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid #4d575b;
  border-radius: 4px;
  background: #111516;
  color: #d9dfe1;
  font-size: 20px;
  line-height: 1;
}

.sns-dialog label {
  display: block;
  margin: 13px 0 6px;
  color: #d6dcde;
  font-size: 11px;
  font-weight: 850;
}

.sns-dialog input[type="text"],
.sns-dialog select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #7a868b;
  border-radius: 5px;
  background: #f7f9fa;
  color: #172126;
  color-scheme: light;
}

.private-member-section {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #394144;
}

.member-picker-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.member-picker-heading strong {
  font-size: 11px;
}

.member-picker-heading span {
  color: #899398;
  font-size: 9px;
  font-weight: 700;
}

.room-member-list {
  max-height: 230px;
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  overflow: auto;
}

.room-member-option {
  min-width: 0;
  min-height: 47px;
  margin: 0 !important;
  padding: 7px 8px;
  display: flex !important;
  align-items: center;
  gap: 7px;
  border: 1px solid #3f484b;
  border-radius: 4px;
  background: #121617;
}

.room-member-option > span {
  min-width: 0;
}

.room-member-option strong,
.room-member-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-member-option strong {
  font-size: 10px;
}

.room-member-option small {
  margin-top: 2px;
  color: #8d989d;
  font-size: 8px;
}

.dialog-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.attachment-viewer {
  width: min(1040px, calc(100% - 28px));
}

.attachment-viewer-body {
  min-height: 220px;
  max-height: calc(100vh - 190px);
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background: #090b0c;
}

.attachment-viewer-body img {
  max-width: 100%;
  max-height: calc(100vh - 210px);
  display: block;
  object-fit: contain;
}

.attachment-viewer-body iframe {
  width: 100%;
  height: calc(100vh - 210px);
  min-height: 520px;
  border: 0;
  background: #fff;
}

.visually-hidden {
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.workspace-search {
  width: min(500px, 55vw);
  min-width: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.workspace-search input {
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #6e7a7f;
  border-right: 0;
  border-radius: 5px 0 0 5px;
  background: #f7f9fa;
  color: #172126;
  color-scheme: light;
}

.workspace-search button {
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid #387e97;
  border-radius: 0 5px 5px 0;
  background: #176f8e;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.business-tool-list button:not(:disabled) {
  border-color: #3f7184;
  background: #152a31;
  color: #d8f3fa;
}

.business-tool-list button:not(:disabled):hover {
  background: #1b3943;
}

.room-panel-actions,
.room-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.room-panel-actions .room-add-command:first-child {
  width: 64px;
  flex-basis: 64px;
  font-size: 10px;
  font-weight: 900;
}

.direct-room-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.direct-room-command .ui-icon {
  width: 15px;
  height: 15px;
}

.room-command,
.post-command,
.reaction-button,
.task-complete-command {
  min-height: 35px;
  padding: 7px 10px;
  border: 1px solid #465055;
  border-radius: 5px;
  background: #181d1f;
  color: #cad1d3;
  font-size: 10px;
  font-weight: 800;
}

.room-command:hover,
.post-command:hover,
.reaction-button:hover,
.task-complete-command:hover {
  border-color: #6b787d;
  background: #242a2d;
}

.room-command[data-active="true"],
.reaction-button[data-active="true"],
.task-complete-command[data-active="true"] {
  border-color: #3d7890;
  background: #17313a;
  color: #bceefb;
}

.room-unread {
  min-width: 45px;
  padding: 2px 5px;
  border-radius: 9px;
  background: #a65370;
  color: #fff !important;
  text-align: center;
}

.room-button[data-kind="self"] .room-button-name::before {
  content: "•";
  color: var(--green);
}

.room-button[data-kind="direct"] .room-button-name::before {
  content: "@";
  color: var(--rose);
}

.room-header[data-kind="self"] .room-heading-copy h1::before {
  content: "•";
}

.room-header[data-kind="direct"] .room-heading-copy h1::before {
  content: "@";
}

.quote-preview {
  margin-top: 12px;
  padding: 10px 11px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-left: 3px solid var(--cyan);
  background: #14272e;
}

.quote-preview strong,
.quote-preview p {
  display: block;
  margin: 0;
  font-size: 10px;
}

.quote-preview p {
  margin-top: 4px;
  color: #b9c6ca;
  line-height: 1.5;
}

.quote-preview button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 0;
  background: transparent;
  color: #dce4e6;
  font-size: 17px;
}

.post-quote {
  margin: 13px 0 0;
  padding: 10px 12px;
  border: 0;
  border-left: 3px solid #4d8296;
  background: #111a1d;
  color: #aebcc1;
}

.post-quote strong,
.post-quote p {
  display: block;
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
}

.post-quote p {
  margin-top: 3px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-quote[data-deleted="true"] {
  opacity: 0.65;
}

.reaction-row {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reaction-button {
  min-height: 31px;
  padding: 5px 8px;
  font-size: 9px;
}

.post-controls {
  flex-wrap: wrap;
}

.post-controls .delete-command {
  margin-left: auto;
}

.post-card[data-highlight="true"] {
  border-color: #54c7ec;
  box-shadow: 0 0 0 3px rgba(84, 199, 236, 0.18);
}

.dialog-description {
  margin: 0 0 13px;
  color: #9ca7ab;
  font-size: 10px;
  line-height: 1.6;
}

.direct-member-list {
  max-height: 440px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  overflow: auto;
}

.direct-member-option {
  min-width: 0;
  min-height: 58px;
  padding: 8px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 8px;
  border: 1px solid #414a4e;
  border-radius: 5px;
  background: #121617;
  color: #dce2e4;
  text-align: left;
}

.direct-member-option .post-author-initial {
  grid-row: 1 / span 2;
}

.direct-member-option strong,
.direct-member-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direct-member-option strong { font-size: 10px; }
.direct-member-option small { color: #8d989d; font-size: 8px; }

.empty-inline {
  grid-column: 1 / -1;
  padding: 30px 12px;
  color: #8f999e;
  text-align: center;
  font-size: 11px;
}

.sns-dialog textarea,
.sns-dialog input[type="datetime-local"] {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #7a868b;
  border-radius: 5px;
  background: #f7f9fa;
  color: #172126;
  color-scheme: light;
  resize: vertical;
}

.task-assignee-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #394144;
}

.task-scope-tabs {
  width: min(610px, 100%);
  margin: 22px 0 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #414a4e;
  border-radius: 5px;
}

.task-scope-tabs button {
  min-height: 40px;
  border: 0;
  border-right: 1px solid #414a4e;
  background: #111516;
  color: #9ca7ab;
  font-size: 10px;
  font-weight: 850;
}

.task-scope-tabs button:last-child { border-right: 0; }
.task-scope-tabs button[aria-selected="true"] { background: #17313a; color: #bceefb; }

#taskScopeTabs {
  width: min(760px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 600px) {
  #taskScopeTabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #taskScopeTabs button:nth-child(2) { border-right: 0; }
  #taskScopeTabs button:nth-child(-n+2) { border-bottom: 1px solid #414a4e; }
}

.task-heading {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.task-heading .form-status { margin: 0; }
.task-list { display: grid; gap: 9px; }

.task-card {
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid #3c4447;
  border-left: 4px solid var(--cyan);
  border-radius: 5px;
  background: #15191b;
}

.task-card[data-complete="true"] {
  border-left-color: var(--green);
  opacity: 0.78;
}

.task-card-top,
.task-meta,
.task-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.task-card-top { justify-content: space-between; }
.task-card-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.work-facility-badge {
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid #457487;
  border-radius: 3px;
  background: #142830;
  color: #bceefb;
  font-size: 8px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.task-state { color: #a9e7f8; font-size: 9px; font-weight: 850; }
.task-card[data-complete="true"] .task-state { color: #9edbaa; }
.task-title { margin: 11px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.task-details { margin: 6px 0 0; color: #cbd3d5; font-size: 11px; line-height: 1.6; white-space: pre-wrap; }

.task-meta {
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid #2e3538;
  color: #899398;
  font-size: 9px;
  font-weight: 750;
}

.task-overdue { color: #ff9f9f; }
.task-controls { margin-top: 11px; }
.task-controls .delete-command { margin-left: auto; }

#documentScopeTabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.document-summary {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #3c4447;
  border-radius: 5px;
  background: #111516;
}

.document-summary > div {
  min-width: 0;
  min-height: 72px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid #343c3f;
}

.document-summary > div:last-child { border-right: 0; }
.document-summary span { color: #899398; font-size: 9px; font-weight: 850; }
.document-summary strong { color: #eef4f5; font-size: 23px; line-height: 1; }
.document-summary > div:nth-child(1) strong { color: #f4cf8f; }
.document-summary > div:nth-child(2) strong { color: #ff9f9f; }
.document-summary > div:nth-child(3) strong { color: #a9e7f8; }
.document-summary > div:nth-child(4) strong { color: #9edbaa; }

.document-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.document-toolbar .task-scope-tabs { margin-right: 0; }
.document-list { display: grid; gap: 10px; }

.document-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #3c4447;
  border-left: 4px solid #e6b961;
  border-radius: 5px;
  background: #15191b;
  transition: border-color 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.document-card[data-due-state="overdue"] { border-left-color: #ee747b; background: #1d1718; }
.document-card[data-due-state="due-soon"] { border-left-color: #74cfe9; }
.document-card[data-status="completed"] { border-left-color: var(--green); opacity: 0.76; }
.document-card[data-highlight="true"] { border-color: #79dfff; box-shadow: 0 0 0 3px rgb(87 205 240 / 16%); }

.document-card-top,
.document-card-identity,
.document-meta,
.document-controls,
.document-file-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.document-card-top { justify-content: space-between; align-items: flex-start; }
.document-card-identity { min-width: 0; }

.document-category-badge,
.document-due-badge {
  padding: 4px 7px;
  border: 1px solid #665a43;
  border-radius: 3px;
  background: #292319;
  color: #f4d8a3;
  font-size: 8px;
  font-weight: 850;
}

.document-due-badge { border-color: #515c60; background: #202729; color: #c6d0d3; }
.document-due-overdue { border-color: #87535a; background: #321f22; color: #ffb6ba; }
.document-due-due-soon { border-color: #477789; background: #152a32; color: #bceefb; }
.document-due-completed { border-color: #4f7859; background: #172a1c; color: #b7e6c0; }

.document-status-select {
  min-height: 36px;
  padding: 6px 28px 6px 9px;
  border: 1px solid #849095;
  border-radius: 4px;
  background: #f7f9fa;
  color: #172126;
  color-scheme: light;
  font-size: 9px;
  font-weight: 850;
}

.document-status-select:disabled { opacity: 0.62; }
.document-title { margin: 12px 0 0; color: #eef4f5; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.document-details { margin: 6px 0 0; color: #cbd3d5; font-size: 11px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }

.document-meta {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid #2e3538;
  color: #8e999d;
  font-size: 9px;
  font-weight: 750;
}

.document-file-list { margin-top: 11px; }
.document-file-chip {
  max-width: min(100%, 300px);
  min-height: 31px;
  padding: 6px 9px;
  overflow: hidden;
  border: 1px solid #4e5a5f;
  border-radius: 4px;
  background: #1b2224;
  color: #ccecf4;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-file-chip:hover { border-color: #77cfe8; background: #20333a; }
.document-controls { margin-top: 12px; }
.document-controls .delete-command { margin-left: auto; }

.document-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.document-form-grid label > span,
.document-dialog > form > label > span {
  display: block;
  margin-bottom: 6px;
}

.document-existing-attachments {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #394144;
}

.document-existing-attachment-list { margin-top: 9px; display: grid; gap: 7px; }
.document-existing-attachment {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.document-file-link {
  min-width: 0;
  min-height: 42px;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid #536066;
  border-radius: 4px;
  background: #182024;
  color: #e3eaec;
  text-align: left;
}

.document-file-copy { min-width: 0; overflow: hidden; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.document-file-link small { color: #899499; font-size: 8px; }

.reminder-summary {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #3c4447;
  border-radius: 5px;
  overflow: hidden;
  background: #111516;
}

.reminder-summary > div {
  min-width: 0;
  min-height: 72px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid #343c3f;
}

.reminder-summary > div:last-child { border-right: 0; }
.reminder-summary span { color: #899398; font-size: 9px; font-weight: 850; }
.reminder-summary strong { color: #eef4f5; font-size: 23px; line-height: 1; }
.reminder-summary > div:nth-child(1) strong { color: #a9e7f8; }
.reminder-summary > div:nth-child(2) strong { color: #ffd085; }
.reminder-summary > div:nth-child(3) strong { color: #9edbaa; }

.reminder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.reminder-toolbar .task-scope-tabs { margin-right: 0; }
.reminder-list { display: grid; gap: 10px; }

.reminder-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #3c4447;
  border-left: 4px solid var(--cyan);
  border-radius: 5px;
  background: #15191b;
  transition: border-color 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.reminder-card[data-status="notified"] {
  border-left-color: #e8a94e;
  background: #1b1915;
}

.reminder-card[data-status="completed"] {
  border-left-color: var(--green);
  opacity: 0.76;
}

.reminder-card[data-highlight="true"] {
  border-color: #79dfff;
  box-shadow: 0 0 0 3px rgb(87 205 240 / 16%);
}

.reminder-card-top,
.reminder-card-identity,
.reminder-schedule,
.reminder-controls,
.reminder-snooze {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.reminder-card-top { justify-content: space-between; }
.reminder-card-identity { min-width: 0; }

.reminder-repeat-badge {
  padding: 4px 7px;
  border: 1px solid #58666b;
  border-radius: 3px;
  background: #202729;
  color: #c7d0d3;
  font-size: 8px;
  font-weight: 850;
}

.reminder-state {
  color: #a9e7f8;
  font-size: 9px;
  font-weight: 900;
}

.reminder-card[data-status="notified"] .reminder-state { color: #ffd085; }
.reminder-card[data-status="completed"] .reminder-state { color: #9edbaa; }

.reminder-title {
  margin: 11px 0 0;
  color: #eef4f5;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.reminder-notes {
  margin: 6px 0 0;
  color: #cbd3d5;
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.reminder-schedule {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid #2e3538;
  color: #8e999d;
  font-size: 9px;
}

.reminder-schedule strong { color: #dce5e7; font-size: 10px; }

.reminder-source-link {
  max-width: 100%;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8edff6;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  overflow-wrap: anywhere;
}

.reminder-source-link:hover { color: #c5f3ff; text-decoration: underline; }
.reminder-controls { margin-top: 13px; }
.reminder-controls .delete-command { margin-left: auto; }

.reminder-snooze {
  padding: 3px;
  border: 1px solid #394347;
  border-radius: 5px;
  background: #101415;
}

.reminder-snooze-select {
  min-height: 30px;
  padding: 4px 24px 4px 7px;
  border: 0;
  background: transparent;
  color: #d4dcde;
  color-scheme: dark;
  font-size: 9px;
  font-weight: 800;
}

.reminder-snooze .post-command { min-height: 30px; }

.reminder-source-preview {
  margin: 2px 0 14px;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-left: 3px solid var(--cyan);
  background: #17252a;
}

.reminder-source-preview[hidden] { display: none; }
.reminder-source-preview span { color: #8edff6; font-size: 9px; font-weight: 900; }
.reminder-source-preview strong { color: #e1eaec; font-size: 11px; overflow-wrap: anywhere; }

.reminder-quick-times {
  margin: 8px 0 15px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #4a5559;
  border-radius: 5px;
}

.reminder-quick-times button {
  min-width: 0;
  min-height: 37px;
  padding: 6px 8px;
  border: 0;
  border-right: 1px solid #4a5559;
  background: #161b1d;
  color: #c6d0d3;
  font-size: 9px;
  font-weight: 850;
}

.reminder-quick-times button:last-child { border-right: 0; }
.reminder-quick-times button:hover { background: #1b343d; color: #bceefb; }

.wide-dialog {
  width: min(760px, calc(100% - 28px));
}

.shared-file-list,
.search-result-list {
  display: grid;
  gap: 7px;
}

.shared-file-item {
  min-width: 0;
  min-height: 62px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #3f484c;
  border-radius: 5px;
  background: #121617;
}

.shared-file-kind {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #536167;
  border-radius: 4px;
  color: #b8c5ca;
  font-size: 8px;
  font-weight: 900;
}

.shared-file-copy { min-width: 0; }
.shared-file-copy strong,
.shared-file-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shared-file-copy strong { font-size: 10px; }
.shared-file-copy small { margin-top: 4px; color: #899398; font-size: 8px; }

.member-avatar-mini {
  position: relative;
}

.presence-dot {
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border: 2px solid #101315;
  border-radius: 50%;
  background: #4dd36f;
  box-shadow: 0 0 0 2px rgba(77, 211, 111, 0.18);
}

.member-summary[data-online="true"] .member-avatar-mini > img,
.member-summary[data-online="true"] .member-avatar-mini > .member-initial {
  border-color: #4dd36f;
  box-shadow: 0 0 0 2px rgba(77, 211, 111, 0.2);
}

.member-online-status {
  margin-top: 3px;
  display: block;
  color: #7f8b90;
  font-size: 8px;
  font-weight: 800;
}

.member-summary[data-online="true"] .member-online-status {
  color: #78dc8f;
}

.room-group {
  display: block;
}

.room-group-title {
  min-height: 27px;
  margin: 0;
  padding: 5px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: #8b979c;
}

.room-group-title::-webkit-details-marker {
  display: none;
}

.room-group-title::after {
  content: "⌄";
  order: 3;
  color: #657176;
  font-size: 12px;
  transform: rotate(-90deg);
  transition: transform 150ms ease;
}

.room-group[open] > .room-group-title::after {
  transform: rotate(0deg);
}

.room-group-title small {
  margin-left: auto;
  color: #657176;
  font-size: 8px;
}

.room-group-items {
  display: grid;
  gap: 4px;
}

.room-button-name {
  min-width: 0;
}

.room-button[data-kind="direct"] .room-button-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.room-online-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border: 1px solid #596469;
  border-radius: 50%;
  background: #363f43;
}

.room-button[data-online="true"] .room-online-dot {
  border-color: #4dd36f;
  background: #4dd36f;
  box-shadow: 0 0 0 2px rgba(77, 211, 111, 0.14);
}

.participant-avatar {
  position: relative;
}

.participant-avatar[data-online="true"] {
  border-color: #4dd36f;
  box-shadow: 0 0 0 2px rgba(77, 211, 111, 0.16);
}

.participant-presence {
  display: block;
  margin-top: 2px;
  color: #707b80;
  font-size: 7px;
  font-weight: 800;
}

.room-participant[data-online="true"] .participant-presence {
  color: #78dc8f;
}

.compose-command {
  border-color: #3f829b;
  background: #15303a;
  color: #c6f1fc;
}

.room-timeline {
  min-width: 0;
}

.calendar-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.calendar-board,
.calendar-agenda {
  min-width: 0;
  border: 1px solid #3b4448;
  border-radius: 6px;
  background: #121617;
  overflow: hidden;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  min-width: 0;
  padding: 7px 4px;
  border-right: 1px solid #323a3d;
  border-bottom: 1px solid #3b4448;
  color: #89959a;
  font-size: 9px;
  font-weight: 850;
  text-align: center;
}

.calendar-weekdays span:first-child { color: #de8d97; }
.calendar-weekdays span:last-child { color: #79b9de; border-right: 0; }

.calendar-grid {
  height: calc(100% - 29px);
  grid-template-rows: repeat(6, minmax(72px, 1fr));
}

.calendar-day {
  min-width: 0;
  min-height: 72px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid #323a3d;
  border-bottom: 1px solid #323a3d;
  background: #15191b;
  color: #dce3e5;
  text-align: left;
}

.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:nth-last-child(-n + 7) { border-bottom: 0; }
.calendar-day:hover { background: #1d2325; }
.calendar-day[data-outside="true"] { color: #667277; background: #111415; }
.calendar-day[data-selected="true"] { box-shadow: inset 0 0 0 2px var(--cyan); background: #15262d; }

.calendar-day-number {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 850;
}

.calendar-day[data-today="true"] .calendar-day-number {
  background: var(--cyan);
  color: #06212a;
}

.calendar-day-items {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.calendar-day-item,
.calendar-day-more {
  min-width: 0;
  padding: 2px 4px;
  overflow: hidden;
  border-left: 3px solid var(--cyan);
  background: #1a3038;
  color: #cfeef6;
  font-size: 8px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day-task {
  border-left-color: var(--orange);
  background: #30261d;
  color: #f1d0ad;
}

.calendar-day-document {
  border-left-color: #e6b961;
  background: #30291c;
  color: #f2d9a7;
}

.calendar-day-more {
  border-left: 0;
  background: transparent;
  color: #859095;
}

.calendar-agenda {
  padding: 15px;
  overflow-y: auto;
}

.calendar-agenda-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid #343c3f;
}

.calendar-agenda-heading h2 {
  margin: 3px 0 0;
  font-size: 15px;
}

.calendar-agenda-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.calendar-agenda-item {
  min-width: 0;
  padding: 11px;
  border: 1px solid #3b4448;
  border-left: 4px solid var(--cyan);
  border-radius: 5px;
  background: #171c1e;
}

.calendar-agenda-task { border-left-color: var(--orange); }
.calendar-agenda-document { border-left-color: #e6b961; }
.calendar-agenda-item-top,
.calendar-agenda-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-item-kind {
  color: #a8e8f8;
  font-size: 8px;
  font-weight: 900;
}

.calendar-agenda-task .calendar-item-kind { color: #efbd87; }
.calendar-agenda-document .calendar-item-kind { color: #f2cf8a; }
.calendar-agenda-item time { color: #9ba6aa; font-size: 8px; font-weight: 800; }
.calendar-agenda-item h3 { margin: 8px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.calendar-agenda-item p { margin: 5px 0 0; color: #aeb8bc; font-size: 9px; line-height: 1.55; white-space: pre-wrap; }
.calendar-agenda-meta { color: #818d92 !important; }
.calendar-agenda-controls { margin-top: 9px; justify-content: flex-start; }
.calendar-agenda-controls .delete-command { margin-left: auto; }
.calendar-empty { padding: 30px 8px; }

.calendar-event-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calendar-event-time-grid label span {
  display: block;
  margin-bottom: 6px;
}

.inline-check {
  min-height: 38px;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.inline-check input { width: 18px; height: 18px; }

.materials-panel {
  min-width: 0;
}

.material-access-notice {
  margin: 16px 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-left: 3px solid var(--cyan);
  background: #151b1d;
}

.material-access-notice strong {
  color: #dce8eb;
  font-size: 11px;
}

.material-access-notice span {
  color: #9ca8ac;
  font-size: 9px;
  line-height: 1.5;
  text-align: right;
}

.material-search-form {
  padding: 14px;
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) 138px 138px auto;
  align-items: end;
  gap: 10px;
  border: 1px solid #374044;
  background: #111516;
}

.material-search-form label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #9aa5a9;
  font-size: 9px;
  font-weight: 800;
}

.material-search-form input,
.material-search-form select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #4b565a;
  border-radius: 4px;
  background: #f7f8f8;
  color: #16191a;
}

.material-source-strip {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.material-source-list {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.material-source-chip {
  padding: 6px 8px;
  border: 1px solid #3f494d;
  border-radius: 4px;
  background: #171c1e;
  color: #aeb9bd;
  font-size: 9px;
}

.material-source-chip[data-restricted="true"] {
  border-left: 3px solid var(--cyan);
}

.material-source-chip[data-error="true"] {
  border-color: #814a4d;
  color: #ffb1b4;
}

.material-result-list {
  display: grid;
  gap: 10px;
}

.material-result-item {
  padding: 14px 15px;
  border: 1px solid #394246;
  border-radius: 6px;
  background: #15191b;
}

.material-result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.material-result-heading > div {
  min-width: 0;
}

.material-result-heading strong,
.material-result-heading small {
  display: block;
}

.material-result-heading strong {
  color: #e3e9eb;
  font-size: 12px;
  line-height: 1.45;
}

.material-result-heading small {
  margin-top: 3px;
  color: #8f9ba0;
  font-size: 9px;
}

.material-result-message {
  margin: 11px 0 0;
  color: #c4cccf;
  font-size: 11px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.material-download-link {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #526068;
  border-radius: 4px;
  color: #cceef7;
  font-size: 9px;
  font-weight: 850;
  text-decoration: none;
}

.ai-panel {
  --ai-accent: #54c7ec;
}

.ai-panel-header {
  border-bottom-color: #315a68;
}

.elcy-panel-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.elcy-panel-identity > img {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: block;
  border: 2px solid #72d4eb;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(84, 199, 236, 0.12);
}

.elcy-panel-identity h1 {
  margin-top: 4px;
}

.ai-mode-tabs {
  width: min(620px, 100%);
  margin: 18px 0 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #3e6675;
  border-radius: 5px;
}

.ai-mode-tabs button {
  min-height: 42px;
  border: 0;
  border-right: 1px solid #3e6675;
  background: #11191c;
  color: #91aab3;
  font-size: 10px;
  font-weight: 850;
}

.ai-mode-tabs button:last-child { border-right: 0; }
.ai-mode-tabs button[aria-selected="true"] { background: #17313a; color: #c8f2fc; box-shadow: inset 0 -3px 0 var(--ai-accent); }

.ai-chat-shell {
  min-height: 0;
  padding: 16px;
  display: grid;
  grid-template-rows: minmax(240px, 1fr) auto auto auto auto;
  border: 1px solid #3d6878;
  border-radius: 6px;
  background: #101719;
}

.ai-message-list {
  min-height: 240px;
  padding: 4px 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.ai-message {
  width: min(78%, 720px);
  padding: 11px 13px;
  border: 1px solid #3f5963;
  border-radius: 6px;
  background: #172429;
  align-self: flex-start;
}

.ai-message-user {
  border-color: #4f7180;
  background: #1c353f;
  align-self: flex-end;
}

.ai-message-author { color: #9be7f8; font-size: 9px; }
.ai-message-user .ai-message-author { color: #d7f5fc; }
.ai-message p { margin: 5px 0 0; color: #e0e8ea; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-message-thinking { opacity: 0.74; }

.ai-message-identity {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ai-message-identity img {
  width: 30px;
  height: 30px;
  display: block;
  border: 1px solid #72d4eb;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.ai-suggestions {
  padding: 10px 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.ai-suggestion {
  min-height: 34px;
  padding: 6px 9px;
  flex: 0 0 auto;
  border: 1px solid #406979;
  border-radius: 5px;
  background: #14272e;
  color: #bfeaf6;
  font-size: 9px;
  font-weight: 800;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.ai-chat-form textarea {
  width: 100%;
  min-height: 62px;
  max-height: 180px;
  padding: 10px 12px;
  border: 1px solid #6d7a7f;
  border-radius: 5px;
  background: #f7f9fa;
  color: #172126;
  color-scheme: light;
  resize: vertical;
}

.ai-chat-form .primary-action { min-width: 86px; }
.ai-chat-form .primary-action {
  border-color: #2a8ead;
  background: #1684aa;
  color: #fff;
}
.ai-chat-form .primary-action:hover { background: #2196bd; }
.ai-chat-shell > .form-status { margin: 8px 0 0; }
.ai-private-account-note {
  margin: 10px 0 2px;
  padding: 8px 10px;
  border-left: 3px solid var(--cyan);
  background: #14252b;
  color: #b8dce5;
  font-size: 9px;
  line-height: 1.6;
}
.ai-private-account-note strong { color: #e2f8fc; }
.ai-privacy-note { margin: 2px 0 0; color: #819096; font-size: 8px; line-height: 1.5; }

.notice-type-tabs {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #48545a;
  border-radius: 6px;
  background: #111618;
}

.notice-type-tabs button {
  min-height: 48px;
  padding: 9px 16px;
  border: 0;
  border-right: 1px solid #48545a;
  background: transparent;
  color: #939fa4;
  font-size: 11px;
  font-weight: 900;
}

.notice-type-tabs button:last-child { border-right: 0; }
.notice-type-tabs button[aria-selected="true"] {
  background: #19262a;
  color: #e1f5f9;
  box-shadow: inset 0 -3px 0 var(--cyan);
}

.notice-type-tabs button span {
  min-width: 24px;
  margin-left: 6px;
  padding: 2px 6px;
  display: inline-block;
  border-radius: 9px;
  background: #2d3639;
  color: #aab7bb;
  font-size: 8px;
}

.notice-type-tabs button span[data-has-news="true"] {
  background: #17627a;
  color: #d2f7ff;
}

.notice-metrics {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #394246;
  border-bottom: 1px solid #394246;
}

.notice-metrics > div {
  min-width: 0;
  min-height: 72px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-right: 1px solid #394246;
}

.notice-metrics > div:last-child { border-right: 0; }

.notice-metrics span {
  color: #9ba6aa;
  font-size: 10px;
  font-weight: 800;
}

.notice-metrics strong {
  color: #e9f6f9;
  font-size: 24px;
}

.notice-toolbar {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice-scope-tabs {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #465156;
  border-radius: 5px;
}

.notice-scope-tabs button {
  min-height: 38px;
  padding: 7px 14px;
  border: 0;
  border-right: 1px solid #465156;
  background: #121719;
  color: #9ca7ab;
  font-size: 10px;
  font-weight: 850;
}

.notice-scope-tabs button:last-child { border-right: 0; }
.notice-scope-tabs button[aria-selected="true"] {
  background: #17313a;
  color: #c8f2fc;
  box-shadow: inset 0 -3px 0 var(--cyan);
}

.notice-list,
.home-notice-list {
  display: grid;
  gap: 10px;
}

.notice-card {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid #3d474b;
  border-left: 4px solid #63808a;
  border-radius: 6px;
  background: #151a1c;
}

.notice-card[data-priority="important"] { border-left-color: var(--orange); }
.notice-card[data-priority="urgent"] { border-left-color: var(--danger); }
.notice-card[data-status="expired"],
.notice-card[data-status="archived"] { opacity: .72; }
.notice-card[data-highlight="true"] { outline: 2px solid var(--cyan); outline-offset: 2px; }

.notice-card-heading,
.notice-card-badges,
.notice-card-meta,
.notice-card-actions {
  display: flex;
  align-items: center;
}

.notice-card-heading {
  justify-content: space-between;
  gap: 12px;
}

.notice-card-heading time {
  color: #8f9a9e;
  font-size: 9px;
  font-weight: 750;
}

.notice-card-badges { gap: 5px; flex-wrap: wrap; }

.notice-priority,
.notice-status-badge,
.notice-required-badge {
  padding: 3px 7px;
  border: 1px solid #4a565b;
  border-radius: 3px;
  background: #20272a;
  color: #c8d1d4;
  font-size: 8px;
  font-weight: 900;
}

.notice-priority[data-priority="important"] { border-color: #8f6137; color: #ffc789; }
.notice-priority[data-priority="urgent"] { border-color: #8f4949; color: #ffabab; }
.notice-required-badge { border-color: #3b778a; color: #9ee6fa; }

.notice-card-title {
  margin: 10px 0 7px;
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.notice-card-body {
  margin: 0;
  color: #d1d8da;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notice-card-meta {
  margin-top: 12px;
  align-items: flex-start;
  gap: 5px 14px;
  flex-wrap: wrap;
  color: #919da1;
  font-size: 9px;
  font-weight: 750;
}

.notice-attachments {
  margin-top: 11px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.notice-attachment {
  min-height: 32px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #4c5b61;
  border-radius: 4px;
  background: #101517;
  color: #bcecf7;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.notice-confirmation-state {
  margin-top: 12px;
  padding: 8px 10px;
  border-left: 3px solid var(--orange);
  background: #241d17;
  color: #ffd3a6;
  font-size: 10px;
  font-weight: 850;
}

.notice-confirmation-state[data-confirmed="true"] {
  border-left-color: var(--green);
  background: #152119;
  color: #aaddb3;
}

.notice-read-progress {
  margin-top: 13px;
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr);
  align-items: center;
  gap: 10px;
  color: #aab4b7;
  font-size: 9px;
  font-weight: 800;
}

.notice-read-progress progress {
  width: 100%;
  height: 8px;
  accent-color: var(--cyan);
}

.notice-unread-members {
  margin-top: 10px;
  border-top: 1px solid #343d40;
  border-bottom: 1px solid #343d40;
}

.notice-unread-members summary {
  padding: 9px 0;
  cursor: pointer;
  color: #e5b980;
  font-size: 9px;
  font-weight: 850;
}

.notice-unread-member-list {
  padding: 0 0 10px;
  display: flex;
  gap: 5px 12px;
  flex-wrap: wrap;
}

.notice-unread-member {
  color: #aeb8bb;
  font-size: 9px;
}

.notice-card-actions {
  margin-top: 13px;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.notice-card-actions button { min-height: 34px; padding: 6px 10px; font-size: 9px; }

.notice-card-compact {
  padding: 13px 15px;
  background: #13191b;
}

.notice-card-compact .notice-card-title { font-size: 14px; }
.notice-card-compact .notice-card-body {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.administrative-news-toolbar {
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 9px;
}

.administrative-news-toolbar label {
  display: grid;
  gap: 5px;
  color: #8f9ca1;
  font-size: 9px;
  font-weight: 850;
}

.administrative-news-toolbar select {
  width: 100%;
  min-height: 38px;
  padding: 6px 28px 6px 9px;
  border: 1px solid #465258;
  border-radius: 4px;
  background: #f7f8f8;
  color: #171b1c;
  font-size: 11px;
}

.administrative-news-note {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-left: 3px solid #4a97aa;
  background: #132126;
  color: #b6ccd2;
  font-size: 9px;
  line-height: 1.65;
}

.administrative-news-list {
  display: grid;
  gap: 10px;
}

.administrative-news-card {
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid #3d484c;
  border-left: 4px solid #60747b;
  border-radius: 6px;
  background: #151a1c;
}

.administrative-news-card[data-priority="action"] { border-left-color: #e29a52; }
.administrative-news-card[data-priority="check"] { border-left-color: #66bed4; }

.administrative-news-card-heading,
.administrative-news-badges,
.administrative-news-footer,
.administrative-targets {
  display: flex;
  align-items: center;
}

.administrative-news-card-heading { justify-content: space-between; gap: 10px; }
.administrative-news-card-heading time { color: #859398; font-size: 9px; white-space: nowrap; }
.administrative-news-badges { gap: 5px; flex-wrap: wrap; }

.administrative-priority,
.administrative-area,
.administrative-new-badge,
.administrative-targets span {
  padding: 3px 7px;
  border: 1px solid #4b575b;
  border-radius: 3px;
  background: #20272a;
  color: #bdc7ca;
  font-size: 8px;
  font-weight: 900;
}

.administrative-priority[data-priority="action"] { border-color: #946439; color: #ffd09b; }
.administrative-priority[data-priority="check"] { border-color: #3e7887; color: #aeeafa; }
.administrative-new-badge { border-color: #3f8293; background: #183640; color: #a9edfc; }

.administrative-news-title {
  margin-top: 10px;
  display: inline-block;
  color: #eef7f9;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.administrative-news-title:hover { color: #a9ebfa; text-decoration: underline; }
.administrative-news-source { margin: 5px 0 0; color: #6fb5c5; font-size: 9px; font-weight: 850; }
.administrative-news-summary { margin: 10px 0 0; color: #d0d9dc; font-size: 11px; line-height: 1.75; overflow-wrap: anywhere; }

.administrative-news-action {
  margin-top: 11px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  border-left: 3px solid #4f99ad;
  background: #111d21;
  font-size: 9px;
  line-height: 1.6;
}

.administrative-news-action strong { color: #91ddef; }
.administrative-news-action span { color: #b9c8cc; overflow-wrap: anywhere; }
.administrative-news-deadline { margin: 9px 0 0; color: #ffd09b; font-size: 9px; font-weight: 850; }

.administrative-news-footer {
  margin-top: 13px;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.administrative-targets { gap: 5px; flex-wrap: wrap; }
.administrative-targets span { color: #aebcc0; }
.administrative-open-source { flex: 0 0 auto; min-height: 34px; padding: 7px 11px; font-size: 9px; text-decoration: none; }

.administrative-source-details {
  margin-top: 16px;
  border-top: 1px solid #354044;
  border-bottom: 1px solid #354044;
}

.administrative-source-details > summary {
  padding: 12px 2px;
  cursor: pointer;
  color: #a7b6ba;
  font-size: 10px;
  font-weight: 850;
}

.administrative-source-list { padding: 0 0 12px; display: grid; gap: 6px; }
.administrative-source-row {
  min-width: 0;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #333d40;
  border-radius: 4px;
  background: #121719;
  color: #c5d0d3;
  text-decoration: none;
}

.administrative-source-indicator { width: 7px; height: 7px; border-radius: 50%; background: #68767a; }
.administrative-source-row[data-status="ok"] .administrative-source-indicator { background: #64c77b; }
.administrative-source-row[data-status="error"] .administrative-source-indicator { background: #ef8f7a; }
.administrative-source-row strong { min-width: 0; font-size: 9px; overflow-wrap: anywhere; }
.administrative-source-row small { color: #7f8d92; font-size: 8px; text-align: right; }

.notice-dialog { width: min(820px, calc(100% - 28px)); }

.notice-form-grid,
.notice-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.notice-form-grid label { margin-top: 0; }

.notice-required {
  margin-top: 14px !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.notice-target-grid { margin-top: 14px; }

.notice-target-grid fieldset {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #465055;
  border-radius: 5px;
}

.notice-target-grid legend {
  padding: 0 5px;
  color: #dce3e5;
  font-size: 10px;
  font-weight: 850;
}

.notice-target-grid fieldset > p {
  margin: 0 0 8px;
  color: #8f9a9e;
  font-size: 8px;
  font-weight: 750;
}

.notice-choice-list {
  max-height: 190px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  overflow: auto;
}

.sns-dialog .notice-choice {
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 6px 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #394347;
  border-radius: 4px;
  background: #111617;
  color: #cfd7d9;
  font-size: 9px;
}

.notice-choice input { width: 16px; height: 16px; flex: 0 0 16px; }
.notice-choice span { min-width: 0; overflow-wrap: anywhere; }

.notifications-panel {
  padding-bottom: 30px;
}

.settings-list-heading {
  min-height: 50px;
  margin: 0 0 10px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #2f444b;
  border-bottom: 1px solid #2f444b;
  background: #11191c;
}

.settings-list-heading > div > span,
.settings-list-heading > div > strong {
  display: block;
}

.settings-list-heading > div > span {
  color: #7197a2;
  font-size: 8px;
  font-weight: 850;
}

.settings-list-heading > div > strong {
  margin-top: 3px;
  color: #dce8eb;
  font-size: 12px;
}

.notification-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notification-switch {
  min-height: 40px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #536066;
  border-radius: 5px;
  background: #1b2022;
  color: #dce2e4;
  cursor: pointer;
}

.notification-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.notification-switch-track {
  width: 34px;
  height: 19px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #667277;
  border-radius: 999px;
  background: #2b3235;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.notification-switch-track::after {
  width: 13px;
  height: 13px;
  display: block;
  border-radius: 50%;
  background: #a7b0b4;
  content: "";
  transition: transform 160ms ease, background-color 160ms ease;
}

.notification-switch input:focus-visible + .notification-switch-track {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.notification-switch input:checked + .notification-switch-track {
  border-color: #4cb7d8;
  background: #176f8e;
}

.notification-switch input:checked + .notification-switch-track::after {
  transform: translateX(15px);
  background: #fff;
}

.notification-switch input:disabled + .notification-switch-track {
  opacity: 0.46;
}

.notification-switch strong {
  font-size: 10px;
}

.notification-state-bar {
  min-height: 66px;
  margin: 14px 0;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #315a68;
  border-bottom: 1px solid #315a68;
  background: #101b1f;
}

.notification-state-bar span,
.notification-state-bar strong {
  display: block;
}

.notification-state-bar span {
  color: #7d959e;
  font-size: 8px;
  font-weight: 850;
}

.notification-state-bar strong {
  margin-top: 4px;
  color: #d9f4fb;
  font-size: 12px;
}

.notification-state-bar p {
  margin: 0;
  color: #91a0a5;
  font-size: 9px;
  font-weight: 750;
  text-align: right;
}

.app-badge-guide {
  margin: -14px 0 14px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #315a68;
  background: #11191c;
}

.app-badge-preview {
  width: 48px;
  height: 48px;
  position: relative;
  display: block;
}

.app-badge-preview img {
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 10px;
}

.app-badge-preview b {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #11191c;
  border-radius: 999px;
  background: #e6454f;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.app-badge-guide > div > span,
.app-badge-guide > div > strong {
  display: block;
}

.app-badge-guide > div > span {
  color: #76a5b4;
  font-size: 8px;
  font-weight: 850;
}

.app-badge-guide > div > strong {
  margin-top: 3px;
  color: #e4f5fa;
  font-size: 11px;
}

.app-badge-guide p {
  margin: 4px 0 0;
  color: #99a9ae;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.6;
}

.push-recovery-panel {
  margin: -14px 0 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(280px, 1.7fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #765f35;
  background: #211d16;
}

.push-recovery-panel[hidden] {
  display: none;
}

.push-recovery-heading span,
.push-recovery-heading strong {
  display: block;
}

.push-recovery-heading span {
  color: #ae9565;
  font-size: 8px;
  font-weight: 850;
}

.push-recovery-heading strong {
  margin-top: 5px;
  color: #fff1d3;
  font-size: 11px;
  line-height: 1.5;
}

.push-recovery-panel ol {
  margin: 0;
  padding-left: 20px;
  color: #d2c8b5;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.7;
}

.push-recovery-action {
  min-width: 132px;
  border-color: #9c814c;
  background: #292319;
  color: #fff3d9;
}

.push-recovery-action:hover {
  border-color: #c6a35c;
  background: #372e1d;
}

.external-integrations {
  margin: 0 0 14px;
  border: 1px solid #35515b;
  border-radius: 5px;
  background: #101719;
}

.external-integrations[open] {
  border-color: #417180;
}

.external-integrations-heading {
  min-height: 54px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #dce8eb;
  cursor: pointer;
  list-style: none;
}

.external-integrations-heading::-webkit-details-marker {
  display: none;
}

.external-integrations-heading::after {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 2px solid #7fcfe3;
  border-bottom: 2px solid #7fcfe3;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.external-integrations[open] > .external-integrations-heading::after {
  transform: rotate(225deg);
}

.external-integrations-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.integration-heading-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #396775;
  border-radius: 50%;
  background: #15262c;
  color: #94e8fb;
}

.integration-heading-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.external-integrations-title span,
.external-integrations-title strong {
  display: block;
}

.external-integrations-title div > span {
  color: #7197a2;
  font-size: 8px;
  font-weight: 850;
}

.external-integrations-title strong {
  margin-top: 3px;
  font-size: 12px;
}

.integration-summary-state {
  margin-left: auto;
  color: #a7bdc3;
  font-size: 9px;
  font-weight: 800;
  text-align: right;
}

.external-integrations-body {
  padding: 0 14px 14px;
  border-top: 1px solid #2b4148;
}

.external-integrations-actions {
  padding: 12px 0;
  display: flex;
  justify-content: flex-end;
}

.integration-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #2d3a3e;
  border-bottom: 1px solid #2d3a3e;
}

.integration-section {
  min-width: 0;
  padding: 14px 16px 16px 0;
}

.integration-section + .integration-section {
  padding-right: 0;
  padding-left: 16px;
  border-left: 1px solid #2d3a3e;
}

.integration-section-heading {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.integration-section-heading > .ui-icon {
  width: 18px;
  height: 18px;
  color: #79d6ed;
}

.integration-section-heading strong,
.integration-section-heading span {
  display: block;
}

.integration-section-heading strong {
  color: #e6f1f4;
  font-size: 11px;
}

.integration-section-heading div > span {
  margin-top: 3px;
  color: #819399;
  font-size: 8px;
  font-weight: 750;
}

.integration-master-switch {
  min-height: 34px;
  padding: 5px 8px;
}

.notification-switch b {
  font-size: 9px;
}

.integration-provider-fieldset,
.integration-source-fieldset {
  min-width: 0;
  margin: 13px 0 0;
  padding: 0;
  border: 0;
}

.integration-provider-fieldset legend,
.integration-source-fieldset legend,
.integration-email-fields label > span,
.calendar-feed-area label > span,
.email-verification-code label > span {
  margin-bottom: 6px;
  display: block;
  color: #8da1a7;
  font-size: 8px;
  font-weight: 850;
}

.integration-provider-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #3a484d;
  border-radius: 4px;
}

.integration-provider-choice {
  min-width: 0;
  min-height: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #3a484d;
  background: #111617;
  color: #93a1a5;
  cursor: pointer;
}

.integration-provider-choice:last-child {
  border-right: 0;
}

.integration-provider-choice input {
  position: absolute;
  opacity: 0;
}

.integration-provider-choice span {
  min-width: 0;
  padding: 6px;
  font-size: 8px;
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
}

.integration-provider-choice:has(input:checked) {
  background: #17313a;
  color: #cff6ff;
  box-shadow: inset 0 -3px 0 var(--cyan);
}

.integration-provider-choice:has(input:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.integration-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.integration-choice {
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #344247;
  border-radius: 4px;
  background: #111617;
  color: #c0cbce;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.integration-choice input,
.integration-detail-choice input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: #2db8dc;
}

.integration-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.integration-detail-choice {
  margin-top: 10px;
  color: #b9c5c8;
  font-size: 9px;
}

.calendar-feed-area {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #2d3a3e;
}

.calendar-feed-area[hidden] {
  display: none;
}

.calendar-feed-health {
  min-height: 52px;
  margin-bottom: 12px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #34464b;
  border-radius: 4px;
  background: #101718;
}

.calendar-feed-health-mark {
  width: 10px;
  height: 10px;
  border: 2px solid #709098;
  border-radius: 50%;
  background: transparent;
}

.calendar-feed-health[data-state="checking"] .calendar-feed-health-mark {
  border-top-color: #79d6ed;
  animation: calendar-feed-check 0.8s linear infinite;
}

.calendar-feed-health[data-state="ready"] .calendar-feed-health-mark {
  border-color: #66d59c;
  background: #66d59c;
  box-shadow: 0 0 0 3px rgb(102 213 156 / 14%);
}

.calendar-feed-health[data-state="empty"] .calendar-feed-health-mark {
  border-color: #e4bc67;
  background: #e4bc67;
}

.calendar-feed-health[data-state="error"] .calendar-feed-health-mark {
  border-color: #e47777;
  background: #e47777;
}

@keyframes calendar-feed-check {
  to { transform: rotate(360deg); }
}

.calendar-feed-health strong,
.calendar-feed-health p {
  display: block;
}

.calendar-feed-health strong {
  color: #e5f1f3;
  font-size: 10px;
}

.calendar-feed-health p {
  margin: 3px 0 0;
  color: #8da1a7;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.45;
}

.calendar-feed-health .text-command {
  min-height: 30px;
  white-space: nowrap;
}

.calendar-subscription-heading {
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-subscription-heading > span {
  padding: 3px 6px;
  border: 1px solid #568593;
  border-radius: 3px;
  color: #aeeeff;
  font-size: 8px;
  font-weight: 850;
}

.calendar-subscription-heading > strong {
  color: #d8e6e9;
  font-size: 9px;
}

.calendar-feed-area input,
.integration-email-fields input,
.integration-email-fields select,
.email-verification-code input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #46555a;
  border-radius: 4px;
  background: #f4f7f8;
  color: #111719;
  font-size: 10px;
}

.calendar-feed-area input {
  padding: 8px 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.integration-email-fields input,
.integration-email-fields select,
.email-verification-code input {
  padding: 7px 9px;
}

.integration-command-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.icon-text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.icon-text-action .ui-icon {
  width: 14px;
  height: 14px;
}

.text-command {
  min-height: 36px;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  color: #88d8eb;
  font-size: 9px;
  font-weight: 800;
  text-decoration: underline;
}

.integration-provider-guide,
.integration-security-note,
.calendar-renewal-guide {
  margin: 9px 0 0;
  color: #87989d;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.65;
}

.integration-provider-guide {
  padding: 9px 10px;
  border-left: 3px solid #4ebbd6;
  background: #101719;
}

.integration-provider-guide > strong {
  display: block;
  color: #d9eef3;
  font-size: 9px;
}

.integration-provider-guide ol {
  margin: 6px 0 0;
  padding-left: 20px;
}

.integration-provider-guide li + li {
  margin-top: 3px;
}

.integration-provider-guide p {
  margin: 7px 0 0;
  color: #e4bd72;
}

.calendar-renewal-guide {
  color: #a9c8cf;
}

.calendar-renewal-guide strong {
  color: #75dca8;
}

.integration-security-note {
  color: #a49b83;
}

.mail-admin-setup {
  margin-top: 13px;
  border: 1px solid #3c5f69;
  border-radius: 5px;
  background: #0e1719;
}

.mail-admin-setup[hidden] {
  display: none;
}

.mail-admin-setup > summary {
  min-height: 44px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: #dcebef;
  cursor: pointer;
  list-style: none;
}

.mail-admin-setup > summary::-webkit-details-marker {
  display: none;
}

.mail-admin-setup > summary::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid #80d8ec;
  border-bottom: 2px solid #80d8ec;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.mail-admin-setup[open] > summary::after {
  transform: rotate(225deg);
}

.mail-admin-summary-icon {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #173039;
  color: #98e9fa;
}

.mail-admin-summary-icon .ui-icon {
  width: 14px;
  height: 14px;
}

.mail-admin-setup summary strong,
.mail-admin-setup summary small {
  display: block;
}

.mail-admin-setup summary strong {
  font-size: 10px;
}

.mail-admin-setup summary small {
  margin-top: 2px;
  color: #88a0a6;
  font-size: 8px;
  font-weight: 750;
}

.mail-admin-body {
  padding: 11px 10px 10px;
  border-top: 1px solid #2e454c;
}

.mail-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mail-admin-smtp-fields {
  margin-top: 8px;
}

.mail-admin-smtp-fields[hidden] {
  display: none;
}

.mail-admin-grid label > span,
.mail-admin-credential > span {
  margin-bottom: 5px;
  display: block;
  color: #8da1a7;
  font-size: 8px;
  font-weight: 850;
}

.mail-admin-grid input,
.mail-admin-grid select,
.mail-admin-credential input {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #46555a;
  border-radius: 4px;
  background: #f4f7f8;
  color: #111719;
  font-size: 10px;
}

.mail-admin-secure {
  min-height: 38px;
  margin-top: 19px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #3d5056;
  border-radius: 4px;
  background: #121d20;
  cursor: pointer;
}

.mail-admin-secure input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  flex: 0 0 16px;
  padding: 0;
  accent-color: #2db8dc;
}

.mail-admin-secure > span {
  margin: 0;
  color: #c8d8dc;
  font-size: 9px;
}

.mail-admin-credential {
  margin-top: 8px;
  display: block;
}

.mail-admin-credential small,
.mail-admin-security {
  margin-top: 5px;
  display: block;
  color: #819399;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.5;
}

.mail-admin-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mail-admin-actions .primary-action,
.mail-admin-actions .secondary-action {
  flex: 1 1 160px;
}

.mail-admin-body > .form-status {
  margin: 8px 0 0;
}

.mail-admin-security {
  margin-bottom: 0;
  color: #a49b83;
}

.email-delivery-notice {
  margin: 11px 0 0;
  padding: 8px 9px;
  border-left: 3px solid #e1b967;
  background: #1f1b13;
  color: #e2c98f;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.55;
}

.email-delivery-notice[hidden] {
  display: none;
}

.integration-email-fields {
  margin-top: 13px;
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
  gap: 8px;
}

.email-verification-row {
  margin-top: 9px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.email-verification-code {
  min-width: 190px;
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto;
  align-items: end;
  gap: 7px;
}

.email-verification-code[hidden] {
  display: none;
}

.email-verification-row > strong {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: #9aa9ad;
  font-size: 9px;
}

.email-verification-row > strong[data-state="verified"] {
  color: #8be2bb;
}

.email-verification-row > strong[data-state="pending"] {
  color: #f1cf84;
}

.external-integrations-body > .form-status {
  margin: 10px 0 0;
}

.notification-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.notification-scope-tabs {
  width: min(340px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #414a4e;
  border-radius: 5px;
}

.notification-scope-tabs button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid #414a4e;
  background: #111516;
  color: #919da1;
  font-size: 10px;
  font-weight: 850;
}

.notification-scope-tabs button:last-child { border-right: 0; }
.notification-scope-tabs button[aria-selected="true"] { background: #17313a; color: #c8f2fc; box-shadow: inset 0 -3px 0 var(--cyan); }

.notification-list {
  display: grid;
  align-content: start;
  gap: 7px;
}

.notification-item {
  min-width: 0;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid #394245;
  border-radius: 5px;
  background: #14191b;
}

.notification-item[data-read="false"] {
  border-color: #416c7b;
  background: #152329;
}

.notification-unread-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: transparent;
}

.notification-item[data-read="false"] .notification-unread-dot {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(84, 199, 236, 0.12);
}

.notification-item-copy {
  min-width: 0;
}

.notification-item-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.notification-kind {
  color: #8ddcf0;
  font-size: 8px;
  font-weight: 900;
}

.notification-item time {
  color: #778388;
  font-size: 8px;
  font-weight: 750;
}

.notification-item h2 {
  margin: 5px 0 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.notification-item p {
  margin: 5px 0 0;
  color: #aab4b8;
  font-size: 9px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notification-meta {
  color: #7e8b90 !important;
  font-size: 8px !important;
}

.notification-open {
  min-width: 58px;
  min-height: 36px;
  padding: 7px 10px;
  align-self: center;
  border: 1px solid #477786;
  border-radius: 4px;
  background: #17303a;
  color: #c8edf6;
  font-size: 9px;
  font-weight: 850;
}

.notification-open:hover {
  border-color: #60b9d3;
  background: #1b3c47;
}

.admin-panel {
  padding-bottom: 30px;
}

.admin-privacy-boundary {
  margin: 0 0 14px;
  padding: 9px 11px;
  border: 1px solid #315a68;
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  background: #14252b;
  color: #b8dce5;
  font-size: 10px;
  font-weight: 800;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid #3c4447;
  border-radius: 6px;
  overflow: hidden;
  background: #121617;
}

.admin-metrics > div {
  min-width: 0;
  padding: 13px;
  border-right: 1px solid #3c4447;
}

.admin-metrics > div:last-child { border-right: 0; }
.admin-metrics span { display: block; color: #899398; font-size: 8px; font-weight: 800; }
.admin-metrics strong { display: block; margin-top: 5px; font-size: 21px; }
.admin-panel > .form-status { min-height: 24px; margin: 8px 0; }

.admin-backup-section {
  border-color: #315764;
  background: #111a1d;
}

.admin-backup-section .home-subheading {
  align-items: center;
}

.admin-backup-state {
  min-width: 68px;
  min-height: 27px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3a7460;
  border-radius: 4px;
  background: #142a20;
  color: #a6e6bf;
  font-size: 9px;
  font-weight: 850;
}

.admin-backup-state[data-health="warning"] {
  border-color: #9a7130;
  background: #302410;
  color: #f2cf87;
}

.admin-backup-state[data-health="error"] {
  border-color: #984f55;
  background: #351a1d;
  color: #f3b3b8;
}

.admin-backup-state[data-health="unconfigured"] {
  border-color: #596165;
  background: #24292b;
  color: #c4cacc;
}

.admin-backup-message {
  margin: 10px 0 12px;
  color: #b9c5c9;
  font-size: 10px;
  font-weight: 750;
}

.admin-backup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #354247;
  border-radius: 5px;
  overflow: hidden;
  background: #0e1315;
}

.admin-backup-grid > div {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid #354247;
}

.admin-backup-grid > div:last-child { border-right: 0; }
.admin-backup-grid span,
.admin-backup-grid small { display: block; color: #89979c; font-size: 8px; font-weight: 750; }
.admin-backup-grid strong { display: block; margin: 6px 0 4px; color: #ecf4f6; font-size: 12px; }

.admin-backup-policy {
  margin-top: 10px;
  border-top: 1px solid #354247;
}

.admin-backup-policy summary {
  padding-top: 10px;
  color: #93c9d7;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.admin-backup-policy p {
  margin: 8px 0 0;
  color: #aab8bc;
  font-size: 9px;
  line-height: 1.7;
}

.workspace-governance .home-subheading {
  align-items: center;
}

.workspace-coordinator-state {
  min-height: 27px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #356e57;
  border-radius: 4px;
  background: #142a20;
  color: #a6e6bf;
  font-size: 9px;
  font-weight: 850;
}

.workspace-coordinator-state[data-runtime="loading"],
.workspace-coordinator-state[data-runtime="refreshing"] {
  border-color: #39778a;
  background: #142a31;
  color: #b7e8f4;
}

.workspace-coordinator-state[data-runtime="error"] {
  border-color: #984f55;
  background: #351a1d;
  color: #f3b3b8;
}

.workspace-coordinator-summary {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #3c4447;
  border-radius: 5px;
  overflow: hidden;
  background: #121617;
}

.workspace-coordinator-summary > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid #3c4447;
}

.workspace-coordinator-summary > div:last-child {
  border-right: 0;
}

.workspace-coordinator-summary span {
  display: block;
  color: #899398;
  font-size: 8px;
  font-weight: 800;
}

.workspace-coordinator-summary strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #dfe5e7;
  font-size: 14px;
}

.workspace-module-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.workspace-module-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid #394145;
  border-left: 3px solid #59656a;
  border-radius: 5px;
  background: #121617;
}

.workspace-module-item[data-active="true"] {
  border-color: #417b8d;
  border-left-color: var(--cyan);
  background: #14242a;
}

.workspace-module-item[data-status="planned"] {
  border-left-color: #6a5f49;
  background: #151513;
}

.workspace-module-item[data-runtime="error"] {
  border-left-color: #d46b73;
}

.workspace-module-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workspace-module-identity {
  min-width: 0;
}

.workspace-module-identity strong,
.workspace-module-identity small {
  display: block;
}

.workspace-module-identity strong {
  color: #e2e7e9;
  font-size: 11px;
}

.workspace-module-identity small {
  margin-top: 3px;
  color: #8e999d;
  font-size: 8px;
}

.workspace-module-states {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.workspace-module-product-state,
.workspace-module-runtime-state {
  min-height: 21px;
  padding: 3px 6px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #4b5559;
  border-radius: 4px;
  color: #a9b2b5;
  font-size: 7px;
  font-weight: 850;
  white-space: nowrap;
}

.workspace-module-product-state[data-status="stable"] {
  border-color: #376f55;
  color: #a6e2bb;
}

.workspace-module-product-state[data-status="beta"] {
  border-color: #39778a;
  color: #b4e4ef;
}

.workspace-module-product-state[data-status="development"] {
  border-color: #8a6840;
  color: #edc78e;
}

.workspace-module-product-state[data-status="planned"] {
  border-color: #625b4d;
  color: #bfb5a0;
}

.workspace-module-runtime-state[data-runtime="active"] {
  border-color: #39778a;
  background: #162c34;
  color: #b7e8f4;
}

.workspace-module-runtime-state[data-runtime="loading"],
.workspace-module-runtime-state[data-runtime="refreshing"] {
  border-color: #687a43;
  background: #262c18;
  color: #d6e9a7;
}

.workspace-module-runtime-state[data-runtime="error"] {
  border-color: #984f55;
  background: #351a1d;
  color: #f3b3b8;
}

.workspace-module-responsibility {
  margin: 10px 0 0;
  color: #b6bfc2;
  font-size: 9px;
  line-height: 1.55;
}

.workspace-module-dependencies {
  margin: 7px 0 0;
  color: #78858a;
  font-size: 8px;
  line-height: 1.45;
}

.workspace-module-capabilities {
  margin: 8px 0 0;
  color: #aebcc0;
  font-size: 8px;
  line-height: 1.5;
}

.admin-section {
  min-width: 0;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #343b3e;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #3c4447;
  border-radius: 5px;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #121617;
  font-size: 9px;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border-right: 1px solid #333b3e;
  border-bottom: 1px solid #333b3e;
  text-align: left;
  vertical-align: top;
}

.admin-table th:last-child,
.admin-table td:last-child { border-right: 0; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table th { background: #1b2022; color: #9fa9ad; font-size: 8px; }
.admin-table td { color: #cbd2d4; line-height: 1.5; }
.admin-table td strong,
.admin-table td small { display: block; }
.admin-table td small { margin-top: 3px; color: #7f8b90; font-size: 8px; }

.admin-table tr[data-active="false"] {
  opacity: 0.66;
}

.admin-table tr[data-active="false"] td:first-child strong::after {
  content: " 退職・停止";
  color: #ff9b9f;
  font-size: 8px;
}

.admin-member-edit {
  min-width: 58px;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 9px;
  white-space: nowrap;
}

.admin-member-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(860px, calc(100vh - 24px));
}

.admin-freee-approver-groups {
  display: grid;
  gap: 12px;
}

.admin-freee-approver-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 800;
}

.admin-freee-approver-list {
  max-height: 170px;
  overflow-y: auto;
}

.admin-member-form {
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-online-state {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid #4b5559;
  border-radius: 999px;
  color: #8f9a9e;
  white-space: nowrap;
}

.admin-online-state[data-online="true"] {
  border-color: #489b65;
  background: #143321;
  color: #a9edbf;
}

.admin-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.admin-record-list {
  max-height: 390px;
  display: grid;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
}

.admin-record {
  min-width: 0;
  padding: 10px;
  border: 1px solid #3b4447;
  border-left: 3px solid #5f777f;
  border-radius: 4px;
  background: #121617;
  color: #dce2e4;
  text-align: left;
}

.admin-record[data-success="false"] { border-left-color: #df7777; }
button.admin-record { width: 100%; cursor: pointer; }
button.admin-record:hover { border-color: #568296; background: #16262c; }
.admin-record-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.admin-record-heading strong { min-width: 0; overflow-wrap: anywhere; font-size: 10px; }
.admin-record-heading time { flex: 0 0 auto; color: #7f8b90; font-size: 8px; }
.admin-record p { margin: 5px 0 0; color: #98a3a8; font-size: 8px; line-height: 1.55; overflow-wrap: anywhere; }

.diagnostic-dialog {
  width: min(1040px, calc(100% - 24px));
}

.diagnostic-screenshot {
  width: 100%;
  max-height: 520px;
  display: block;
  margin: 12px 0;
  border: 1px solid #4b5559;
  object-fit: contain;
  background: #fff;
}

.diagnostic-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.diagnostic-facts > div { padding: 8px 10px; border: 1px solid #3b4447; background: #121617; }
.diagnostic-facts dt { color: #819096; font-size: 8px; font-weight: 800; }
.diagnostic-facts dd { margin: 4px 0 0; color: #dbe2e4; font-size: 9px; overflow-wrap: anywhere; }
.diagnostic-dialog details { margin-top: 10px; border: 1px solid #3b4447; border-radius: 4px; background: #121617; }
.diagnostic-dialog summary { padding: 9px 10px; cursor: pointer; font-size: 10px; font-weight: 800; }
.diagnostic-dialog pre { max-height: 360px; margin: 0; padding: 10px; overflow: auto; border-top: 1px solid #3b4447; color: #bdc8cb; font-size: 9px; white-space: pre-wrap; overflow-wrap: anywhere; }

.member-marker-legend {
  margin: -2px 0 10px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 13px;
  border: 1px solid #353e42;
  border-radius: 4px;
  background: #111516;
  color: #a8b2b6;
  font-size: 8px;
  font-weight: 800;
}

.member-marker-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.member-marker-legend i,
.member-identity-name::before {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: #e5cf68;
  box-shadow: 0 0 0 2px rgba(229, 207, 104, 0.08);
  content: "";
}

.member-marker-legend i[data-role-tone="executive"],
.member-identity-name[data-role-tone="executive"]::before {
  background: #ef6969;
  box-shadow: 0 0 0 2px rgba(239, 105, 105, 0.1);
}

.member-marker-legend i[data-role-tone="manager"],
.member-identity-name[data-role-tone="manager"]::before {
  background: #f2a14f;
  box-shadow: 0 0 0 2px rgba(242, 161, 79, 0.1);
}

.member-marker-legend i[data-role-tone="administrator"],
.member-identity-name[data-role-tone="administrator"]::before {
  background: #65a6e8;
  box-shadow: 0 0 0 2px rgba(101, 166, 232, 0.1);
}

.member-marker-legend i[data-role-tone="consultant"],
.member-identity-name[data-role-tone="consultant"]::before {
  background: #57c7a2;
  box-shadow: 0 0 0 2px rgba(87, 199, 162, 0.1);
}

.member-marker-legend i[data-role-tone="nurse"],
.member-identity-name[data-role-tone="nurse"]::before {
  background: #f3b3cb;
  box-shadow: 0 0 0 2px rgba(243, 179, 203, 0.1);
}

.member-marker-legend i[data-role-tone="caregiver"],
.member-identity-name[data-role-tone="caregiver"]::before {
  background: #e5cf68;
}

.member-marker-legend i[data-role-tone="other"],
.member-identity-name[data-role-tone="other"]::before {
  background: #929da2;
  box-shadow: 0 0 0 2px rgba(146, 157, 162, 0.08);
}

.member-identity-name {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0;
  vertical-align: middle;
  white-space: nowrap;
}

.member-identity-name::before {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  flex-basis: 8px;
  align-self: center;
  transform: translateY(1px);
}

.member-identity-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-marker-legend b,
.member-identity-name::after {
  min-width: 17px;
  height: 16px;
  padding: 0 3px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #57646a;
  border-radius: 3px;
  background: #20272a;
  color: #d6dfe2;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  content: attr(data-employment-mark);
}

.member-marker-legend b[data-employment="officer"],
.member-identity-name[data-employment="officer"]::after {
  border-color: #a95050;
  background: #3a1f21;
  color: #ffb7b7;
}

.member-marker-legend b[data-employment="regular"],
.member-identity-name[data-employment="regular"]::after {
  border-color: #467f92;
  background: #172d34;
  color: #aee8f7;
}

.member-marker-legend b[data-employment="non-regular"],
.member-identity-name[data-employment="non-regular"]::after {
  border-color: #6d687f;
  background: #292632;
  color: #d8d1e8;
}

.member-identity-name[data-employment-mark=""]::after {
  display: none;
}

.member-identity-name::after {
  min-width: 16px;
  height: 15px;
  margin-left: 10px;
  padding-right: 3px;
  padding-left: 3px;
  border-radius: 4px;
  opacity: 0.92;
}

.fixed-employment-field {
  margin-top: 14px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid #704447;
  border-radius: 4px;
  background: #25191b;
}

.fixed-employment-field[hidden] {
  display: none;
}

.fixed-employment-field > span {
  color: #aab4b8;
  font-size: 9px;
  font-weight: 800;
}

.fixed-employment-field > strong {
  color: #ffb7b7;
  font-size: 11px;
}

.fixed-employment-field > small {
  color: #9f8f92;
  font-size: 8px;
}

.task-member-line,
.shared-file-meta,
.admin-record-actor {
  min-width: 0;
}

@media (min-width: 901px) {
  html[data-view="feed"] {
    height: 100%;
    overflow: hidden;
  }

  body[data-view="feed"] {
    height: 100vh;
    overflow: hidden;
  }

  body[data-view="feed"] .sns-main {
    height: calc(100vh - 70px);
    min-height: 0;
    padding: 16px 0 14px;
    overflow: hidden;
  }

  body[data-view="feed"] .sns-footer {
    display: none;
  }

  .feed-view {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 18px;
  }

  .feed-toolbar {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 12px;
  }

  .workspace-nav {
    width: 100%;
    height: max-content;
    margin: 0;
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-self: start;
    position: sticky;
    top: 0;
  }

  body[data-interface-mode="developer"] .workspace-nav {
    width: 100%;
  }

  .workspace-nav button {
    min-height: 48px;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid #414a4e;
    text-align: left;
  }

  .workspace-nav-label {
    justify-content: flex-start;
  }

  .workspace-nav-badge {
    margin-left: auto;
  }

  .workspace-nav button:last-child {
    border-bottom: 0;
  }

  .workspace-nav button[aria-selected="true"] {
    box-shadow: inset 3px 0 0 var(--cyan);
  }

  .workspace-panel {
    min-height: 0;
    grid-column: 2;
    grid-row: 2;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  #workspaceRoomsPanel {
    overflow: hidden;
  }

  .sns-workspace {
    height: 100%;
    min-height: 0;
    align-items: stretch;
  }

  .room-panel,
  .room-info-panel {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
  }

  .room-panel {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .room-info-panel {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .room-main {
    height: 100%;
    min-height: 0;
    padding: 15px 20px 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
  }

  .room-header {
    min-height: 70px;
    margin-bottom: 10px;
  }

.composer {
    max-height: 48vh;
    margin-bottom: 12px;
    overflow-y: auto;
  }

  .room-timeline {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  .feed-heading {
    margin: 5px 0 10px;
  }

  .room-timeline .post-list {
    min-height: 0;
    padding-right: 6px;
    padding-bottom: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .calendar-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
  }

  .calendar-panel .workspace-section-header {
    min-height: 72px;
  }

  .calendar-panel > .form-status {
    margin: 5px 0;
  }

  .ai-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
  }

  .ai-panel .workspace-section-header {
    min-height: 72px;
  }

  .ai-chat-shell {
    height: 100%;
  }

  .notifications-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .notifications-panel > :not(.notification-list) {
    flex: 0 0 auto;
  }

  .external-integrations[open] {
    max-height: min(540px, 54vh);
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  .notification-list {
    flex: 1 1 auto;
    min-height: 0;
    padding-right: 6px;
    padding-bottom: 24px;
    overflow-y: auto;
  }
}

.composer[data-direct="true"] {
  border-left-color: var(--cyan);
}

.post-options[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .pull-refresh-indicator {
    display: inline-flex;
  }

  .material-search-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .material-query-field {
    grid-column: 1 / -1;
  }

  .material-search-form .primary-action {
    min-height: 40px;
  }

  .workspace-nav,
  body[data-interface-mode="developer"] .workspace-nav {
    width: 100%;
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .workspace-nav-spacer {
    width: calc(50% - 58px);
    flex: 0 0 calc(50% - 58px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #a8e8f8;
  }

  .workspace-nav-cue {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: opacity 160ms ease;
  }

  .workspace-nav-cue .ui-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
  }

  .workspace-nav-cue strong {
    font-size: 9px;
    font-weight: 850;
  }

  .workspace-nav-spacer i {
    display: inline-block;
    font-size: 16px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
  }

  .workspace-nav-spacer-start i {
    animation: workspace-menu-forward 1.45s ease-in-out infinite;
  }

  .workspace-nav-spacer-end i {
    opacity: 0;
    animation: workspace-menu-back 1.45s ease-in-out infinite;
    transition: opacity 160ms ease;
  }

  .workspace-nav[data-at-start="false"] .workspace-nav-cue {
    opacity: 0;
  }

  .workspace-nav[data-at-end="true"] .workspace-nav-spacer-end i {
    opacity: 1;
  }

  .workspace-nav button {
    min-width: 116px;
    flex: 0 0 116px;
  }

  .workspace-nav-label {
    gap: 6px;
  }

  .workspace-nav-label .ui-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .shift-row {
    grid-template-columns: 66px minmax(120px, 0.8fr) minmax(150px, 1.2fr);
  }

  .shift-row-place {
    grid-column: 2 / -1;
  }

  .account-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .account-identity {
    padding: 16px 0;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px 12px;
    text-align: left;
  }

  .account-initial {
    width: 54px;
    height: 54px;
    margin: 0;
    flex: 0 0 54px;
    font-size: 18px;
  }

  .account-identity strong {
    min-width: calc(100% - 72px);
  }

  .account-identity > span:not(.account-initial),
  .account-identity small {
    margin: 0 0 0 66px;
  }

  .sns-workspace {
    display: block;
  }

  .room-panel {
    min-height: auto;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid #343b3e;
  }

  .room-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .room-button {
    width: 185px;
    flex: 0 0 185px;
    scroll-snap-align: start;
  }

  .room-panel-note {
    display: none;
  }

  .room-main {
    padding: 22px 0 32px;
  }

  .room-info-panel {
    min-height: auto;
    padding: 20px 0;
    border-top: 1px solid #343b3e;
    border-left: 0;
  }

  .room-info-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-participant-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .auth-view,
  .auth-view[data-auth-panel="register"] {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .auth-intro h1 {
    font-size: 26px;
  }

  .feed-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-toolbar-identity {
    width: 100%;
    flex-wrap: wrap;
  }

  .workspace-search {
    width: 100%;
    min-width: 0;
  }

  .feed-actions {
    width: auto;
  }

  .workspace-section-header {
    min-height: auto;
  }

  .workspace-section-header h1 {
    font-size: 22px;
  }

  .home-metric {
    padding: 14px;
  }

  .home-today-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-today-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-choice-grid,
  .profile-choice-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notification-state-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .notification-state-bar p {
    text-align: left;
  }

  .app-badge-guide {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .app-badge-guide .secondary-action {
    width: 100%;
    grid-column: 1 / -1;
  }

  .push-recovery-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .push-recovery-action {
    width: 100%;
  }

  .integration-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .integration-section,
  .integration-section + .integration-section {
    padding: 14px 0;
    border-left: 0;
  }

  .integration-section + .integration-section {
    border-top: 1px solid #2d3a3e;
  }
}

@media (max-width: 520px) {
  .material-access-notice,
  .material-source-strip,
  .material-result-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .material-access-notice span {
    text-align: left;
  }

  .material-search-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .material-query-field {
    grid-column: auto;
  }

  .sns-header {
    min-height: 64px;
    padding: 8px 12px;
    flex-wrap: wrap;
  }

  .sns-brand {
    gap: 7px;
  }

  .sns-brand img {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .sns-brand strong {
    font-size: 15px;
  }

  .sns-brand small {
    font-size: 8px;
  }

  .facility-context-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .facility-context-bar label {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .sns-header-nav a,
  .sns-header-nav button {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 10px;
  }

  .sns-header-nav {
    margin-left: auto;
  }

  .sns-main,
  .sns-footer {
    width: min(100% - 24px, 1240px);
  }

  .sns-main {
    padding: 24px 0 40px;
  }

  .workspace-nav {
    margin-bottom: 22px;
  }

  .workspace-nav button {
    min-height: 42px;
    padding: 7px 9px;
    font-size: 10px;
  }

  .shift-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .shift-readonly-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .shift-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shift-summary > div {
    min-height: 66px;
    border-bottom: 1px solid #3c4447;
  }

  .shift-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .shift-summary > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .shift-row {
    padding: 11px 12px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px 12px;
  }

  .shift-row-detail,
  .shift-row-place {
    grid-column: 2;
  }

  .workspace-install-bar {
    min-height: 62px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px;
  }

  .workspace-install-bar img {
    width: 38px;
    height: 38px;
  }

  .workspace-install-bar strong {
    font-size: 11px;
  }

  .workspace-install-bar p {
    display: none;
  }

  .workspace-install-bar .secondary-action {
    width: auto;
    min-height: 36px;
    grid-column: auto;
    padding-inline: 10px;
    font-size: 9px;
  }

  .install-app-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .install-app-actions button {
    width: 100%;
  }

  .feed-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .registered-members-shortcut {
    margin-left: auto;
  }

  .workspace-search input,
  .workspace-search button {
    min-height: 44px;
  }

  .member-auth-tool,
  .composer,
  .post-card,
  .account-form {
    padding: 16px;
  }

  .workspace-section-header {
    align-items: flex-start;
  }

  .workspace-section-actions {
    flex-direction: column-reverse;
    align-items: flex-end;
  }

  .workspace-section-actions .primary-action {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .home-metric {
    min-height: 76px;
    padding: 10px 6px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    text-align: center;
  }

  .home-today {
    margin-top: 18px;
    padding-top: 15px;
  }

  .home-today-shift {
    min-height: 82px;
    padding: 12px;
    grid-template-columns: 27px minmax(0, 1fr) 16px;
    gap: 10px;
  }

  .home-today-shift > .ui-icon:first-child {
    width: 24px;
    height: 24px;
  }

  .home-today-shift strong {
    font-size: 15px;
  }

  .home-today-counts button {
    min-height: 72px;
    padding: 9px 4px;
  }

  .home-today-counts span {
    font-size: 7px;
  }

  .home-today-counts strong {
    font-size: 21px;
  }

  .home-today-item {
    min-height: 72px;
    padding: 9px;
  }

  .home-freee-heading {
    align-items: flex-start;
  }

  .home-freee-request-item-heading { align-items: flex-start; }

  .home-recent-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .home-more > summary small {
    margin-left: auto;
  }

  .home-more-content {
    padding-inline: 8px;
  }

  .freee-request-review-details > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .home-metric span {
    font-size: 9px;
  }

  .home-metric strong {
    font-size: 23px;
  }

  .home-member-list {
    max-height: 340px;
    grid-template-columns: minmax(0, 1fr);
  }

  .business-tool-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-post-item {
    padding: 13px;
  }

  .home-post-meta {
    align-items: flex-start;
  }

  .home-post-detail {
    width: 100%;
    margin-left: 0;
  }

  .home-open-room {
    margin-left: auto;
  }

  .account-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-dialog {
    width: min(100% - 16px, 680px);
    max-height: calc(100vh - 16px);
  }

  .profile-cover {
    height: 96px;
  }

  .profile-overview,
  .profile-edit-form {
    padding-right: 16px;
    padding-left: 16px;
  }

  .profile-avatar {
    width: 86px;
    height: 86px;
    margin-top: -43px;
    font-size: 28px;
  }

  .profile-private-data,
  .profile-choice-grid,
  .profile-choice-grid.compact,
  .room-participant-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .avatar-editor {
    align-items: flex-start;
  }

  .profile-edit-actions {
    width: 100%;
  }

  .profile-edit-actions > button {
    flex: 1;
  }

  .task-room-filter {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-form-footer .primary-action {
    width: 100%;
  }

  .post-options {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .composer-heading,
  .post-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .room-heading-copy h1 {
    font-size: 21px;
  }

  .room-header {
    min-height: 76px;
    flex-direction: column;
  }

  .room-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .room-command,
  .post-command,
  .reaction-button,
  .task-complete-command {
    min-height: 42px;
  }

  .attachment-toolbar > span {
    width: 100%;
    margin-left: 0;
  }

  .post-attachments {
    grid-template-columns: minmax(0, 1fr);
  }

  .room-member-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .direct-member-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-scope-tabs button {
    padding: 6px 3px;
    font-size: 9px;
  }

  .shared-file-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .shared-file-item .secondary-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .attachment-viewer {
    padding: 13px;
  }

  .attachment-viewer-body iframe {
    min-height: 440px;
  }

  .post-meta {
    justify-content: flex-start;
  }

  .post-controls {
    flex-wrap: wrap;
  }

  .delete-command {
    margin-left: 0;
  }

  .composer-footer {
    align-items: flex-end;
  }

  .post-submit {
    min-width: 120px;
  }

  .sns-footer {
    flex-direction: column;
    gap: 4px;
  }

  .notification-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: row;
  }

  .notifications-panel .workspace-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-switch,
  .notification-actions .secondary-action {
    flex: 1;
  }

  .notification-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .external-integrations-heading {
    gap: 8px;
  }

  .integration-summary-state {
    max-width: 100px;
  }

  .external-integrations-actions .primary-action,
  .integration-command-row .primary-action,
  .integration-command-row .secondary-action,
  .email-verification-row > .secondary-action {
    width: 100%;
  }

  .integration-provider-choices,
  .integration-choice-grid,
  .integration-email-fields,
  .mail-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-email-fields label:last-child {
    grid-column: 1 / -1;
  }

  .email-verification-code {
    width: 100%;
    min-width: 0;
  }

  .mail-admin-actions .primary-action,
  .mail-admin-actions .secondary-action {
    width: 100%;
    flex-basis: 100%;
  }

  .notification-scope-tabs {
    width: 100%;
  }

  .notification-item {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .notification-open {
    grid-column: 2;
    width: 100%;
  }

  .notice-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notice-metrics > div {
    min-height: 62px;
    padding: 9px 10px;
    border-bottom: 1px solid #394246;
  }

  .notice-metrics > div:nth-child(2n) { border-right: 0; }
  .notice-metrics > div:nth-last-child(-n + 2) { border-bottom: 0; }

  .notice-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .notice-scope-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .notice-scope-tabs button {
    min-width: 78px;
    flex: 1 0 auto;
    padding-inline: 9px;
  }

  .notice-card { padding: 13px; }
  .notice-card-heading { align-items: flex-start; }
  .notice-card-heading time { white-space: nowrap; }
  .notice-card-actions { justify-content: stretch; }
  .notice-card-actions button { flex: 1 1 100%; }
  .notice-read-progress { grid-template-columns: minmax(0, 1fr); }
  .notice-form-grid,
  .notice-target-grid,
  .notice-choice-list { grid-template-columns: minmax(0, 1fr); }

  .home-administrative-watch {
    grid-template-columns: 10px minmax(0, 1fr) auto 16px;
    padding: 11px 12px;
    gap: 9px;
  }

  .home-administrative-watch > b { min-width: 36px; font-size: 13px; }
  .notice-type-tabs button { min-height: 44px; padding-inline: 8px; font-size: 10px; }
  .administrative-news-toolbar { grid-template-columns: minmax(0, 1fr); }
  .administrative-news-toolbar .feed-count { justify-self: end; }
  .administrative-news-card { padding: 13px; }
  .administrative-news-card-heading { align-items: flex-start; }
  .administrative-news-action { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .administrative-news-footer { align-items: stretch; flex-direction: column; }
  .administrative-open-source { width: 100%; justify-content: center; text-align: center; }
  .administrative-source-row { grid-template-columns: 8px minmax(0, 1fr); }
  .administrative-source-row small { grid-column: 2; text-align: left; }
}

@keyframes administrative-watch-pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 200, 234, .32); }
  65%, 100% { box-shadow: 0 0 0 8px rgba(63, 200, 234, 0); }
}

@keyframes workspace-menu-forward {
  0%, 100% { opacity: 0.45; transform: translateX(-2px); }
  50% { opacity: 1; transform: translateX(4px); }
}

@keyframes workspace-menu-back {
  0%, 100% { transform: translateX(2px); }
  50% { transform: translateX(-4px); }
}

@media (max-width: 900px) {
  .room-list {
    display: grid;
    gap: 8px;
    overflow: visible;
  }

  .room-group {
    min-width: 0;
  }

  .room-group-items {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .room-group-items .room-button {
    width: 185px;
    flex: 0 0 185px;
    scroll-snap-align: start;
  }

  .calendar-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-board {
    min-height: 500px;
  }

  .calendar-agenda {
    max-height: 520px;
  }

  .ai-chat-shell {
    min-height: 620px;
  }

  .admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-metrics > div:nth-child(3) { border-right: 0; }
  .admin-metrics > div:nth-child(-n + 3) { border-bottom: 1px solid #3c4447; }
  .admin-backup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-backup-grid > div:nth-child(2) { border-right: 0; }
  .admin-backup-grid > div:nth-child(-n + 2) { border-bottom: 1px solid #354247; }
  .admin-two-column { grid-template-columns: minmax(0, 1fr); }
  .workspace-module-list { grid-template-columns: minmax(0, 1fr); }

  .reminder-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .reminder-toolbar .task-scope-tabs { width: 100%; }
  .reminder-toolbar .feed-count { align-self: flex-end; }

  .document-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .document-toolbar .task-scope-tabs { width: 100%; }
  .document-toolbar .feed-count { align-self: flex-end; }
}

@media (max-width: 520px) {
  .workspace-nav,
  body[data-interface-mode="developer"] .workspace-nav {
    scroll-behavior: smooth;
  }

  .workspace-nav-spacer {
    width: calc(50% - 56px);
    flex-basis: calc(50% - 56px);
  }

  .workspace-nav button {
    min-width: 112px;
    flex-basis: 112px;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 9px;
  }

  .calendar-header {
    display: grid;
  }

  .calendar-actions {
    width: 100%;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .calendar-actions .primary-action {
    margin-left: auto;
  }

  .calendar-board {
    min-height: 440px;
  }

  .calendar-grid {
    grid-template-rows: repeat(6, minmax(64px, 1fr));
  }

  .calendar-day {
    min-height: 64px;
    padding: 4px 2px;
  }

  .calendar-day-item,
  .calendar-day-more {
    padding-right: 2px;
    padding-left: 2px;
    font-size: 7px;
  }

  .calendar-event-time-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-summary > div {
    min-height: 64px;
    padding: 11px 9px;
    border-bottom: 1px solid #343c3f;
  }

  .document-summary > div:nth-child(2n) { border-right: 0; }
  .document-summary > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .document-summary strong { font-size: 20px; }
  .document-card { padding: 14px 12px; }
  .document-card-top { display: grid; grid-template-columns: minmax(0, 1fr); }
  .document-status-select { width: 100%; }
  .document-controls > button { flex: 1 1 calc(50% - 5px); margin-left: 0; }
  .document-form-grid { grid-template-columns: minmax(0, 1fr); }
  .document-file-link { grid-template-columns: 36px minmax(0, 1fr); }
  .document-file-link small { display: none; }
  #documentScopeTabs button { padding-inline: 3px; font-size: 8px; }

  .reminder-summary > div {
    min-height: 64px;
    padding: 11px 9px;
  }

  .reminder-summary strong { font-size: 20px; }
  .reminder-card { padding: 14px 12px; }
  .reminder-card-top { align-items: flex-start; }
  .reminder-controls { align-items: stretch; }
  .reminder-snooze { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .reminder-snooze-select { width: 100%; }
  .reminder-controls > .post-command,
  .reminder-controls > .task-complete-command,
  .reminder-controls > .delete-command {
    flex: 1 1 calc(50% - 5px);
    margin-left: 0;
  }

  .reminder-quick-times button {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 8px;
  }

  .ai-mode-tabs button {
    padding: 6px 3px;
    font-size: 9px;
  }

  .ai-chat-shell {
    min-height: 560px;
    padding: 11px;
  }

  .ai-message {
    width: 92%;
  }

  .ai-chat-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-chat-form .primary-action {
    width: 100%;
  }

  .sns-header-nav {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .workspace-mode-control {
    order: -1;
  }

  body[data-interface-mode="developer"] .workspace-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .elcy-panel-identity {
    align-items: flex-start;
  }

  .elcy-panel-identity > img {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-metrics > div,
  .admin-metrics > div:nth-child(3) {
    border-right: 1px solid #3c4447;
    border-bottom: 1px solid #3c4447;
  }

  .admin-metrics > div:nth-child(even) { border-right: 0; }
  .admin-metrics > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .workspace-coordinator-summary { grid-template-columns: minmax(0, 1fr); }
  .workspace-coordinator-summary > div {
    border-right: 0;
    border-bottom: 1px solid #3c4447;
  }
  .workspace-coordinator-summary > div:last-child { border-bottom: 0; }
  .workspace-module-heading { align-items: flex-start; }
  .workspace-module-states { max-width: 46%; }
  .diagnostic-facts { grid-template-columns: minmax(0, 1fr); }
}

.member-call-command,
.member-message-command {
  width: 38px;
  min-width: 38px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #39778a;
  border-radius: 4px;
  background: #14272d;
  color: #a9e7f8;
  font-size: 9px;
  font-weight: 900;
}

.member-call-command .ui-icon,
.member-message-command .ui-icon {
  width: 17px;
  height: 17px;
}

.member-call-command:hover,
.member-message-command:hover {
  border-color: #62c6df;
  background: #1a3540;
  color: #e7faff;
}

.member-call-command:disabled,
.member-message-command:disabled {
  border-color: #3c4548;
  background: #171b1d;
  color: #687378;
}

.member-message-command {
  border-color: #42798a;
  background: #13252b;
  color: #9fe5f6;
}

.member-message-command[data-loading="true"] {
  opacity: 0.62;
}

.member-presence-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.room-participant-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.participant-call-command,
.participant-message-command {
  width: 32px;
  min-width: 32px;
  min-height: 28px;
  padding: 0;
}

.participant-call-command .ui-icon,
.participant-message-command .ui-icon {
  width: 14px;
  height: 14px;
}

.call-availability-bar {
  min-height: 64px;
  margin: 14px 0 18px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-top: 1px solid #3f484c;
  border-bottom: 1px solid #3f484c;
  background: #111719;
}

.call-availability-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #687277;
  box-shadow: 0 0 0 4px rgba(104, 114, 119, 0.12);
}

.call-availability-bar[data-ready="true"] .call-availability-dot {
  background: #4dd36f;
  box-shadow: 0 0 0 4px rgba(77, 211, 111, 0.14);
}

.call-availability-bar > div {
  min-width: 150px;
  display: grid;
  gap: 3px;
}

.call-availability-bar > div > span {
  color: #6ebfd6;
  font-size: 8px;
  font-weight: 900;
}

.call-availability-bar > div > strong {
  font-size: 12px;
}

.call-availability-bar > p {
  margin: 0;
  color: #929fa3;
  font-size: 10px;
  line-height: 1.5;
}

.calls-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(380px, 1.2fr);
  gap: 22px;
}

.call-contacts,
.call-history {
  min-width: 0;
}

.call-contact-search {
  display: block;
  margin-bottom: 10px;
}

.call-contact-search input {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #657176;
  border-radius: 4px;
  background: #f5f7f8;
  color: #172126;
  color-scheme: light;
  font-size: 11px;
}

.call-contact-list,
.call-history-list {
  display: grid;
  gap: 7px;
}

.call-contact-list {
  max-height: 560px;
  padding-right: 4px;
  overflow-y: auto;
}

.call-contact {
  min-width: 0;
  min-height: 64px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #3b4548;
  border-radius: 5px;
  background: #14191b;
}

.call-contact[data-online="true"] {
  border-color: #385947;
  background: #131a17;
}

.call-contact-copy {
  min-width: 0;
}

.call-contact-copy strong,
.call-contact-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-contact-copy strong { font-size: 11px; }
.call-contact-copy small { margin-top: 3px; color: #849095; font-size: 8px; font-weight: 750; }

.call-history-item {
  min-width: 0;
  min-height: 70px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #3b4548;
  border-left: 3px solid #5a686d;
  border-radius: 5px;
  background: #14191b;
}

.call-history-item[data-status="missed"] { border-left-color: #e56b72; }
.call-history-item[data-status="accepted"],
.call-history-item[data-status="ringing"] { border-left-color: #55cbe8; }

.call-history-symbol {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #475359;
  border-radius: 50%;
  background: #20272a;
  color: #a8e7f6;
  font-size: 15px;
  font-weight: 900;
}

.call-history-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.call-history-copy > strong { font-size: 11px; }
.call-history-copy > span,
.call-history-copy > small { color: #89959a; font-size: 8px; font-weight: 750; }
.call-history-meta { display: grid; justify-items: end; gap: 5px; }
.call-history-meta time { color: #8e999e; font-size: 8px; font-weight: 750; }
.call-history-state { color: #b6c2c6; font-size: 8px; font-weight: 900; }
.call-history-item[data-status="missed"] .call-history-state { color: #ff9da3; }

.call-dialog {
  width: min(430px, calc(100% - 26px));
  max-height: calc(100dvh - 26px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #4e5c61;
  border-radius: 8px;
  background: #0c1011;
  color: #edf5f7;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

.call-dialog::backdrop {
  background: rgba(2, 4, 5, 0.86);
  backdrop-filter: blur(5px);
}

.call-dialog-shell {
  min-height: 570px;
  padding: 34px 28px 26px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.call-direction-label {
  color: #70d2eb;
  font-size: 9px;
  font-weight: 900;
}

.call-peer-avatar {
  width: 116px;
  height: 116px;
  margin-top: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #5b6970;
  border-radius: 50%;
  background: #252d30;
  color: #f4f8f9;
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 0 0 8px rgba(81, 201, 231, 0.07);
}

.call-peer-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.call-live-dot {
  width: 18px;
  height: 18px;
  position: absolute;
  right: 2px;
  bottom: 8px;
  border: 3px solid #0c1011;
  border-radius: 50%;
  background: #50d470;
}

.call-dialog h2 {
  margin: 20px 0 4px;
  font-size: 25px;
  line-height: 1.2;
}

.call-peer-facility {
  min-height: 18px;
  margin: 0;
  color: #9aa6aa;
  font-size: 10px;
  font-weight: 750;
}

.call-signal-animation {
  height: 36px;
  margin: 22px 0 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.call-signal-animation i {
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: #62cde7;
  animation: call-signal 1.1s ease-in-out infinite;
}

.call-signal-animation i:nth-child(2),
.call-signal-animation i:nth-child(4) { animation-delay: 0.16s; }
.call-signal-animation i:nth-child(3) { animation-delay: 0.32s; }

@keyframes call-signal {
  0%, 100% { height: 10px; opacity: 0.5; }
  50% { height: 30px; opacity: 1; }
}

.call-dialog[data-phase="connected"] .call-signal-animation i {
  background: #62df86;
}

.call-dialog-state {
  min-height: 20px;
  color: #c4d0d3;
  font-size: 11px;
}

.call-duration {
  min-height: 24px;
  margin-top: 4px;
  color: #ffffff;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.call-dialog-status {
  min-height: 24px;
  margin: 6px 0 0;
  color: #e5a5a9;
  font-size: 9px;
  font-weight: 800;
}

.call-media-health {
  width: min(100%, 330px);
  margin: 8px 0 12px;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 10px;
  border: 1px solid #354147;
  border-radius: 5px;
  background: #141a1c;
  text-align: left;
}

.call-media-health[hidden] { display: none; }

.call-media-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  color: #94a2a7;
  font-size: 8px;
  font-weight: 800;
}

.call-media-row i {
  width: 7px;
  height: 7px;
  grid-row: 1 / span 2;
  border-radius: 50%;
  background: #667176;
  box-shadow: 0 0 0 3px rgba(102, 113, 118, 0.12);
}

.call-media-row strong {
  overflow: hidden;
  color: #d5dfe2;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-media-row[data-state="active"] i {
  background: #55d87c;
  box-shadow: 0 0 0 3px rgba(85, 216, 124, 0.14);
}

.call-media-row[data-state="warning"] i {
  background: #efb64e;
  box-shadow: 0 0 0 3px rgba(239, 182, 78, 0.14);
}

.call-media-row[data-state="error"] i {
  background: #ed747d;
  box-shadow: 0 0 0 3px rgba(237, 116, 125, 0.14);
}

.call-media-health small {
  grid-column: 1 / -1;
  color: #7f8d92;
  font-size: 8px;
  font-weight: 750;
  text-align: center;
}

.call-audio-resume {
  min-height: 40px;
  margin: 0 0 12px;
  padding: 8px 16px;
  border: 1px solid #52b9d4;
  border-radius: 5px;
  background: #173a44;
  color: #eafaff;
  font-size: 11px;
  font-weight: 900;
}

.call-audio-resume[hidden] { display: none; }

.call-dialog-controls {
  width: 100%;
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.call-control {
  width: 58px;
  min-width: 58px;
  min-height: 58px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.call-control .ui-icon {
  width: 24px;
  height: 24px;
}

.call-decline .ui-icon,
.call-hangup .ui-icon {
  transform: rotate(135deg);
}

.call-accept { border-color: #3ead5d; background: #258f45; }
.call-decline,
.call-hangup { border-color: #b95058; background: #a3343d; }
.call-mute { border-color: #597078; background: #253137; }
.call-mute[aria-pressed="true"] { border-color: #ca9f45; background: #59481f; color: #ffe3a3; }
.call-speaker { border-color: #4caec6; background: #17414b; color: #e8fbff; }
.call-speaker[aria-pressed="false"] { border-color: #59666b; background: #252f33; color: #d4dde0; }
.call-speaker:disabled { opacity: 0.68; cursor: wait; }

.call-privacy-note {
  margin: 14px 0 0;
  color: #6f7b7f;
  font-size: 8px;
  font-weight: 750;
}

.call-dialog audio {
  width: 1px;
  height: 1px;
  position: absolute;
  left: -2px;
  bottom: -2px;
  opacity: 0.01;
  pointer-events: none;
}

@media (max-width: 900px) {
  .calls-layout { grid-template-columns: minmax(0, 1fr); }
  .call-contact-list { max-height: none; }
}

@media (max-width: 520px) {
  .call-availability-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .call-availability-bar > p { grid-column: 1 / -1; }
  .call-dialog {
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .call-dialog-shell {
    min-height: 100dvh;
    padding: calc(32px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom));
  }
  .call-peer-avatar { width: 108px; height: 108px; }
  .call-dialog-controls { gap: clamp(18px, 8vw, 30px); }
  .call-control { width: 58px; min-width: 58px; flex: 0 0 58px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-mark {
    animation: none;
  }

  .call-signal-animation i {
    animation: none;
  }

  .workspace-nav-spacer i {
    animation: none;
  }

  .home-administrative-watch[data-has-news="true"] .administrative-watch-signal {
    animation: none;
  }

  .calendar-feed-health[data-state="checking"] .calendar-feed-health-mark {
    animation: none;
  }
}
.task-status-filter,
.task-progress-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.task-status-filter select,
.task-progress-label select {
  width: auto;
  max-width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #8d9ba1;
  border-radius: 4px;
  background: #f6f8f9;
  color: #162127;
  font: inherit;
  font-size: 16px;
}

.task-person-status {
  font-size: 12px;
  color: var(--text-muted, #b8c3c7);
}

.handover-label,
.task-priority {
  font-size: 12px;
  font-weight: 700;
  color: #9ed9e9;
}

.task-card[data-priority="urgent"] .task-priority {
  color: #ffb8c2;
}
