/* ==========================================================================
 * 作品集原型工作台 —— 全站样式表
 * 视觉主张：纸本作品集。米白纸面 + 墨黑文字，三端形态用低饱和橙/蓝/绿区分。
 * 字体规范：标题 Poppins、正文系统无衬线，中文回退苹方 / 微软雅黑（不使用宋体）
 * 覆盖 PRD：FR-08 / FR-13 / FR-14 / FR-15 / FR-23 / 非功能需求
 * ========================================================================== */

/* ------------------------------------------------------------------ 1. 设计变量 */
:root {
  /* 品牌主色 */
  --ink: #141413;
  --ink-soft: #45433c;
  --ink-muted: #6e6b62;
  --paper: #faf9f5;
  --paper-2: #f2f0e9;
  --surface: #ffffff;
  --mid: #b0aea5;
  --line: #e5e3d9;
  --line-strong: #d6d3c6;

  /* 强调色：分别对应 C 端 / B 端 / G 端 */
  --accent-c: #d97757;
  --accent-b: #6a9bcc;
  --accent-g: #788c5d;

  /* 形状与阴影 */
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow-1: 0 1px 2px rgba(20, 20, 19, 0.04), 0 10px 26px -18px rgba(20, 20, 19, 0.3);
  --shadow-2: 0 2px 4px rgba(20, 20, 19, 0.05), 0 26px 54px -24px rgba(20, 20, 19, 0.36);
  --shadow-3: 0 3px 6px rgba(20, 20, 19, 0.07), 0 34px 70px -26px rgba(20, 20, 19, 0.42);

  /* 节奏 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 64px;
  --shell: 1200px;

  /* 字体栈（无远程字体依赖，全部走系统字体，避免加载抖动）
   * 标题与正文统一为无衬线体系，中文优先苹方 / 微软雅黑，不再回退宋体 */
  --font-head: 'Poppins', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei',
    'Hiragino Sans GB', 'Noto Sans SC', Arial, sans-serif;
}

/* ------------------------------------------------------------------ 2. 基础重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--accent-b);
  outline-offset: 2px;
}

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

/* ------------------------------------------------------------------ 3. 通用元素 */
.eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* 三端色条：C / B / G 的极简视觉符号 */
.brandbars {
  display: flex;
  gap: 4px;
  align-items: center;
}

.brandbars span {
  height: 3px;
  border-radius: 2px;
}

.brandbars span:nth-child(1) {
  width: 30px;
  background: var(--accent-c);
}

.brandbars span:nth-child(2) {
  width: 20px;
  background: var(--accent-b);
}

.brandbars span:nth-child(3) {
  width: 12px;
  background: var(--accent-g);
}

.brandbars--sm span {
  height: 2px;
}

.brandbars--sm span:nth-child(1) {
  width: 18px;
}

.brandbars--sm span:nth-child(2) {
  width: 12px;
}

.brandbars--sm span:nth-child(3) {
  width: 7px;
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 10px 18px;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  width: 100%;
  padding: 13px 18px;
  font-size: 15px;
  border-radius: var(--r-md);
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.16);
}

.btn--primary:hover {
  background: #2a2925;
  box-shadow: 0 6px 18px -10px rgba(20, 20, 19, 0.6);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 14px;
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(20, 20, 19, 0.03);
}

/* 三端标签（PRD FR-10：以视觉区分的色块展示） */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid;
  border-radius: 999px;
  padding: 3px 10px 3px 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.chip::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.chip--c {
  color: #a75030;
  border-color: rgba(217, 119, 87, 0.34);
  background: rgba(217, 119, 87, 0.11);
}

.chip--b {
  color: #3f6591;
  border-color: rgba(106, 155, 204, 0.4);
  background: rgba(106, 155, 204, 0.13);
}

.chip--g {
  color: #55673d;
  border-color: rgba(120, 140, 93, 0.4);
  background: rgba(120, 140, 93, 0.13);
}

/* ------------------------------------------------------------------ 4. 登录页 */
.page--login {
  position: relative;
  background:
    radial-gradient(58vw 58vw at 8% -12%, rgba(106, 155, 204, 0.16), transparent 62%),
    radial-gradient(46vw 46vw at 96% 112%, rgba(217, 119, 87, 0.13), transparent 60%),
    var(--paper);
}

.page--login::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(20, 20, 19, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
  opacity: 0.5;
}

.gate {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 56px 24px 40px;
}

.gate__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.gate__title {
  font-size: clamp(30px, 4.2vw, 46px);
}

.gate__sub {
  max-width: 46ch;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.75;
}

.gate__card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 30px 30px 26px;
}

.gate__card-head {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.gate__card-head h2 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
}

.gate__card-head p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-muted);
}

.field + .field {
  margin-top: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.field input::placeholder {
  color: var(--mid);
}

.field input:hover {
  border-color: var(--mid);
}

.field input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent-b);
  box-shadow: 0 0 0 3px rgba(106, 155, 204, 0.18);
}

.field input[aria-invalid='true'] {
  border-color: var(--accent-c);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.16);
}

.form-error {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 119, 87, 0.34);
  border-radius: var(--r-sm);
  background: rgba(217, 119, 87, 0.09);
  color: #a75030;
  font-size: 13.5px;
  line-height: 1.5;
}

.form-error.is-visible {
  display: flex;
}

.form-error::before {
  content: '!';
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-c);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.gate__submit {
  margin-top: 22px;
}

.gate__note {
  width: min(420px, 100%);
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.gate__note strong {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink-soft);
}

.gate__note code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  padding: 1px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink);
}

/* ------------------------------------------------------------------ 5. 工作台顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 249, 245, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: var(--shell);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar__title {
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__aside {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ 6. 工作台主体 */
.workspace {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 32px 72px;
}

.overview {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.overview__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overview__title {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.overview__sub {
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* 卡片网格（PRD FR-14 响应式断点） */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* ------------------------------------------------------------------ 7. 项目卡片 */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  /* FR-13：悬浮上浮 4-8px、阴影加深，200-300ms 缓动 */
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
    border-color 0.24s var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
}

/* 卡片主体的整块可点区域：使用拉伸链接，避免按钮嵌套在链接内 */
.card__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: inherit;
  cursor: pointer;
  font-size: 0;
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  overflow: hidden;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s var(--ease);
}

.card:hover .card__img {
  transform: scale(1.035);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 22px 16px;
  flex: 1;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card__name {
  font-family: var(--font-head);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.012em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__desc {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(250, 249, 245, 0) 0%, rgba(250, 249, 245, 0.6) 100%);
  /* 底部区域不拦截点击，让卡片主体的整块可点区域继续生效（FR-12 / FR-16） */
  pointer-events: none;
}

.card__foot .btn--intro {
  pointer-events: auto;
}

.btn--intro {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 15px;
  font-size: 13px;
}

.btn--intro:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.card__cta svg {
  transition: transform 0.24s var(--ease);
}

.card:hover .card__cta {
  color: var(--ink);
}

.card:hover .card__cta svg {
  transform: translate(2px, -2px);
}

.card--pending .card__cta {
  color: var(--mid);
}

/* 空状态（PRD 9.3 项目列表为空） */
.empty {
  grid-column: 1 / -1;
  padding: 72px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--ink-muted);
}

.empty__title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
}

.empty__desc {
  margin-top: 6px;
  font-size: 13.5px;
}

/* ------------------------------------------------------------------ 8. 底部个人简介（P2） */
.owner {
  margin-top: 40px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-2);
  display: flex;
  align-items: center;
  gap: 18px;
}

.owner[hidden] {
  display: none;
}

.owner__mark {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.owner__name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
}

.owner__role {
  font-size: 13px;
  color: var(--ink-muted);
}

.owner__tagline {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ 9. 项目简介弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.modal[hidden] {
  display: none;
}

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 19, 0.46);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: scrim-in 0.22s var(--ease) both;
}

.modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86svh, 88vh);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: panel-in 0.26s var(--ease) both;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 20px;
  border-bottom: 1px solid var(--line);
}

.modal__head-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.modal__title {
  font-family: var(--font-head);
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.icon-btn {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.icon-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper-2);
}

.modal__body {
  padding: 24px 30px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail {
  padding-bottom: 4px;
}

.detail + .detail {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail__label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.detail__label::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--ink);
}

.detail__index {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--mid);
}

.detail__text {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 三端架构 */
.ends {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ends__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--mid);
  border-radius: var(--r-md);
  background: var(--paper);
}

.ends__row--c {
  border-left-color: var(--accent-c);
}

.ends__row--b {
  border-left-color: var(--accent-b);
}

.ends__row--g {
  border-left-color: var(--accent-g);
}

.ends__name {
  flex: none;
  width: 54px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  padding-top: 1px;
}

.ends__row--c .ends__name {
  color: #a75030;
}

.ends__row--b .ends__name {
  color: #3f6591;
}

.ends__row--g .ends__name {
  color: #55673d;
}

.ends__text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* 核心业务流程 */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.flow__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.flow__no {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 10.5px;
  font-weight: 600;
}

.flow__arrow {
  color: var(--mid);
  font-size: 13px;
  line-height: 1;
}

/* ------------------------------------------------------------------ 10. 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 80;
  transform: translate(-50%, 12px);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(90vw, 420px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(20, 20, 19, 0.94);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 13.5px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.toast[hidden] {
  display: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-c);
}

/* ------------------------------------------------------------------ 11. 动效 */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes scrim-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: rise-in 0.6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .card:hover,
  .card:focus-within {
    transform: none;
  }
}

/* ------------------------------------------------------------------ 12. 响应式（PRD FR-14） */
@media (max-width: 1023px) {
  .workspace {
    padding: 32px 24px 64px;
  }

  .topbar__inner {
    padding: 0 24px;
  }
}

@media (max-width: 767px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace {
    padding: 26px 18px 56px;
  }

  .topbar__inner {
    padding: 0 18px;
  }

  .topbar__meta {
    display: none;
  }

  .gate {
    padding: 40px 18px 32px;
    gap: 24px;
  }

  .gate__card {
    padding: 24px 22px 22px;
  }

  .modal {
    padding: 18px 14px;
  }

  .modal__head {
    padding: 20px 20px 16px;
  }

  .modal__body {
    padding: 20px 20px 24px;
  }

  .owner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .card__body,
  .card__foot {
    padding-left: 18px;
    padding-right: 18px;
  }
}