@font-face {
  font-family: IBM Plex Sans;
  src: url(/assets/fonts/IBMPlexSans-Regular.woff) format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: IBM Plex Sans;
  src: url(/assets/fonts/IBMPlexSans-Medium.woff) format('woff');
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: Benzin;
  src: url(/assets/fonts/Benzin-Regular.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Benzin;
  src: url(/assets/fonts/Benzin-Medium.woff2) format('woff2');
  font-weight: 500 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #171a2b;
  --muted: #515c75;
  --line: #d7dced;
  --paper: #ffffff;
  --canvas: #f3f4fa;
  --accent: #212cff;
  --accent-dark: #151eca;
  --accent-text: #212cff;
  --accent-soft: #e9edff;
  --accent-on: #fff;
  --focus: #212cff;
  --control-border: #7c879f;
  --surface-hover: #edf0fa;
  --surface-subtle: #f8f9fd;
  --stage: #e7eaf4;
  --preview-border: #a6b0c8;
  --amber: #735000;
  --amber-bg: #fff5da;
  --amber-border: #b19138;
  --red: #a32340;
  --error-bg: #fff0f4;
  --error-border: #ba677c;
  --success: #23563a;
  --success-bg: #ecf7f0;
  --success-border: #7b9e88;
  --info: #294d90;
  --info-bg: #eaf1ff;
  --info-border: #91a7cd;
  --radius: 8px;
  --shadow: 0 18px 70px #11184a24;
  font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #f0f2ff;
  --muted: #b1b8ce;
  --line: #383e57;
  --paper: #191d2d;
  --canvas: #111320;
  --accent: #212cff;
  --accent-dark: #151eca;
  --accent-text: #a5abff;
  --accent-soft: #252c59;
  --accent-on: #fff;
  --focus: #4ce9ff;
  --control-border: #7682a3;
  --surface-hover: #272e45;
  --surface-subtle: #151929;
  --stage: #0d101b;
  --preview-border: #53617c;
  --amber: #f1d18d;
  --amber-bg: #332b1b;
  --amber-border: #9b854e;
  --red: #ffafc1;
  --error-bg: #38202e;
  --error-border: #ad7189;
  --success: #b0e8c3;
  --success-bg: #18332b;
  --success-border: #648f78;
  --info: #bacfff;
  --info-bg: #202e4d;
  --info-border: #6b86b4;
  --shadow: 0 20px 70px #0007;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
}
button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 600;
  min-height: 38px;
  transition: border-color 0.12s;
}
button:hover {
  background: var(--surface-hover);
  border-color: var(--control-border);
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
button.primary:hover {
  background: var(--accent-dark);
}
button.quiet {
  background: transparent;
  border-color: transparent;
}
button.danger {
  color: var(--red);
  border-color: var(--error-border);
}
button.small {
  padding: 5px 9px;
  min-height: 32px;
  font-size: 12px;
}
button.selected,
button[aria-pressed='true'] {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: var(--accent-text);
}
button.icon-button {
  padding: 6px 11px;
  font-size: 20px;
  line-height: 1;
  min-width: 38px;
}
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
}
p {
  margin-bottom: 12px;
}
small,
.small-text {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  background: var(--accent-dark);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 6px;
}
.skip-link:focus {
  top: 12px;
}
.notice {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: min(720px, calc(100% - 24px));
  padding: 13px 18px;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--red);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.notice.success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}
.notice button {
  background: transparent;
  flex: none;
  padding: 0 5px;
  min-height: 24px;
  border: 0;
  font-size: 18px;
}
.initial {
  display: grid;
  justify-content: center;
  align-content: center;
  min-height: 100vh;
  text-align: center;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: var(--accent-dark);
  color: var(--ink);
  border-radius: 9px;
  font-size: 23px;
  font-weight: 750;
}
.initial .brand-symbol {
  margin: 0 auto 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.brand-name small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.9px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 3px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-size: 10px;
  font-weight: 750;
  color: var(--accent);
}
.form-grid {
  display: grid;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field > label {
  font-weight: 650;
  font-size: 12px;
}
.field > small {
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 9px 10px;
  width: 100%;
  min-height: 40px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
input[type='checkbox'] {
  width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--accent);
}
input[type='file'] {
  padding: 8px;
  font-size: 13px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 13px;
}
.checkbox label {
  cursor: pointer;
}
.form-error {
  color: var(--red);
  padding: 10px 12px;
  border-left: 3px solid var(--red);
  background: var(--error-bg);
  white-space: pre-wrap;
}
.form-hint {
  padding: 11px 13px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
.sidebar {
  background: var(--surface-subtle);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 22px;
  min-height: 100vh;
}
.sidebar > .brand {
  padding: 0 6px;
}
.sidebar-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 7px;
  margin-bottom: 8px;
}
.sidebar-heading span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 750;
  color: var(--muted);
}
.projects {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-item {
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 11px;
  font-size: 13px;
  font-weight: 600;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 2px;
}
.project-item small {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}
.project-item[aria-current='true'] {
  background: var(--accent-soft);
  border-color: var(--line);
  color: var(--accent-dark);
}
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 16px 5px 0;
}
.identity-name {
  font-weight: 650;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.identity-role {
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0 12px;
}
.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 21px 25px 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  flex: none;
}
.topbar h1 {
  font-size: 23px;
  margin: 4px 0 4px;
}
.topbar p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  max-width: 650px;
  overflow-wrap: anywhere;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 0;
  flex: 1;
}
.preview-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--stage);
}
.version-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  flex: none;
}
.version-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.version-control label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
}
.version-control select {
  font-size: 12px;
  min-height: 34px;
  padding: 5px 26px 5px 9px;
  max-width: 260px;
}
.version-control .badge {
  white-space: nowrap;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  flex: none;
}
.toolbar button {
  font-size: 11px;
  padding: 6px 9px;
  min-height: 32px;
}
.toolbar-divider {
  height: 21px;
  width: 1px;
  background: var(--line);
  margin: 0 5px;
}
.preview-state {
  font-size: 11px;
  color: var(--muted);
  padding: 8px 16px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 33px;
}
.state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.preview-state.warning {
  color: var(--amber);
  background: var(--amber-bg);
}
.preview-stage {
  flex: 1;
  min-height: 250px;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 12px;
  overflow: auto;
}
.prototype-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 1px solid var(--preview-border);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 3px 12px #10193712;
}
.preview-empty {
  margin: auto;
  text-align: center;
  max-width: 420px;
  padding: 35px;
}
.preview-empty .empty-icon {
  font-size: 38px;
  font-weight: 250;
  color: var(--muted);
  margin-bottom: 15px;
}
.preview-empty h2 {
  font-size: 22px;
}
.preview-empty p {
  color: var(--muted);
}
.preview-footer {
  padding: 8px 16px;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex: none;
}
.comments-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--paper);
  border-left: 1px solid var(--line);
}
.panel-heading {
  padding: 18px 17px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-heading h2 {
  margin: 0;
  font-size: 17px;
}
.count {
  font-size: 10px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
  color: var(--muted);
  font-weight: 700;
}
.filters {
  padding: 0 16px 12px;
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.filters input,
.filters select {
  font-size: 11px;
  padding: 7px 8px;
  min-height: 33px;
}
.filter-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.filters details summary {
  font-size: 11px;
  cursor: pointer;
  color: var(--muted);
  margin: 3px 0;
}
.filters details > .filter-pair {
  margin-top: 8px;
}
.comments-list {
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.comment-row {
  display: block;
  padding: 15px 17px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  text-align: left;
  width: 100%;
  font-weight: 400;
  position: relative;
}
.comment-row:hover {
  background: var(--surface-hover);
  border-color: var(--line);
}
.comment-row.active {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 var(--accent);
}
.comment-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 8px;
}
.comment-number {
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  line-height: 1.5;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 650;
  background: var(--surface-subtle);
  color: var(--muted);
  border: 1px solid var(--line);
}
.badge.new {
  background: var(--info-bg);
  color: var(--info);
  border-color: var(--info-border);
}
.badge.working {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: var(--amber-border);
}
.badge.ready {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: var(--line);
}
.badge.accepted {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}
.badge.rejected {
  background: var(--error-bg);
  color: var(--red);
  border-color: var(--error-border);
}
.comment-excerpt {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comment-meta {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.comment-author {
  font-weight: 600;
}
.comment-kind {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 9px;
}
.list-empty {
  padding: 35px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.list-empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 7px;
  font-size: 14px;
}
.comment-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  flex: 1;
}
.detail-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.detail-scroll {
  padding: 16px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.detail-scroll h3 {
  font-size: 13px;
  margin-top: 20px;
  margin-bottom: 9px;
}
.detail-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.65;
  margin: 14px 0;
}
.detail-author {
  font-size: 11px;
  color: var(--muted);
}
.detail-author strong {
  color: var(--ink);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.screenshot-thumb {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: zoom-in;
}
.context-note {
  font-size: 10px;
  color: var(--muted);
  padding: 8px 0;
  overflow-wrap: anywhere;
}
.context-note strong {
  color: var(--ink);
}
.edit-form {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.edit-form label {
  font-size: 11px;
}
.edit-form select,
.edit-form textarea {
  font-size: 12px;
}
.reply {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.reply-heading {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.reply-heading strong {
  color: var(--ink);
  font-size: 11px;
}
.reply p {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 7px 0 0;
}
.history-list {
  padding: 0;
  list-style: none;
  margin: 10px 0;
}
.history-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.history-list strong {
  color: var(--ink);
  font-weight: 600;
}
.reply-form {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
  flex: none;
}
.reply-form textarea {
  font-size: 12px;
  min-height: 68px;
  max-height: 160px;
}
.reply-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}
.reply-form small {
  font-size: 9px;
  color: var(--muted);
}
.welcome {
  padding: clamp(30px, 5vw, 80px);
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1000px;
}
.welcome h1 {
  font-size: clamp(30px, 4vw, 48px);
  max-width: 650px;
  margin: 15px 0 22px;
  letter-spacing: -1.3px;
}
.welcome > p {
  max-width: 530px;
  color: var(--muted);
  font-size: 16px;
}
.welcome > button {
  align-self: flex-start;
  margin-top: 20px;
}
.welcome-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 45px;
}
.welcome-step span {
  font-family: Consolas, monospace;
  color: var(--accent);
  font-size: 12px;
}
.welcome-step h2 {
  font-size: 14px;
  margin: 8px 0;
}
.welcome-step p {
  color: var(--muted);
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  max-width: min(680px, calc(100vw - 32px));
  width: 100%;
  max-height: calc(100dvh - 40px);
  color: var(--ink);
  box-shadow: var(--shadow);
  background: var(--paper);
}
dialog::backdrop {
  background: #080d2999;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 25px 18px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.modal-heading h2 {
  font-size: 21px;
  margin: 0;
  letter-spacing: -0.5px;
}
.modal-body {
  padding: 23px 25px;
  overflow: auto;
  max-height: calc(100dvh - 125px);
}
.modal-body > p:first-child {
  color: var(--muted);
  font-size: 13px;
}
.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
.modal-image {
  display: block;
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 10px 0 18px;
}
.full-image {
  width: auto;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  margin: auto;
}
.section-label {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 10px;
}
.timeline {
  padding-left: 17px;
  border-left: 1px solid var(--line);
}
.version-item {
  position: relative;
  padding: 0 0 23px 9px;
}
.version-item:before {
  content: '';
  position: absolute;
  left: -22px;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--preview-border);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 50%;
}
.version-item:first-child:before {
  background: var(--accent);
}
.version-item h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.version-item p {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 9px 0;
}
.version-item .detail-actions {
  margin: 8px 0 0;
}
.member-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.member-row strong {
  font-size: 13px;
}
.member-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 0;
}
.invite-result {
  padding: 14px;
  border: 1px solid var(--success-border);
  background: var(--success-bg);
  border-radius: 6px;
  margin: 15px 0;
  display: grid;
  gap: 8px;
}
.invite-result input {
  font-family: Consolas, monospace;
  font-size: 12px;
}
.inline-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.draft-banner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  background: var(--amber-bg);
  border-bottom: 1px solid var(--amber-border);
  font-size: 11px;
  color: var(--amber);
}
.mobile-nav {
  display: none;
}
.review-target-note {
  font-size: 12px;
  background: var(--surface-subtle);
  padding: 10px 12px;
  border-radius: 5px;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.dialog-wide {
  max-width: min(1080px, calc(100vw - 32px));
}
.empty-small {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 0;
}
.export-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.export-links a {
  display: inline-flex;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}
.status-dot {
  font-size: 10px;
  color: var(--muted);
}
.status-dot::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent-text);
  border-radius: 50%;
  margin-right: 5px;
}
.link-copy {
  font-family: Consolas, monospace;
}
.status-failed {
  color: var(--red);
}
.draft-status {
  font-size: 10px;
  color: var(--muted);
}
@media (min-width: 1650px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 385px;
  }
  .sidebar {
    padding-left: 20px;
    padding-right: 20px;
  }
  .app-shell {
    grid-template-columns: 245px minmax(0, 1fr);
  }
  .topbar {
    padding: 25px 30px 20px;
  }
  .toolbar,
  .version-bar {
    padding-left: 22px;
    padding-right: 22px;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .sidebar {
    padding: 20px 10px;
  }
  .sidebar > .brand {
    gap: 8px;
  }
  .brand-name {
    font-size: 12px;
  }
  .brand-name small {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .brand-symbol {
    width: 31px;
    height: 33px;
    font-size: 20px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 305px;
  }
  .topbar {
    padding: 17px;
  }
  .topbar-actions button {
    font-size: 11px;
    padding: 6px 9px;
  }
  .topbar h1 {
    font-size: 21px;
  }
  .preview-stage {
    padding: 8px;
  }
  .version-bar {
    padding: 9px;
  }
  .toolbar {
    padding: 8px;
  }
  .version-control select {
    max-width: 190px;
  }
}
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .sidebar.mobile-open {
    display: flex;
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    box-shadow: 12px 0 60px #070b2355;
    overflow: auto;
  }
  .mobile-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
  }
  .topbar-title-line {
    display: flex;
    align-items: center;
  }
  .topbar .eyebrow {
    font-size: 9px;
  }
  .topbar p {
    max-width: 400px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .topbar-actions {
    max-width: 250px;
  }
}
@media (max-width: 680px) {
  .app-main {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .topbar {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .topbar-title {
    flex: 1;
    min-width: 200px;
  }
  .topbar-actions {
    max-width: none;
    justify-content: flex-start;
    width: 100%;
    gap: 6px;
  }
  .topbar-actions button {
    flex: 1;
    white-space: nowrap;
  }
  .topbar h1 {
    font-size: 21px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: auto;
  }
  .preview-column {
    min-height: 580px;
  }
  .preview-stage {
    min-height: 420px;
    padding: 7px;
  }
  .prototype-frame {
    min-height: 420px;
  }
  .comments-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 450px;
    max-height: none;
  }
  .comments-list {
    max-height: 550px;
    min-height: 200px;
  }
  .comment-detail {
    min-height: 500px;
    max-height: 850px;
  }
  .version-bar {
    padding: 9px 12px;
  }
  .version-control {
    flex: 1;
  }
  .version-control select {
    max-width: none;
    flex: 1;
  }
  .toolbar {
    padding: 8px 10px;
    gap: 4px;
  }
  .toolbar button {
    flex: 1;
    padding: 6px 5px;
  }
  .toolbar-divider {
    display: none;
  }
  .preview-footer {
    font-size: 9px;
  }
  .panel-heading {
    padding-top: 16px;
  }
  .filter-pair {
    gap: 8px;
  }
  .filters {
    gap: 9px;
  }
  .filters input,
  .filters select {
    font-size: 12px;
  }
  .welcome {
    padding: 35px 23px;
  }
  .welcome h1 {
    font-size: 34px;
  }
  .welcome-steps {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 30px;
  }
  .welcome-step {
    display: grid;
    grid-template-columns: 25px 1fr;
    gap: 0 10px;
  }
  .welcome-step h2 {
    margin: 0 0 4px;
  }
  .welcome-step p {
    grid-column: 2;
    margin-bottom: 0;
  }
  .modal-heading {
    padding: 17px;
  }
  .modal-body {
    padding: 18px;
  }
  .modal-heading h2 {
    font-size: 19px;
  }
  .form-two {
    grid-template-columns: 1fr;
  }
  .draft-banner {
    align-items: flex-start;
  }
  .member-row {
    align-items: flex-start;
  }
  .preview-empty {
    padding: 25px;
  }
  .reply-form small {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.compatibility-warning {
  padding: 8px 16px;
  background: var(--amber-bg);
  border-bottom: 1px solid var(--amber-border);
  font-size: 11px;
  color: var(--amber);
}
.compatibility-warning summary {
  cursor: pointer;
  font-weight: 600;
}
.compatibility-warning ul {
  margin: 7px 0;
  padding-left: 18px;
}
.sidebar-close {
  display: none;
}
@media (max-width: 900px) {
  .sidebar-close {
    display: block;
    align-self: flex-end;
  }
}
.modal-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--error-border);
  border-radius: 6px;
  background: var(--error-bg);
  color: var(--red);
  font-size: 12px;
}
.modal-notice.success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}
.modal-notice button {
  background: transparent;
  flex: none;
  padding: 0 5px;
  min-height: 24px;
  border: 0;
  font-size: 18px;
}
input,
select,
textarea {
  border-color: var(--control-border);
}
button.selected,
button[aria-pressed='true'] {
  border-color: var(--accent-text);
}
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
}
.attachment-preview {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-subtle);
  text-align: left;
}
.attachment-preview img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: var(--stage);
  border-radius: 3px;
}
.attachment-preview span {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.attachment-preview button {
  align-self: flex-start;
}
.draft-storage-error {
  color: var(--red);
  font-weight: 600;
  padding: 10px;
  border: 1px solid var(--error-border);
  border-radius: 5px;
  background: var(--error-bg);
}
.saved-attachments {
  margin: 15px 0;
}
.saved-attachments h3 {
  margin-top: 0;
}
.sidebar {
  max-height: 100dvh;
  overflow-y: auto;
}
.download-status {
  font-size: 12px;
  color: var(--muted);
}
.version-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  margin: 12px 0;
}
.version-links a {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 0;
  line-height: 1.4;
}

/* Фирменная система Технологикума. Прототип внутри iframe сохраняет собственную тему. */
h1,
h2 {
  font-family: Benzin, 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  text-wrap: balance;
}
h1 {
  letter-spacing: -0.5px;
}
h3 {
  font-weight: 500;
}
a,
.eyebrow,
.comment-number,
.welcome-step span {
  color: var(--accent-text);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button.selected,
button[aria-pressed='true'],
.project-item[aria-current='true'] {
  color: var(--accent-text);
  border-color: var(--accent-text);
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.brand-logo {
  display: block;
  width: 159px;
  height: 64px;
  max-width: 100%;
  background: #111320;
  border-radius: 4px;
  object-fit: contain;
  padding: 4px;
}
.brand-name {
  font-family: Benzin, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.3px;
}
.brand-name small {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.1px;
  margin: 3px 0 0;
}
.initial .brand-logo {
  margin: 0 auto 18px;
}
.initial .brand {
  align-items: center;
  margin-bottom: 26px;
}
.eyebrow {
  font-weight: 500;
  letter-spacing: 1.3px;
}
.theme-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  min-width: 0;
  flex: none;
}
.theme-picker label {
  color: var(--muted);
}
.theme-picker select {
  width: 128px;
  min-height: 34px;
  padding: 5px 8px;
  font-size: 12px;
}
.topbar .theme-picker {
  align-self: center;
}
.system-navigation {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.sidebar > .brand {
  padding: 0 5px 5px;
}
.sidebar-footer {
  position: sticky;
  bottom: -24px;
  background: var(--surface-subtle);
  padding-bottom: 12px;
}
.identity-role {
  line-height: 1.55;
}
.accounts-content {
  padding: 28px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.accounts-intro {
  max-width: 780px;
  color: var(--muted);
  font-size: 14px;
}
.account-table-wrap {
  overflow: auto;
  border-top: 1px solid var(--line);
  margin-top: 26px;
}
.account-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 570px;
  text-align: left;
}
.account-table caption {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  padding: 12px 0;
}
.account-table th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.account-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
}
.account-table td:first-child {
  padding-left: 0;
}
.account-table th:first-child {
  padding-left: 0;
}
.account-table td:last-child {
  width: 160px;
}
.account-login {
  font-family: Consolas, monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.account-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.member-row .inline-actions {
  justify-content: flex-end;
}
.member-assignment {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.member-assignment h3 {
  margin-bottom: 14px;
}
.account-count {
  color: var(--muted);
  font-size: 12px;
}
.accounts-empty {
  padding: 40px 0;
  color: var(--muted);
}
.sidebar.mobile-open {
  box-shadow: 12px 0 60px #070b2355;
}
.prototype-frame {
  color-scheme: normal;
}
.topbar h1 {
  font-size: 21px;
}
.welcome h1 {
  max-width: 850px;
  font-size: clamp(29px, 3.3vw, 45px);
  line-height: 1.3;
}
.account-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-size: 11px;
}
.account-status.disabled {
  color: var(--red);
}
@media (max-width: 1150px) {
  .brand-logo {
    width: 145px;
    height: 59px;
  }
  .brand-name {
    font-size: 15px;
  }
  .topbar h1 {
    font-size: 19px;
  }
  .topbar-actions {
    gap: 6px;
  }
  .theme-picker label {
    display: none;
  }
}
@media (max-width: 680px) {
  .brand-logo {
    width: 142px;
    height: 58px;
  }
  .topbar h1 {
    font-size: 19px;
    line-height: 1.4;
  }
  .topbar-actions .theme-picker {
    margin-right: auto;
  }
  .accounts-content {
    padding: 24px 16px;
  }
  .account-table th,
  .account-table td {
    padding: 12px 9px;
  }
  .member-row {
    flex-wrap: wrap;
  }
  .member-row > .inline-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .sidebar-footer {
    bottom: -20px;
  }
}

/* Экран входа: единая композиция с общей шапкой и подвалом. */
.auth-shell {
  width: min(100%, 1840px);
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(24px, 3.5vw, 72px) clamp(24px, 4vw, 80px) 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(40px, 5vh, 72px);
}
.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.auth-header .brand {
  gap: 24px;
  flex-direction: row;
  align-items: center;
}
.auth-header .brand-name {
  font-size: 19px;
}
.auth-header .brand-name small {
  font-size: 12px;
}
.theme-switch {
  display: flex;
  flex: none;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-subtle);
}
.theme-choice {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
}
.theme-choice[aria-pressed='true'] {
  color: var(--accent-text);
  background: var(--paper);
  border-color: var(--control-border);
}
.auth-content {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 128px);
  align-items: center;
  padding-block: 24px 56px;
}
.auth-intro h2 {
  font-size: clamp(42px, 3.1vw, 64px);
  line-height: 1.24;
  letter-spacing: -1.2px;
  text-wrap: balance;
  max-width: 820px;
  margin: 0 0 28px;
}
.auth-intro p {
  color: var(--muted);
  font-size: clamp(17px, 1.1vw, 20px);
  line-height: 1.65;
  max-width: 570px;
  margin: 0;
}
.auth-main {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 16px 0 16px clamp(36px, 4vw, 72px);
}
.auth-box {
  width: 100%;
  max-width: 480px;
}
.auth-box h1 {
  font-size: clamp(26px, 1.7vw, 34px);
  line-height: 1.35;
  margin: 0 0 16px;
  letter-spacing: -0.6px;
}
.auth-box > p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}
.auth-box form {
  margin-top: 32px;
  gap: 20px;
}
.auth-box .field {
  gap: 10px;
}
.auth-box .field > label {
  font-size: 16px;
}
.auth-box .field > small,
.auth-box .form-hint {
  font-size: 14px;
  line-height: 1.55;
}
.auth-box input {
  min-height: 54px;
  font-size: 18px;
  padding: 12px 14px;
}
.auth-box form > button {
  min-height: 52px;
  font-size: 16px;
}
.auth-footer {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 1100px) {
  .auth-content {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 36px;
  }
  .auth-intro h2 {
    font-size: 40px;
  }
  .auth-main {
    padding-left: 32px;
  }
  .auth-header .brand-name small {
    max-width: 180px;
  }
}
@media (max-width: 900px) {
  .auth-shell {
    max-width: 560px;
    padding: 24px 24px 24px;
    gap: 36px;
  }
  .auth-header {
    gap: 16px;
  }
  .auth-header .brand-logo {
    width: 124px;
    height: 50px;
  }
  .auth-header .brand-name {
    display: none;
  }
  .auth-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 0;
    align-content: center;
  }
  .auth-intro h2 {
    font-size: clamp(28px, 6.5vw, 36px);
    line-height: 1.26;
    letter-spacing: -0.6px;
    margin-bottom: 18px;
  }
  .auth-intro p {
    font-size: 16px;
    line-height: 1.55;
  }
  .auth-main {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
  }
  .auth-box {
    max-width: none;
  }
  .auth-box h1 {
    font-size: 25px;
    margin-bottom: 12px;
  }
  .auth-box > p {
    font-size: 16px;
  }
  .auth-box form {
    margin-top: 24px;
    gap: 18px;
  }
  .auth-box .field > label {
    font-size: 15px;
  }
  .auth-box input {
    font-size: 16px;
    min-height: 52px;
  }
  .auth-footer {
    padding-top: 18px;
    font-size: 13px;
  }
}
@media (max-width: 359px) {
  .auth-shell {
    padding-inline: 18px;
    gap: 28px;
  }
  .auth-header {
    gap: 8px;
  }
  .auth-header .brand-logo {
    width: 110px;
    height: 45px;
  }
  .theme-switch {
    gap: 0;
    padding: 3px;
  }
  .auth-content {
    gap: 28px;
  }
}
