/* Account entry and workspace editors */
.remote-access-status { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line, #e1e4ea); }
.remote-access-status h3 { margin: 0 0 10px; font-size: 15px; }
.remote-access-status p { margin: 10px 0; font-size: 14px; line-height: 1.65; }
.remote-access-login, .remote-access-address span { overflow-wrap: anywhere; }
.remote-access-reply { padding: 12px 14px; margin-top: 16px; background: var(--surface, #f4f5f7); border-radius: 6px; }
.remote-access-reply p { margin-bottom: 0; }
.remote-access-steps { padding-left: 20px; margin: 0; }
.remote-access-steps li + li { margin-top: 16px; }
.remote-access-steps p { margin-top: 5px; }
.remote-access-address { display: grid; gap: 6px; margin: 22px 0 14px; padding-top: 16px; border-top: 1px solid var(--line, #e1e4ea); font-size: 13px; }
.auth-layout:has(.entry-shell) {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 6svh, 64px) 20px;
  background: var(--bg, #f4f5f7);
}

.entry-shell {
  display: grid;
  gap: 16px;
  width: min(100%, 460px);
}

.entry-masthead { padding: 0 3px 4px; }

.entry-brand {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
}
.entry-brand-icon {
  display: block;
  width: 38px;
  height: 38px;
  flex: none;
}
.entry-brand strong, .entry-brand small { display: block; overflow-wrap: anywhere; }
.entry-brand strong { font-size: 20px; font-weight: 780; line-height: 1.16; letter-spacing: -.03em; }
.entry-brand small { margin-top: 3px; font-size: 12px; color: var(--muted, #5d6673); }

.entry-pane {
  min-width: 0;
  padding: clamp(25px, 4vw, 37px);
  border: 1px solid var(--line, #e1e4ea);
  border-radius: 10px;
  background: var(--paper, #fff);
  box-shadow: 0 2px 5px rgb(31 36 46 / 3%);
}
.entry-kicker {
  margin-bottom: 7px;
  color: var(--accent, #762940);
  font-size: 12px;
  font-weight: 700;
}
.entry-body h1 {
  margin: 0;
  color: var(--ink, #20242d);
  font-family: inherit;
  font-size: clamp(25px, 3.3vw, 33px);
  font-weight: 750;
  line-height: 1.24;
  letter-spacing: -.025em;
}
.entry-description {
  margin: 8px 0 25px;
  color: var(--muted, #5d6673);
  font-size: 14px;
}
.entry-form { gap: 17px; }
.entry-form .alert { margin: 0; }
.entry-field-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.entry-field-label a, .entry-note a { color: var(--accent, #762940); font-weight: 700; }
.entry-field-label a { font-size: 12px; }
.entry-field-label a:hover, .entry-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.entry-body .entry-action { margin-top: 6px; min-height: 46px; justify-content: space-between; }
.entry-action svg, .editor-actions svg, .editor-heading .btn svg, .editor-success .btn svg { width: 16px; height: 16px; }
.entry-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 24px;
  border-top: 1px solid var(--line, #e1e4ea);
  padding-top: 15px;
  color: var(--muted, #5d6673);
  font-size: 13px;
}
.entry-note p { margin: 0; }
.entry-footer { display: grid; gap: 3px; padding-inline: 3px; color: var(--muted, #5d6673); font-size: 12px; }
.entry-footer p { margin: 0; }
.entry-footer .entry-access { display: flex; align-items: center; gap: 6px; color: #334d6f; font-weight: 650; }
.entry-access .icon { width: 14px; height: 14px; }
.entry-status-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  border-radius: 8px;
  background: #eef3f9;
  color: #334d6f;
}
.entry-status-icon svg { width: 22px; height: 22px; }

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(190px, .92fr);
  align-items: start;
  gap: 22px;
  max-width: 1080px;
}
.editor-heading { max-width: 1080px; }
.editor-grid .editor-card {
  margin: 0;
  padding: 0;
  border-radius: var(--radius, 8px);
}
.editor-card-head, .editor-card-body, .editor-actions { padding-inline: clamp(18px, 3vw, 30px); }
.editor-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-block: 19px;
  border-bottom: 1px solid var(--line, #e1e4ea);
}
.editor-card-head h2 { font-family: inherit; font-size: 17px; margin: 0; }
.editor-card-head span { color: var(--muted, #5d6673); white-space: nowrap; font-size: 12px; }
.editor-card-head span b, .editor-form label b { color: var(--accent, #762940); }
.editor-card-body { padding-block: 24px; }
.editor-card-body > .alert { margin: 0 0 20px; }
.editor-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 16px;
}
.editor-wide { grid-column: 1 / -1; }
.editor-section + .editor-section {
  margin-top: 26px;
  padding-top: 23px;
  border-top: 1px solid var(--line, #e1e4ea);
}
.editor-section h3 { margin: 0 0 14px; font-size: 15px; }
.editor-section h3 small { margin-left: 5px; font-size: 11px; color: var(--muted, #5d6673); font-weight: 500; }
.editor-form .field, .entry-form .field { min-width: 0; gap: 6px; }
.editor-form .field label, .entry-form .field label, .editor-source legend { font-size: 13px; color: var(--ink, #20242d); font-weight: 650; }
.editor-form .field input:not([type=radio]):not([type=checkbox]),
.editor-form .field select,
.editor-form .field textarea,
.entry-form .field input {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--rule, #c8ced8);
  border-radius: 6px;
  color: var(--ink, #20242d);
  background: var(--paper, #fff);
  font-size: 14px;
}
.editor-form .field textarea { resize: vertical; }
.editor-form .field input:not([type=radio]):not([type=checkbox]):focus,
.editor-form .field select:focus,
.editor-form .field textarea:focus,
.entry-form .field input:focus {
  border-color: var(--accent, #762940);
  outline: 2px solid var(--accent-soft, #f6ecf0);
  outline-offset: 1px;
  box-shadow: none;
}
.editor-form .field input[type=file] {
  padding: 15px 11px;
  border: 1px dashed #acb7c8;
  background: #f7f9fc;
}
.editor-form .field input[type=file]::file-selector-button {
  border: 1px solid #cbd6e4;
  border-radius: 5px;
  padding: 6px 10px;
  margin-right: 9px;
  background: #eef3f9;
  color: #334d6f;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.editor-form .field input[type=file]::file-selector-button:hover { background: #e3ebf5; }
.editor-form .field-check input { accent-color: var(--accent, #762940); }
.editor-form .field-check label { font-weight: 550; }
.editor-form .field [aria-invalid=true], .entry-form .field [aria-invalid=true] { box-shadow: inset 0 0 0 1px #bf7567; }
.editor-form .help, .entry-form .help {
  color: var(--muted, #5d6673);
  font-size: 12px;
  line-height: 1.55;
}
.editor-form .help ul, .entry-form .help ul { margin: 2px 0 0; padding-left: 18px; }
.editor-form .field-error, .entry-form .field-error { color: #8e3c30; font-size: 12px; }
.editor-form .errorlist, .entry-form .errorlist { margin: 0; padding: 0; list-style: none; }

.editor-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  padding-block: 15px;
  border-top: 1px solid var(--line, #e1e4ea);
}
.editor-actions .btn { min-height: 40px; }
.editor-guide {
  border: 1px solid #dce5f0;
  border-radius: var(--radius, 8px);
  padding: 19px 20px;
  background: #f7f9fc;
  color: var(--ink, #20242d);
}
.editor-guide-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 5px;
  background: #eaf0f7;
  color: #334d6f;
}
.editor-guide-icon svg { width: 17px; height: 17px; }
.editor-guide h2 { margin-bottom: 9px; font-size: 15px; }
.editor-guide p { margin: 0 0 8px; color: var(--muted, #5d6673); font-size: 13px; }
.editor-guide p:last-child { margin-bottom: 0; }
.editor-profile { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.editor-profile strong { min-width: 0; overflow-wrap: anywhere; }
.editor-profile-avatar {
  flex: none;
  width: 43px;
  height: 43px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--accent, #762940);
  background: var(--accent-soft, #f6ecf0);
  font-size: 17px;
  font-weight: 740;
}
.editor-profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.editor-success { max-width: 720px; }
.editor-success h2 { margin-bottom: 10px; }
.editor-success p { color: var(--muted, #5d6673); }

.editor-form .editor-source { margin: 0; padding: 0; border: 0; }
.editor-source legend { margin-bottom: 7px; padding: 0; }
.editor-source > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.editor-source > div > div { display: flex; }
.editor-form .editor-source label {
  width: 100%;
  max-width: none;
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
}
.editor-form .editor-source label:has(input:checked) { color: var(--accent, #762940); background: var(--accent-soft, #f6ecf0); border-color: var(--accent, #762940); box-shadow: none; }
.editor-form .editor-source input { accent-color: var(--accent, #762940); }
.editor-form .meeting-reports { padding: 12px 14px; border: 1px solid #dce5f0; border-radius: 6px; background: #f7f9fc; }
.editor-form .meeting-reports-head strong { font-size: 12px; color: #334d6f; }
.editor-form .meeting-reports-head span, .editor-form .meeting-report-meta { color: var(--muted, #5d6673); }
.editor-form .meeting-report-row { color: #334d6f; border-color: #dce5f0; }
.editor-form .meeting-report-title { white-space: normal; overflow-wrap: anywhere; }
.editor-form .editor-options {
  margin-top: 21px;
  border: 1px solid var(--line, #e1e4ea);
  border-radius: 6px;
  background: var(--bg, #f4f5f7);
}
.editor-options summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 9px;
  padding: 13px 14px;
  color: var(--ink, #20242d);
  font-size: 13px;
  list-style: none;
}
.editor-options summary::-webkit-details-marker { display: none; }
.editor-options summary::before { content: "+"; margin: 0; color: var(--accent, #762940); }
.editor-options[open] summary::before { content: "−"; }
.editor-options small { color: var(--muted, #5d6673); font-size: 12px; font-weight: 500; }
.editor-options-body { padding: 16px; }

@media (max-width: 960px) {
  .editor-grid { gap: 15px; }
}
@media (max-width: 740px) {
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .auth-layout:has(.entry-shell) { padding-inline: 16px; }
  .entry-description { margin-bottom: 23px; }
  .entry-pane { padding-inline: 21px; }
  .editor-fields, .editor-source > div { grid-template-columns: minmax(0, 1fr); }
  .editor-form .meeting-report-row { flex-wrap: wrap; gap: 4px 10px; }
  .editor-form .meeting-report-title { flex: 1 1 100%; }
}
