:root {
  color-scheme: light;
  --bg: #f5f1e4;
  --surface: #fffaf0;
  --surface-clean: #ffffff;
  --surface-soft: #ebe3c9;
  --ink: #242719;
  --muted: #6a6f5b;
  --line: #d8cda9;
  --brand: #5d6f2f;
  --brand-dark: #35451e;
  --brand-soft: #dfe8c9;
  --accent: #c69a2b;
  --accent-dark: #8a6412;
  --accent-soft: #fff2c7;
  --clay: #a45f36;
  --blue: #2f6770;
  --danger: #a83222;
  --shadow: 0 18px 42px rgba(45, 48, 29, 0.14);
  --soft-shadow: 0 8px 22px rgba(45, 48, 29, 0.08);
  --radius: 8px;
  --container: min(1080px, calc(100% - 40px));
  --site-font: Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.76), rgba(245, 241, 228, 1) 360px),
    var(--bg);
  color: var(--ink);
  font-family: var(--site-font);
  font-size: 16px;
  line-height: 1.75;
}

body,
button,
input,
textarea,
select {
  font-family: var(--site-font);
}

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

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

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(198, 154, 43, 0.42);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 205, 169, 0.84);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(16px);
}

.navbar {
  width: var(--container);
  min-height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent-soft);
  background: var(--brand-dark);
  box-shadow: inset 0 -3px 0 rgba(198, 154, 43, 0.36);
  font-family: Georgia, serif;
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-block: 8px;
}

.nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.nav-admin {
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.7);
}

.hero-band {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
  padding: 42px 0 54px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(93, 111, 47, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(198, 154, 43, 0.22), transparent 46%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: 34px;
}

.hero-copy {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  max-width: 780px;
  color: var(--brand-dark);
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy .lead {
  max-width: 670px;
  color: var(--blue);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 900;
}

.intro-letter {
  margin: 4px 0 0;
  max-width: 760px;
  border-right: 6px solid var(--accent);
  border-radius: 8px;
  padding: 22px 24px;
  color: #30331f;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: var(--shadow);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 250, 240, 0.72);
}

.portrait-wrap {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  border: 1px solid rgba(216, 205, 169, 0.9);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 250, 240, 0.55);
  box-shadow: var(--soft-shadow);
}

.portrait {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(0.88) contrast(1.03);
}

.portrait-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  border: 1px solid rgba(255, 242, 199, 0.36);
  border-radius: 8px;
  padding: 14px;
  color: #fffaf0;
  background: rgba(53, 69, 30, 0.91);
  backdrop-filter: blur(10px);
}

.portrait-note strong,
.portrait-note span {
  display: block;
}

.portrait-note span {
  color: rgba(255, 250, 240, 0.82);
  font-size: 13px;
}

.btn,
.text-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fffaf0;
  background: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  color: var(--brand-dark);
  border-color: var(--line);
  background: var(--accent-soft);
}

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

.btn-danger {
  color: var(--danger);
  border-color: #e3b7aa;
  background: #fff1ed;
}

.btn-ghost {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

.section {
  padding: 64px 0;
}

.muted-section {
  border-block: 1px solid var(--line);
  background: rgba(235, 227, 201, 0.58);
}

.section-head,
.split-layout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1fr);
  align-items: start;
  margin-bottom: 0;
}

.split-layout .lead {
  max-width: 760px;
  border-right: 4px solid var(--brand);
  padding: 6px 18px 6px 0;
  color: #3f4329;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 900;
  border-bottom: 2px solid rgba(198, 154, 43, 0.58);
}

.text-link:hover {
  color: var(--accent-dark);
}

.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.94), rgba(255, 250, 240, 0.78)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.page-hero .lead {
  max-width: 760px;
  margin-top: 12px;
}

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

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

.project-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-clean);
  box-shadow: var(--soft-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 154, 43, 0.7);
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-soft);
}

.project-card-body {
  min-height: 238px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.project-card-top,
.project-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-card-footer {
  align-items: center;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.project-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 4px 8px;
  color: #5f4210;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.project-card.is-featured {
  border-color: rgba(198, 154, 43, 0.78);
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 900;
}

.tag:nth-child(2n) {
  color: #5f4210;
  background: var(--accent-soft);
}

.skill-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.skill-chip {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-clean);
  box-shadow: var(--soft-shadow);
}

.skill-chip strong {
  color: var(--brand-dark);
  line-height: 1.45;
}

.skill-chip span,
.skill-category {
  color: var(--muted);
  font-size: 13px;
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.simple-head {
  margin-bottom: 18px;
}

.skill-groups {
  display: grid;
  gap: 18px;
}

.skill-group,
.social-panel,
.admin-panel,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-clean);
  box-shadow: var(--soft-shadow);
}

.skill-group {
  padding: 18px;
}

.skill-group h3 {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 16px;
}

.skill-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.skill-row {
  display: grid;
  gap: 8px;
}

.skill-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #eee7d3;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.social-panel {
  position: sticky;
  top: 88px;
  padding: 20px;
  border-top: 4px solid var(--accent);
}

.social-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.social-link {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fffdf8;
  transition: border-color 160ms ease, background 160ms ease;
}

.social-link:hover {
  border-color: rgba(93, 111, 47, 0.55);
  background: var(--accent-soft);
}

.social-link strong {
  color: var(--brand-dark);
}

.social-link span {
  color: var(--muted);
  font-size: 13px;
}

.admin-section {
  padding-top: 36px;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.login-panel {
  max-width: 460px;
  margin-inline: auto;
  padding: 24px;
}

.login-panel h2,
.admin-panel h2 {
  font-size: 24px;
}

.login-panel p,
.admin-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffdf8;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field select {
  min-height: 44px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-clean);
  box-shadow: var(--soft-shadow);
}

.stat-card strong {
  color: var(--brand-dark);
  font-size: 30px;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 250, 240, 0.72);
}

.admin-tabs button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  white-space: nowrap;
}

.admin-tabs button.is-active {
  color: #fffaf0;
  background: var(--brand);
}

.admin-tab-panel.is-hidden {
  display: none;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.compact-form {
  margin-top: 0;
}

.admin-panel {
  padding: 20px;
}

.admin-panel.full-width {
  grid-column: 1 / -1;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.manager-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.manager-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf8;
}

.manager-item.rich-item {
  grid-template-columns: 74px 1fr auto;
}

.manager-item-thumb {
  width: 74px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.manager-item strong,
.manager-item span {
  display: block;
}

.manager-item span {
  color: var(--muted);
  font-size: 13px;
}

.manager-actions {
  display: flex;
  gap: 8px;
}

.manager-actions a.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn {
  min-width: 42px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-clean);
  color: var(--brand-dark);
  font-weight: 900;
}

.icon-btn:hover {
  background: var(--brand-soft);
}

.icon-btn.danger {
  color: var(--danger);
  border-color: #e3b7aa;
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.file-picker {
  min-width: 82px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--brand-dark);
  background: var(--accent-soft);
  font-weight: 900;
  cursor: pointer;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.inline-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-weight: 900;
}

.inline-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.design-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.color-field input[type="color"] {
  min-height: 46px;
  padding: 4px;
  cursor: pointer;
}

.theme-preview {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface-clean);
  box-shadow: var(--soft-shadow);
}

.theme-preview p {
  margin: 0;
  color: var(--muted);
}

.design-help {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.78);
  font-size: 14px;
}

.design-help strong {
  color: var(--brand-dark);
}

.loading-state,
.error-state {
  border: 1px dashed #b8ad8d;
  border-radius: 8px;
  padding: 22px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.78);
  text-align: center;
}

.error-state {
  color: var(--danger);
  border-color: #e3b7aa;
  background: #fff1ed;
}

.divider-line {
  height: 1px;
  margin: 28px 0;
  background: var(--line);
}

.page-manager-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fffdf8;
  box-shadow: var(--soft-shadow);
}

.page-manager-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.page-manager-head strong,
.page-manager-head span {
  display: block;
}

.page-manager-head span {
  color: var(--muted);
  font-size: 13px;
}

.manager-element-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.manager-element-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(216, 205, 169, 0.72);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 250, 240, 0.78);
}

.manager-element-item strong,
.manager-element-item span {
  display: block;
}

.manager-element-item span {
  color: var(--muted);
  font-size: 13px;
}

.compact-empty {
  padding: 12px;
  text-align: right;
}

.custom-page-content {
  display: grid;
  gap: 24px;
}

.custom-hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.custom-elements {
  display: grid;
  gap: 18px;
}

.custom-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-clean);
  box-shadow: var(--soft-shadow);
}

.text-block,
.content-card,
.list-block {
  padding: 22px;
}

.custom-block p {
  margin: 12px 0 0;
  color: var(--muted);
}

.image-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: center;
  overflow: hidden;
  padding: 12px;
}

.image-block img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
}

.image-block figcaption {
  padding: 8px 8px 8px 0;
}

.link-block {
  display: grid;
  gap: 4px;
  padding: 18px;
  color: var(--brand-dark);
}

.link-block span {
  color: var(--muted);
  font-size: 14px;
}

.custom-list {
  margin-top: 16px;
}

.empty-state {
  border: 1px dashed #b8ad8d;
  border-radius: 8px;
  padding: 22px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.65);
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-height: 42px;
  display: none;
  align-items: center;
  border-radius: 8px;
  padding: 10px 14px;
  color: #fffaf0;
  background: var(--brand-dark);
  box-shadow: var(--shadow);
}

.toast.is-visible {
  display: inline-flex;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fffaf0;
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner a {
  color: var(--brand-dark);
  font-weight: 900;
}

@media (max-width: 940px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .hero-band {
    min-height: auto;
  }

  .hero-grid,
  .skills-layout,
  .admin-grid,
  .admin-stats,
  .panel-grid,
  .page-manager-head,
  .manager-element-item,
  .image-block,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    min-height: 360px;
  }

  .portrait {
    min-height: 340px;
  }

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

  .skill-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .social-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 24px, 1080px);
  }

  .nav-links {
    width: 100%;
  }

  .hero-band,
  .section {
    padding: 42px 0;
  }

  .page-hero {
    padding: 46px 0 32px;
  }

  .hero-grid {
    gap: 24px;
  }

  .intro-letter {
    padding: 18px;
  }

  .hero-actions,
  .section-head,
  .footer-inner,
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .text-button {
    width: 100%;
  }

  .card-grid,
  .compact-grid,
  .skill-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .project-card-body {
    min-height: auto;
  }

  .manager-item {
    grid-template-columns: 1fr;
  }

  .manager-item.rich-item,
  .upload-row {
    grid-template-columns: 1fr;
  }

  .manager-item-thumb {
    width: 100%;
    height: 150px;
  }

  .manager-actions {
    justify-content: stretch;
  }

  .manager-actions .icon-btn {
    flex: 1;
  }
}
