:root {
  --bg: #08090d;
  --bg-2: #0b0d12;
  --surface: #111318;
  --surface-elevated: #161922;
  --surface-hover: #1b1f2a;
  --border: #252936;
  --border-subtle: #1a1d25;
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --muted: #71717a;
  --accent: #78eda4;
  --accent-2: #4cda79;
  --accent-dark: #163f2b;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 10px;
  --sidebar: 300px;
  --header: 68px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.app-body {
  background:
    linear-gradient(180deg, rgba(92, 227, 123, 0.035), rgba(8, 9, 13, 0) 240px),
    var(--bg);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 16px;
  background: #07080c;
  border-right: 1px solid var(--border-subtle);
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 140px;
  margin-bottom: 24px;
}

.brand img {
  width: 238px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.sidebar-nav,
.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-2);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.sidebar-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--border-subtle);
}

.sidebar-item.is-active {
  color: var(--text);
  background: rgba(92, 227, 123, 0.08);
  border-color: rgba(92, 227, 123, 0.18);
}

.sidebar-mark {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.sidebar-item.is-active .sidebar-mark {
  color: var(--accent);
  border-color: rgba(92, 227, 123, 0.45);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface);
}

.sidebar-profile strong,
.header-identity strong {
  display: block;
  max-width: 140px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile small,
.header-identity small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.app-main {
  min-width: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  background: rgba(8, 9, 13, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
}

.search-input {
  width: min(380px, 50vw);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--muted);
}

.search-input span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.search-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-input input::placeholder {
  color: var(--muted);
}

.search-input kbd {
  min-width: 44px;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
  font-family: var(--font);
  text-align: center;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-brand {
  display: none;
  align-items: center;
  width: 174px;
  height: 52px;
  flex: 0 0 auto;
}

.header-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.notify-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.content {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 28px;
}

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.page-title h1 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 650;
  line-height: 1.1;
}

.page-title p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--text-2);
}

.page-actions,
.form-actions,
.table-actions,
.install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0)), var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

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

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-header h2,
.preview-card h2,
.mobile-project-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
}

.panel-header p,
.preview-card p,
.mobile-project-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.summary-item {
  min-height: 84px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-item strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 28px;
  font-weight: 650;
}

.dashboard-grid,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  margin-bottom: 16px;
}

.project-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 16px;
  align-items: start;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  padding: 13px 16px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-2);
  vertical-align: middle;
}

.table tr {
  transition: background 180ms ease;
}

.table tbody tr:hover,
.table tbody tr.is-selected {
  background: rgba(255, 255, 255, 0.025);
}

.table strong {
  color: var(--text);
  font-weight: 600;
}

.table small,
.project-cell small,
.identity-cell small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.table-url {
  color: var(--text-2);
}

.table-url:hover,
.text-link,
.muted-link {
  color: var(--accent);
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
  color: var(--muted);
  font-size: 12px;
}

.pager strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: #06100a;
}

.project-cell,
.identity-cell,
.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-preview {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  background: #0d1017;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.project-preview-table {
  width: 72px;
  height: 46px;
}

.project-preview-large {
  width: 100%;
  height: 180px;
  margin-bottom: 16px;
}

.project-preview-hero {
  width: 100%;
  min-height: 420px;
}

.project-preview-card {
  width: 100%;
  height: 150px;
}

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

.preview-browser {
  position: absolute;
  top: 8px;
  left: 9px;
  right: 9px;
  height: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-browser span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.preview-title {
  position: absolute;
  top: 30%;
  left: 12%;
  right: 12%;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
}

.project-preview-large .preview-title,
.project-preview-card .preview-title,
.project-preview-hero .preview-title {
  top: 34%;
  font-size: 22px;
}

.preview-grid {
  position: absolute;
  right: 10%;
  bottom: -18%;
  width: 42%;
  height: 64%;
  border: 1px solid rgba(92, 227, 123, 0.18);
  background:
    linear-gradient(135deg, rgba(92, 227, 123, 0.12), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.04) 18px 19px);
  transform: skewX(-12deg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.badge-success,
.badge-soft-success {
  color: var(--accent);
  background: rgba(34, 197, 94, 0.09);
  border-color: rgba(34, 197, 94, 0.16);
}

.badge-warning {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.16);
}

.badge-muted,
.badge-archived {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-elevated);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: #303545;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-color: rgba(92, 227, 123, 0.65);
  color: #06100a;
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-secondary {
  background: #0d1017;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.22);
  color: #fecaca;
}

.btn-small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
}

.input {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
  background: #0b0d12;
  color: var(--text);
  transition: border-color 160ms ease, background 160ms ease;
}

textarea.input {
  resize: vertical;
}

.input:focus {
  border-color: rgba(92, 227, 123, 0.62);
  background: #0d1017;
}

.form-stack {
  display: grid;
  gap: 13px;
}

.form-stack label > span,
.comment-form label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 12px;
}

.check-row input {
  accent-color: var(--accent);
}

.flash {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface-elevated);
}

.flash-success {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.flash-danger {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
}

.empty-state {
  display: grid;
  place-items: center;
  padding: 36px 18px;
  text-align: center;
  color: var(--muted);
}

.empty-state h2 {
  margin: 10px 0 4px;
  color: var(--text);
  font-size: 16px;
}

.empty-state p {
  max-width: 360px;
  margin: 0;
}

.empty-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(92, 227, 123, 0.2);
  border-radius: 10px;
  background: rgba(92, 227, 123, 0.06);
}

.avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(92, 227, 123, 0.22);
  border-radius: 10px;
  background: rgba(92, 227, 123, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 11px;
}

.avatar-large {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  font-size: 18px;
}

.avatar-list,
.client-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.avatar-chip,
.client-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #0c0f15;
  color: var(--text-2);
}

.client-strip {
  padding: 16px;
}

.client-mini {
  min-width: 190px;
}

.client-mini strong {
  display: block;
  color: var(--text);
}

.client-mini small {
  color: var(--muted);
}

.meta-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-top: 1px solid var(--border-subtle);
}

.meta-list dt {
  color: var(--muted);
  font-size: 12px;
}

.meta-list dd {
  margin: 0;
  color: var(--text);
  text-align: right;
}

.project-focus,
.project-side,
.narrow-panel {
  padding: 18px;
}

.project-focus .meta-list,
.project-side .meta-list {
  margin: 12px -18px;
}

.overline {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-focus-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.project-focus-heading h2,
.project-side h2 {
  margin: 0;
  font-size: 18px;
}

.project-focus-heading a {
  color: var(--text-2);
  font-size: 12px;
}

.button-stack {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.stack-list,
.activity-list,
.comment-list,
.access-grid {
  display: grid;
  gap: 0;
}

.stack-row,
.activity-item,
.comment-item,
.access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--border-subtle);
}

.stack-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.activity-item {
  align-items: flex-start;
}

.activity-item strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.activity-item small,
.activity-item time,
.muted {
  color: var(--muted);
  font-size: 12px;
}

.activity-dot,
.check-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
}

.project-hero {
  padding: 18px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tab {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 12px;
}

.tab:hover,
.tab.is-active {
  color: var(--accent);
  background: rgba(92, 227, 123, 0.06);
  border-color: rgba(92, 227, 123, 0.16);
}

.project-description {
  margin: 14px 0 0;
  color: var(--text-2);
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.comment-item {
  align-items: flex-start;
  justify-content: flex-start;
}

.comment-item > div {
  min-width: 0;
}

.comment-item header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.comment-item strong {
  color: var(--text);
}

.comment-item small {
  color: var(--muted);
  font-size: 12px;
}

.comment-item p {
  margin: 6px 0 0;
  color: var(--text-2);
}

.access-row {
  align-items: center;
}

.preview-grid-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.preview-card,
.mobile-project-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: #0c0f15;
}

.preview-frame-panel {
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.preview-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 210px);
  min-height: 560px;
  border: 0;
  background: #fff;
}

.iframe-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-2);
}

.login-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 9, 13, 0.2), #08090d),
    linear-gradient(120deg, rgba(92, 227, 123, 0.11), transparent 36%),
    #08090d;
}

.login-shell,
.install-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-panel,
.install-panel {
  width: min(100%, 540px);
  padding: 34px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: rgba(11, 13, 18, 0.94);
}

.install-panel {
  width: min(100%, 600px);
}

.login-logo {
  width: min(100%, 420px);
  height: auto;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto 38px;
}

.login-heading {
  text-align: center;
}

.login-heading h1,
.install-panel h1 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.login-heading p,
.install-panel p {
  margin: 8px 0 22px;
  color: var(--text-2);
}

.login-options {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.login-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.profile-head {
  padding-bottom: 18px;
}

.profile-head h2 {
  margin: 0;
}

.profile-head p {
  margin: 4px 0 0;
  color: var(--text-2);
}

.checklist {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.checklist div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
}

.separate-action {
  margin-top: 10px;
}

.icon-button,
.modal-close {
  min-width: 36px;
  height: 36px;
  display: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 9px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(100%, 430px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
}

.modal-panel h2 {
  margin: 0 0 8px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
}

.mobile-card-list {
  display: none;
}

:focus-visible {
  outline: 2px solid rgba(92, 227, 123, 0.8);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  :root {
    --sidebar: 280px;
  }

  .brand {
    min-height: 126px;
  }

  .brand img {
    width: 220px;
  }

  .login-logo {
    width: min(100%, 380px);
    margin-bottom: 34px;
  }

  .dashboard-grid,
  .split-layout,
  .project-workspace,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    order: 2;
  }

  .preview-grid-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-104%);
    width: min(88vw, 300px);
    transition: transform 220ms ease;
  }

  .brand {
    min-height: 118px;
  }

  .brand img {
    width: min(100%, 220px);
  }

  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .menu-toggle {
    display: grid;
  }

  .header-brand {
    display: flex;
  }

  .login-logo {
    width: min(100%, 350px);
  }

  .header {
    padding: 0 16px;
  }

  .search-input {
    display: none;
  }

  .content {
    padding: 18px 14px;
  }

  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-strip,
  .two-column,
  .preview-grid-list {
    grid-template-columns: 1fr;
  }

  .client-table-wrap {
    display: none;
  }

  .mobile-card-list {
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .preview-frame {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .header-identity {
    display: none;
  }

  .table-actions,
  .page-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .login-shell,
  .install-shell {
    padding: 18px;
  }

  .login-panel,
  .install-panel {
    padding: 22px;
  }

  .login-logo {
    width: min(100%, 320px);
    margin-bottom: 30px;
  }
}

.access-bulk-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.access-user-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #0c0f15;
}

.access-user-summary strong {
  display: block;
  color: var(--text);
  font-weight: 650;
}

.access-user-summary small {
  color: var(--muted);
  font-size: 12px;
}

.project-check-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.project-check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: #0c0f15;
  color: var(--text-2);
  transition: border-color 160ms ease, background 160ms ease;
}

.project-check-row:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.project-check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.project-check-row strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.project-check-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.project-check-row.is-inherited {
  background: rgba(92, 227, 123, 0.045);
  border-color: rgba(92, 227, 123, 0.14);
}

.project-check-row.is-inherited input {
  opacity: 0.7;
}
