

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f3f3f4;
  --rail: #f7f7f8;
  --surface: #fff;
  --ink: #1f1f21;
  --muted: #6f6f72;
  --line: #e8e8ea;
  --violet: #977dd9;
  --violet-soft: #efeafb;
  --green: #1f9d63;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(20, 20, 22, .06);
  --font: Inter, system-ui, sans-serif;
}

html, body { height: 100%; }
html { overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--rail);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 16px 12px 14px;
  gap: 8px;
}
.rail-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  margin-bottom: 8px;
}
.rail-brand img { height: 15px; width: auto; flex-shrink: 0; }
.rail-brand__sub {
  font-size: 13px;
  font-weight: 600;
  color: #3d3d3d;
  padding-left: 10px;
  border-left: 1px solid #b8b8bc;
  white-space: nowrap;
}
.rail-nav { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #4d4d50;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
}
.rail-link:hover { background: #ececee; color: var(--ink); }
.rail-link.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.rail-link img, .rail-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.rail-gap { flex: 1; }
.rail-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 8px;
}
.rail-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  color: #3d3d3d;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.rail-card:hover { background: #fff; color: var(--ink); }
.rail-card.is-active { box-shadow: 0 0 0 1px #e0d7f4, 0 1px 2px rgba(0,0,0,.04); }
.rail-card img { width: 20px; height: 20px; flex-shrink: 0; }
.rail-ico {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.rail-ico img { width: 20px; height: 20px; }
.rail-ico .bell__dot {
  top: -1px;
  right: -1px;
  box-shadow: 0 0 0 2px #fff;
}
.rail-count {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fb8760;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rail-count[hidden] { display: none; }
.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #efeafb;
  color: #6b52a8;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar--lg { width: 40px; height: 40px; font-size: 13px; }

.workspace {
  position: relative;
  min-width: 0;
  padding: 16px 28px 40px;
}
.topbar {
  position: absolute;
  top: 16px;
  right: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 44px;
  margin: 0;
}
.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #262626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn img, .icon-btn svg { width: 18px; height: 18px; }
.bell__dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fb8760;
  box-shadow: 0 0 0 2px #f7f7f8;
}

.page-head {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 52px 24px 0;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
  margin: 0;
}
.crumb b { color: var(--ink); font-weight: 600; }
.page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.25;
  margin: 0;
}
.page-lead {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 720px;
}

.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tab {
  appearance: none;
  background: none;
  border: 0;
  padding: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  position: relative;
}
.tab.is-active {
  color: var(--ink);
  font-weight: 600;
}
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #282828;
  border-radius: 2px 2px 0 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  max-width: 360px;
}
.search input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 13px;
  background: transparent;
}
.toolbar-actions { margin-left: auto; display: flex; gap: 8px; }

.materials-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.materials-bar .tabs {
  flex: 1;
  min-width: 0;
  margin: 0;
  border-bottom: 0;
}
.materials-bar .search {
  flex: 0 0 300px;
  width: 300px;
  max-width: 300px;
  height: 36px;
  margin: 0 0 8px auto;
  background: #fff;
}
.materials-bar .search img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mat-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.mat-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.file-type {
  position: relative;
  width: 36px;
  height: 44px;
  flex-shrink: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(20, 20, 22, .06), 0 6px 12px rgba(20, 20, 22, .08);
}
.file-type::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 11px 11px 0;
  border-color: transparent var(--line) transparent transparent;
}
.file-type b {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  min-width: 26px;
  padding: 2px 4px;
  border-radius: 3px;
  color: #fff;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  background: #6f6f72;
}
.file-type--pdf b { background: #e5252a; }
.file-type--xlsx b,
.file-type--xls b,
.file-type--csv b { background: #1d7a46; }
.file-type--pptx b,
.file-type--ppt b { background: #f07814; }
.file-type--docx b,
.file-type--doc b,
.file-type--rtf b,
.file-type--odt b { background: #2b579a; }
.file-type--txt b { background: #6f6f72; }
.file-type--zip b,
.file-type--rar b,
.file-type--7z b { background: #6b52a8; }
.mat-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.mat-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.mat-card h3 {
  min-width: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.mat-card__info {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  color: #9a9a9e;
  white-space: nowrap;
}
.mat-card .bttn { flex-shrink: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 20px; }
.card-pad { padding: 22px 24px; }
.card-head { padding: 16px 24px 8px; }
.card-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.card-head .card-title { margin: 0; }

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 16px 18px;
  border-bottom: 1px solid #f0f0f2;
  vertical-align: top;
  line-height: 1.45;
}
tr:last-child td { border-bottom: 0; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

.bttn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  line-height: 20px;
  cursor: pointer;
}
.bttn--lg { min-height: 40px; padding: 10px 16px; }
.bttn img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.bttn--primary {
  color: #fff;
  background: #333;
  border-color: #6b6b6b;
  box-shadow: 0 2.7px 2.9px -1.3px rgba(0,0,0,.12);
}
.bttn--secondary {
  color: #262626;
  background: #f7f7f7;
  border-color: #e5e5e5;
  box-shadow: inset 0 -4px 4px rgba(237,237,237,.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #f3f3f1;
  color: #4d4d4d;
}
.badge--green { background: #e8f8ef; color: var(--green); }
.badge--violet { background: var(--violet-soft); color: #6b52a8; }
.badge--orange { background: #fff1ea; color: #c45a2d; }
.badge--gray { background: #f0f0f2; color: #6f6f72; }
.badge--blue { background: #e8eef8; color: #3d5a8a; }

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell b { display: block; font-weight: 600; }
.user-cell .muted { margin-top: 2px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; color: #555; }
.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  background: #fff;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNNCA2bDQgNCA0LTQiIHN0cm9rZT0iIzZmNmY3MiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}
.field select::-ms-expand { display: none; }
.field textarea { min-height: 84px; resize: vertical; }
.field input[readonly] { background: #f7f7f8; color: #6f6f72; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.output {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f7f8;
  word-break: break-all;
  font-size: 13px;
}
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.radio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  min-height: 42px;
}
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
}
.radio input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #333;
  flex-shrink: 0;
}
.radio span { font-size: 13px; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: #3d3d3d;
  cursor: pointer;
}
.chip.is-active { background: #282828; color: #fff; border-color: #282828; }

.news { display: grid; gap: 16px; }
.news-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.news-item.is-unread { box-shadow: inset 3px 0 0 #977dd9; }
.news-item__head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.news-item h3 { font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
.news-status {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #9a9a9e;
  padding-top: 3px;
  white-space: nowrap;
}
.news-item.is-unread .news-status { color: #6b52a8; }
.news-item__body { margin: 16px 0; font-size: 14px; line-height: 1.55; }
.comments { margin-top: 16px; display: grid; gap: 10px; }
.comment {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f7f8;
  font-size: 13px;
}
.comment b { display: block; margin-bottom: 4px; }
.comment-form { display: flex; gap: 8px; margin-top: 12px; }
.comment-form input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }

.profile-section { display: none; }
.profile-section.is-active { display: block; }
.person {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f2;
}
.person:last-child { border-bottom: 0; }
.space-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f7f7f8;
  margin: 0 8px 8px 0;
  font-size: 13px;
}

.login-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
}
.login-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.login-bg__spin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(118vw, 188vh);
  height: max(118vw, 188vh);
  max-width: none;
  max-height: none;
  margin: 0;
  mix-blend-mode: soft-light;
  transform: translate(-50%, -50%) rotate(180deg) scaleX(-1);
  animation: login-spin 120s linear infinite;
}
.login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 21vw at center, rgba(243,243,243,.55) 0%, rgba(243,243,243,.16) 62%, transparent 100%);
}
@keyframes login-spin {
  from { transform: translate(-50%, -50%) rotate(180deg) scaleX(-1); }
  to { transform: translate(-50%, -50%) rotate(540deg) scaleX(-1); }
}
@media (prefers-reduced-motion: reduce) {
  .login-bg__spin { animation: none; }
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 32px));
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,.12);
}
.login-card img { height: 22px; margin-bottom: 10px; }
.login-card .login-brand {
  min-height: auto;
  padding: 0;
  margin: 0;
  gap: 10px;
}
.login-card .login-brand img {
  height: 20px;
  margin-bottom: 0;
}
.login-card .login-brand .rail-brand__sub {
  font-size: 15px;
}
.login-card h1 { font-size: 22px; margin: 22px 0 24px; }
.login-card .field { margin-bottom: 14px; }
.login-card .bttn {
  font-size: 14px;
  font-weight: 600;
}

.app-bar { display: none; }
.rail-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(20, 20, 22, .36);
  border: 0;
}

.toast {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: auto;
  z-index: 50;
  display: none;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 12px;
  background: #282828;
  color: #fff;
  font-size: 13px;
}
.toast.is-open { display: block; }

.view { display: none; }
.view.is-active { display: block; }
#view-profile.is-active {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
  min-height: calc(100dvh - 56px);
}
.profile-logout {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 24px;
}
body:not(.is-in) .app { display: none; }
body.is-in .login-wrap { display: none; }
body.is-in .app { display: grid; }
body.nav-open { overflow: hidden; }

@media (max-width: 1100px) {
  .workspace { padding: 16px 20px 36px; }
  .topbar { right: 20px; }
  .page-head { margin-right: 48px; }
}

@media (max-width: 980px) {
  .mat-grid { grid-template-columns: 1fr; }
  .materials-bar {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
  }
  .materials-bar .tabs {
    flex: 1 1 100%;
    min-width: 100%;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 16px;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .materials-bar .tabs::-webkit-scrollbar { display: none; }
  .materials-bar .tab { flex-shrink: 0; }
  .materials-bar .search {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    margin: 10px 0 12px;
    order: -1;
  }
}

@media (max-width: 960px) {
  body.is-in .app {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }
  .app-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 45;
    height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0;
    background: var(--rail);
    border-bottom: 1px solid var(--line);
  }
  .app-bar__brand {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 0 4px;
  }
  .app-bar__menu { flex-shrink: 0; }
  .app-bar__icon-close { display: none; }
  body.nav-open .app-bar__icon-menu { display: none; }
  body.nav-open .app-bar__icon-close { display: block; }
  .topbar { display: none; }
  .page-head { margin-right: 0; margin-bottom: 18px; }
  .workspace {
    flex: 1;
    min-width: 0;
    padding: 16px max(16px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .rail {
    position: fixed;
    left: 0;
    top: calc(56px + env(safe-area-inset-top));
    bottom: 0;
    z-index: 40;
    width: min(280px, calc(100vw - 48px));
    height: auto;
    padding: 12px 12px calc(14px + env(safe-area-inset-bottom));
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: none;
  }
  body.nav-open .rail {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, .12);
  }
  body.nav-open .rail-backdrop { display: block; }
  .rail .rail-brand { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .card-pad { padding: 18px 16px; }
  .card-head { padding: 14px 16px 8px; }
  th, td { padding: 12px 14px; }
  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; }
  .form-actions { flex-direction: column; }
  .form-actions .bttn,
  .form-grid .full > .bttn { width: 100%; }
  .comment-form { flex-direction: column; }
  .comment-form .bttn { width: 100%; }
  .news-item { padding: 16px; }
  .news-item__head { flex-direction: column; gap: 6px; }
  .news-status { padding-top: 0; }
  .person {
    grid-template-columns: 40px 1fr;
    align-items: start;
  }
  .person .badge { grid-column: 2; justify-self: start; }
  #view-profile.is-active {
    min-height: calc(100dvh - 56px - env(safe-area-inset-top) - 32px);
  }
  .profile-logout { justify-content: stretch; }
  .profile-logout .bttn { width: 100%; }
  .toast {
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-title { font-size: 20px; }
  .mat-card { align-items: flex-start; }
  .mat-card__row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .mat-card .bttn { width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tbody tr {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f2;
  }
  .table-wrap tbody tr:last-child { border-bottom: 0; }
  .table-wrap td {
    display: grid;
    grid-template-columns: minmax(108px, 38%) minmax(0, 1fr);
    gap: 10px;
    padding: 0;
    border: 0;
    align-items: start;
  }
  .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
  }
  .table-wrap td.mono,
  .table-wrap .mono { word-break: break-all; }
  .table-wrap td[colspan] {
    display: block;
    grid-template-columns: 1fr;
  }
  .table-wrap td[colspan]::before { content: none; }
  .login-wrap { min-height: 100dvh; padding: 20px 0; }
  .login-card { padding: 24px 20px; }
  .login-card h1 { font-size: 20px; margin: 18px 0 20px; }
  .login-bg__spin {
    width: max(160vw, 140vh);
    height: max(160vw, 140vh);
  }
  .login-bg::after {
    background: radial-gradient(circle 42vw at center, rgba(243,243,243,.55) 0%, rgba(243,243,243,.16) 62%, transparent 100%);
  }
  .field input:not([type="radio"]):not([type="checkbox"]),
  .field select,
  .field textarea,
  .search input,
  .comment-form input {
    font-size: 16px;
  }
}

.field-input { width: 96px; border: 1px solid #e3e5ea; border-radius: 8px; padding: 6px 8px; font: inherit; color: inherit; background: #fff; }

