:root {
  --bg: #f3f7ff;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --sidebar: #0b1730;
  --sidebar-soft: #13264a;
  --ink: #111827;
  --muted: #5f6f85;
  --line: #d8e3f5;
  --green: #2563eb;
  --green-dark: #1d4ed8;
  --blue: #38bdf8;
  --amber: #f59e0b;
  --orange: #f97316;
  --shadow: 0 14px 40px rgba(15, 31, 61, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  font-synthesis: none;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

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

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

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  padding: 22px 18px;
  color: #eaf2ff;
  background: var(--sidebar);
  border-right: 1px solid #20345c;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: #a8b7d8;
  font-size: 12px;
}

.project-mini {
  margin: 0 0 20px;
  padding: 18px;
  background: var(--sidebar-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.project-mini p,
.project-mini h1 {
  margin: 0;
}

.project-mini p {
  color: #9fb0d3;
  font-size: 12px;
  font-weight: 800;
}

.project-mini h1 {
  margin-top: 8px;
  font-size: 21px;
  line-height: 1.24;
  letter-spacing: 0;
}

.project-mini span {
  display: block;
  margin-top: 12px;
  color: #c7d2ea;
  font-size: 13px;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: #c5d3ee;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.side-nav a:hover,
.side-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.side-nav svg,
.button svg,
.notice svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.ghost {
  color: #e8f0ff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: #b7c7e7;
  background: #fbfdff;
}

.workspace {
  min-width: 0;
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workspace-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.proposal-info {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.proposal-info span,
.proposal-info a {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  overflow-wrap: anywhere;
}

.proposal-info b {
  color: var(--ink);
}

.proposal-info a {
  color: var(--muted);
  text-decoration: none;
}

.proposal-info .url-text {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 480px;
}

.header-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}

.header-meta b {
  color: var(--ink);
}

.doc-section {
  display: none;
  scroll-margin-top: 24px;
  margin-top: 14px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.doc-section.active-section {
  display: block;
}

.section-title {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.section-title > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.section-title h3,
.section-title p {
  margin: 0;
}

.section-title h3 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-title p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.proposal-title,
.proposal-section-heading {
  position: relative;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.proposal-title::before,
.proposal-section-heading::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--sidebar-soft);
  border-radius: 999px;
}

.proposal-title {
  margin-bottom: 22px;
  padding-bottom: 4px;
}

.proposal-section-heading {
  margin-top: 48px;
  margin-bottom: 22px;
}

.proposal-document-section {
  display: block;
  min-width: 0;
  width: 100%;
}

.proposal-document-section + .proposal-document-section {
  margin-top: 54px;
}

.proposal-document .proposal-section-heading {
  margin-top: 0;
}

.proposal-title > span,
.proposal-section-heading > span {
  display: block;
  width: auto;
  height: auto;
  color: var(--ink);
  background: transparent;
  border-radius: 0;
  font-family: inherit;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.proposal-title h3,
.proposal-section-heading h4 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.proposal-title p {
  max-width: 760px;
  margin-top: 10px;
  font-size: 16px;
}

.proposal-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 18px;
}

.proposal-map article {
  min-height: 156px;
  padding: 20px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proposal-map span {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.proposal-map strong,
.proposal-map p {
  display: block;
  margin: 0;
}

.proposal-map strong {
  font-size: 18px;
  line-height: 1.3;
}

.proposal-map p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.proposal-intro {
  margin-bottom: 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.proposal-intro .narrative-card {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.proposal-intro .summary-grid {
  padding: 12px 0 0;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.notice p {
  margin: 0;
}

.notice svg {
  color: var(--green);
  margin-top: 2px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
  margin-top: 0;
}

.summary-grid article,
.process-board article,
.portfolio-grid article {
  padding: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-grid strong {
  display: block;
  margin-bottom: 8px;
}

.summary-grid p,
.process-board p,
.portfolio-grid p {
  margin: 0;
  color: var(--muted);
}

.data-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-row {
  display: grid;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
}

.skills-table .table-row {
  grid-template-columns: 1fr 0.7fr 0.6fr 1.8fr;
}

.schedule-table .table-row {
  grid-template-columns: 0.6fr 1.6fr 1.2fr;
}

.table-row span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 13px 14px;
  border-left: 1px solid var(--line);
}

.table-row span:first-child {
  border-left: 0;
}

.table-head {
  color: var(--muted);
  background: #f4f7fc;
  font-size: 13px;
  font-weight: 900;
}

.level {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.level.high {
  color: #1d4ed8;
  background: #dbeafe;
}

.level.mid {
  color: #6b4e0f;
  background: #fff4d6;
}

.experience-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.experience-list .experience-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition:
    box-shadow 0.24s ease,
    transform 0.24s ease;
}

.experience-list .experience-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 5px solid var(--portfolio-accent, var(--green));
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.experience-list .experience-card:hover,
.experience-list .experience-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 18px 38px rgba(15, 31, 61, 0.14);
}

.experience-list .experience-card:hover::after,
.experience-list .experience-card:focus-within::after {
  opacity: 1;
}

.experience-list .experience-card + .experience-card {
  padding-top: 0;
  border-top: 1px solid var(--line);
}

.experience-thumb {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  appearance: none;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(19, 38, 74, 0.92), rgba(37, 99, 235, 0.72)),
    #eef4ff;
  border: 0;
  border-radius: 20px 20px 0 0;
  cursor: pointer;
}

.experience-thumb::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: #fff;
  border: 1px solid #d9e4f5;
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(15, 31, 61, 0.08);
}

.image-thumb {
  background: #eef2f7;
}

.image-thumb::before {
  display: none;
}

.image-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 17, 34, 0) 45%, rgba(8, 17, 34, 0.62));
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.image-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.experience-list .experience-card:hover .image-thumb img,
.experience-list .experience-card:focus-within .image-thumb img {
  transform: scale(1.08);
}

.experience-list .experience-card:hover .image-thumb::after,
.experience-list .experience-card:focus-within .image-thumb::after {
  opacity: 1;
}

.experience-thumb-cta {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: rgba(8, 17, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.experience-list .experience-card:hover .experience-thumb-cta,
.experience-list .experience-card:focus-within .experience-thumb-cta {
  opacity: 1;
  transform: translateY(0);
}

.experience-thumb span {
  position: absolute;
  display: block;
  border-radius: 6px;
  background: #dbe7f8;
}

.admin-thumb span:nth-child(1) {
  inset: 14% auto 14% 13%;
  width: 21%;
  background: #13264a;
}

.admin-thumb span:nth-child(2) {
  top: 15%;
  left: 40%;
  right: 13%;
  height: 10%;
  background: #e6eefb;
}

.admin-thumb span:nth-child(3),
.admin-thumb span:nth-child(4),
.admin-thumb span:nth-child(5) {
  left: 40%;
  right: 13%;
  height: 11%;
}

.admin-thumb span:nth-child(3) {
  top: 33%;
}

.admin-thumb span:nth-child(4) {
  top: 51%;
}

.admin-thumb span:nth-child(5) {
  top: 69%;
}

.report-thumb span:nth-child(1) {
  top: 14%;
  left: 12%;
  right: 12%;
  height: 10%;
  background: #e6eefb;
}

.report-thumb span:nth-child(2),
.report-thumb span:nth-child(3),
.report-thumb span:nth-child(4) {
  bottom: 13%;
  width: 11%;
  background: var(--sidebar-soft);
}

.report-thumb span:nth-child(2) {
  left: 18%;
  height: 25%;
}

.report-thumb span:nth-child(3) {
  left: 40%;
  height: 40%;
}

.report-thumb span:nth-child(4) {
  left: 62%;
  height: 19%;
}

.report-thumb span:nth-child(5) {
  top: 33%;
  right: 12%;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: #dbe7f8;
}

.experience-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 216px;
  padding: 20px;
}

.portfolio-client {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.experience-content h4 {
  margin: 0;
  font-size: 21px;
  line-height: 1.45;
}

.portfolio-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.portfolio-meta div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portfolio-meta dd {
  margin-top: 0;
  color: #32435c;
  font-weight: 800;
}

.portfolio-tags,
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.portfolio-tags span,
.tech-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.portfolio-tags span {
  color: #32435c;
  background: #f4f8ff;
  border: 1px solid #dbe7f8;
}

.tech-chips span {
  color: #475569;
  background: #f1f5f9;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  appearance: none;
  color: var(--sidebar-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.text-link:hover {
  background: #f4f8ff;
}

.text-link svg {
  width: 16px;
  height: 16px;
}

.portfolio-open {
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

.portfolio-modal.open {
  display: flex;
}

.portfolio-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 34, 0.58);
}

.portfolio-dialog {
  position: relative;
  z-index: 1;
  display: block;
  width: min(1320px, calc(100vw - 72px));
  height: min(940px, calc(100vh - 72px));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.modal-close {
  position: sticky;
  top: 18px;
  float: right;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 20px 20px -56px auto;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.portfolio-page {
  min-height: 100%;
  padding: 0;
}

.portfolio-page-main {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 0 0 80px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  overflow: hidden;
}

.portfolio-page-header h3,
.portfolio-page-header p {
  margin: 0;
}

.portfolio-hero-block {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
}

.portfolio-hero-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 17, 34, 0.74), rgba(8, 17, 34, 0.14) 64%),
    linear-gradient(180deg, rgba(8, 17, 34, 0.08), rgba(8, 17, 34, 0.34));
}

.portfolio-hero-block img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.portfolio-hero-block figcaption {
  position: absolute;
  bottom: 70px;
  left: 76px;
  z-index: 1;
  max-width: 650px;
  color: #fff;
}

.portfolio-hero-block figcaption > p:first-child {
  margin-bottom: 22px;
  font-size: 21px;
  font-weight: 900;
}

.portfolio-page-header h3 {
  font-size: 52px;
  line-height: 1.18;
}

.portfolio-hero-block figcaption > p:last-child {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  font-weight: 800;
}

.portfolio-overview-block {
  padding: 72px 84px 0;
}

.portfolio-overview-block h4 {
  margin: 12px 0 0;
  font-size: 28px;
}

.portfolio-overview-block > p:last-child {
  max-width: 920px;
  margin: 34px 0 0;
  color: #32435c;
  font-size: 20px;
  line-height: 1.8;
}

.portfolio-tab-row {
  display: flex;
  gap: 48px;
  align-items: center;
  margin: 58px 84px 0;
  border-bottom: 1px solid #d7dfec;
}

.portfolio-tab-row span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  color: #5f6f85;
  font-size: 18px;
  font-weight: 900;
}

.portfolio-tab-row .active {
  color: var(--ink);
}

.portfolio-tab-row .active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--ink);
}

.portfolio-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 54px 84px 0;
}

.portfolio-summary-grid div {
  padding: 22px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portfolio-page-section {
  margin: 72px 84px 0;
  padding-top: 42px;
  border-top: 1px solid #e1eaf8;
}

.portfolio-page-section h4 {
  margin: 0 0 28px;
  font-size: 26px;
}

.portfolio-check-list {
  display: grid;
  gap: 15px;
  margin: 0;
  padding-left: 24px;
  color: #32435c;
  font-size: 19px;
  line-height: 1.75;
}

.portfolio-check-list li::marker {
  color: var(--green-dark);
  font-weight: 900;
}

.portfolio-gallery {
  display: grid;
  gap: 36px;
}

.portfolio-gallery-item {
  margin: 0;
}

.portfolio-gallery-item img {
  display: block;
  width: min(920px, 100%);
  max-height: 760px;
  object-fit: contain;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.portfolio-gallery-item figcaption {
  margin-top: 14px;
  color: #5f6f85;
  font-size: 15px;
  font-weight: 900;
}

body.modal-open {
  overflow: hidden;
}

.proposal-pd-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.proposal-pd-nav svg {
  width: 17px;
  height: 17px;
}

.proposal-pd-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
}

.proposal-pd-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proposal-pd-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 17, 34, 0.76), rgba(8, 17, 34, 0.18) 64%),
    linear-gradient(180deg, rgba(8, 17, 34, 0.08), rgba(8, 17, 34, 0.38));
}

.proposal-pd-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(100% - 96px, 1280px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 120px 0 104px;
}

.proposal-pd-hero-content p,
.proposal-pd-hero-content h1,
.proposal-pd-hero-content strong {
  margin: 0;
}

.proposal-pd-hero-content p {
  font-size: 25px;
  font-weight: 900;
}

.proposal-pd-hero-content h1 {
  max-width: 720px;
  margin-top: 24px;
  font-size: 64px;
  line-height: 1.14;
}

.proposal-pd-hero-content strong {
  max-width: 760px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 24px;
  line-height: 1.55;
}

.proposal-pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.proposal-pd-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.proposal-pd-section {
  padding: 92px 0;
}

.proposal-pd-container {
  width: min(100% - 96px, 1180px);
  margin: 0 auto;
}

.proposal-pd-heading p {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.proposal-pd-heading h2 {
  margin: 0;
  font-size: 34px;
}

.proposal-pd-heading-subtitle {
  display: block;
  max-width: 760px;
  margin-top: 12px;
  color: #60728b;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.proposal-pd-overview-list {
  margin-top: 34px;
  border-top: 1px solid #d8e3f5;
}

.proposal-pd-overview-list article {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding: 34px 0;
  border-bottom: 1px solid #d8e3f5;
}

.proposal-pd-overview-list article.is-empty div {
  min-height: 24px;
}

.proposal-pd-overview-list h3,
.proposal-pd-overview-list p {
  margin: 0;
}

.proposal-pd-overview-list h3 {
  font-size: 20px;
}

.proposal-pd-overview-list div {
  display: grid;
  gap: 12px;
}

.proposal-pd-overview-list p {
  color: #475569;
  font-size: 20px;
  line-height: 1.7;
}

.portfolio-tech-stack {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-role-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-tech-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  color: #334155;
  background: #eef2f7;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
}

.portfolio-role-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 900;
}

.portfolio-outcome-list {
  display: grid;
  gap: 12px;
}

.portfolio-outcome-item {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  background: #f8fbff;
  border: 1px solid #d8e3f5;
  border-left: 4px solid #2259c9;
  border-radius: 8px;
}

.portfolio-outcome-item strong {
  color: #15233b;
  font-size: 18px;
  line-height: 1.45;
}

.portfolio-outcome-item blockquote {
  margin: 0;
  color: #334155;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
}

.portfolio-outcome-item.is-quote {
  background: #f4f8ff;
  border-left-color: #64748b;
}

.portfolio-outcome-item ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portfolio-outcome-item li {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: #475569;
  font-size: 16px;
  line-height: 1.55;
}

.portfolio-outcome-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  background: #2259c9;
  border-radius: 50%;
}

.proposal-pd-gallery {
  display: grid;
  gap: 52px;
  margin-top: 40px;
}

.proposal-pd-gallery.is-mobile-gallery {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-items: start;
  gap: 64px 28px;
}

.proposal-pd-gallery.is-mobile-gallery .proposal-pd-screen {
  align-self: start;
}

.proposal-pd-gallery.is-mobile-gallery .proposal-pd-screen img {
  width: 100%;
  height: auto;
  max-height: none;
  object-position: top center;
}

.proposal-pd-gallery.is-mobile-gallery .proposal-pd-screen figcaption {
  gap: 5px;
  margin-top: 0;
  padding: 9px 12px;
}

.proposal-pd-gallery.is-mobile-gallery .proposal-pd-screen figcaption span,
.proposal-pd-gallery.is-mobile-gallery .proposal-pd-screen figcaption strong {
  font-size: 13px;
  line-height: 1.45;
}

.proposal-pd-gallery.is-mobile-gallery .proposal-pd-screen figcaption p {
  font-size: 14px;
  line-height: 1.5;
}

.portfolio-content-blocks {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin-top: 22px;
}

.portfolio-content-blocks p,
.portfolio-content-blocks ul,
.portfolio-content-blocks blockquote,
.portfolio-content-blocks h2,
.portfolio-content-blocks h3,
.portfolio-content-blocks h4,
.portfolio-content-blocks figure {
  margin: 0;
}

.portfolio-content-heading {
  color: #14213d;
  line-height: 1.24;
}

.portfolio-content-heading.is-level-1 {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0;
}

.portfolio-content-heading.is-level-2 {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.portfolio-content-heading.is-level-3 {
  margin-top: 8px;
  color: #25344f;
  font-size: 20px;
}

.portfolio-content-blocks p,
.portfolio-content-blocks li {
  color: #475569;
  font-size: 18px;
  line-height: 1.72;
}

.portfolio-content-blocks ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.portfolio-content-blocks blockquote {
  padding: 14px 0 14px 18px;
  color: #25344f;
  border-left: 3px solid var(--portfolio-accent, var(--green));
  font-size: 18px;
  font-weight: 800;
  line-height: 1.65;
}

.portfolio-content-image {
  display: grid;
  gap: 10px;
  margin: 8px 0;
}

.portfolio-content-image img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #f8fbff;
  border: 1px solid #d8e3f5;
  border-radius: 8px;
}

.portfolio-content-image figcaption {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.portfolio-content-divider {
  width: 100%;
  height: 1px;
  border: 0;
  background: #d8e3f5;
}

.portfolio-live-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 22px;
  padding: 28px 0;
  border-top: 1px solid #d8e3f5;
  border-bottom: 1px solid #d8e3f5;
}

.portfolio-live-service p {
  margin: 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.65;
}

.portfolio-live-service a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  background: #2259c9;
  font-size: 14px;
  font-weight: 900;
}

.portfolio-live-service svg {
  width: 17px;
  height: 17px;
}

.proposal-pd-screen {
  display: grid;
  justify-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

.proposal-pd-screen img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 900px;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 12px 18px rgba(15, 31, 61, 0.14));
  outline: 0;
}

.proposal-pd-screen figcaption {
  display: grid;
  box-sizing: border-box;
  gap: 0;
  width: 100%;
  margin-top: 0;
  padding: 10px 14px 11px;
  color: #667085;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-align: left;
  justify-items: start;
}

.proposal-pd-screen figcaption span,
.proposal-pd-screen figcaption strong,
.proposal-pd-screen figcaption p {
  margin: 0;
}

.proposal-pd-screen figcaption span,
.proposal-pd-screen figcaption strong {
  color: #5b6675;
  font-size: 14px;
}

.proposal-pd-screen figcaption p {
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.proposal-pd-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: #0b1730;
}

.proposal-pd-nav a {
  flex: 1;
  justify-content: center;
  min-height: 98px;
  padding: 0 28px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.proposal-pd-nav a:last-child {
  border-right: 0;
}

.portfolio-detail-section {
  overflow: hidden;
  padding: 0;
  border-radius: 0;
}

.inline-portfolio-detail {
  background: #fff;
}

.inline-portfolio-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  color: var(--sidebar-soft);
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 900;
}

.inline-portfolio-back svg {
  width: 17px;
  height: 17px;
}

.inline-portfolio-detail .proposal-pd-hero {
  min-height: 620px;
  background-image: var(--portfolio-hero-background);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.inline-portfolio-detail .proposal-pd-hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 17, 34, 0.58), rgba(8, 17, 34, 0.22) 38%, rgba(8, 17, 34, 0.02) 72%),
    linear-gradient(180deg, rgba(8, 17, 34, 0.02), rgba(8, 17, 34, 0.22));
}

.proposal-pd-hero-visual {
  display: none;
}

.inline-portfolio-detail .proposal-pd-hero-visual {
  position: absolute;
  right: clamp(36px, 5vw, 72px);
  top: 50%;
  z-index: 2;
  display: block;
  width: min(42%, 560px);
  pointer-events: none;
  transform: translateY(-50%);
}

.inline-portfolio-detail .proposal-pd-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.28));
}

.inline-portfolio-detail .proposal-pd-hero-content {
  z-index: 3;
  justify-content: center;
  width: min(100% - 72px, 980px);
  min-height: 620px;
  padding: 76px 0 70px;
}

.inline-portfolio-detail .proposal-pd-hero-content h1 {
  margin-top: 0;
  max-width: 390px;
  font-size: 46px;
  line-height: 1.12;
  word-break: keep-all;
  overflow-wrap: normal;
}

.inline-portfolio-detail .proposal-pd-hero-content strong {
  max-width: 390px;
  margin-top: 20px;
  font-size: 21px;
  line-height: 1.42;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: normal;
}

.inline-portfolio-detail .proposal-pd-tags {
  gap: 8px;
  margin-top: 24px;
}

.inline-portfolio-detail .proposal-pd-tags span {
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.inline-portfolio-detail .proposal-pd-section {
  padding: 44px 0;
}

.inline-portfolio-detail .proposal-pd-container {
  width: min(100% - 72px, 980px);
}

.inline-portfolio-detail .proposal-pd-overview-list {
  margin-top: 18px;
}

.inline-portfolio-detail .proposal-pd-overview-list article {
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  padding: 16px 0;
}

.inline-portfolio-detail .proposal-pd-overview-list article.is-empty div {
  min-height: 20px;
}

.inline-portfolio-detail .proposal-pd-overview-list h3 {
  font-size: 17px;
}

.inline-portfolio-detail .proposal-pd-overview-list div {
  gap: 7px;
}

.inline-portfolio-detail .proposal-pd-overview-list p {
  font-size: 15.5px;
  line-height: 1.58;
}

.inline-portfolio-detail .portfolio-tech-stack span {
  min-height: 28px;
  padding: 0 10px;
  font-size: 13px;
}

.inline-portfolio-detail .portfolio-role-list span {
  min-height: 28px;
  padding: 0 10px;
  font-size: 13px;
}

.inline-portfolio-detail .portfolio-outcome-item {
  gap: 8px;
  padding: 13px 15px;
}

.inline-portfolio-detail .portfolio-outcome-item strong {
  font-size: 15.5px;
}

.inline-portfolio-detail .portfolio-outcome-item blockquote {
  font-size: 15px;
}

.inline-portfolio-detail .portfolio-outcome-item li {
  font-size: 14.5px;
}

dl {
  margin: 0;
}

.report-columns {
  display: grid;
  gap: 10px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

dd {
  margin: 5px 0 0;
}

.process-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.process-board span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.process-board h4 {
  margin: 14px 0 8px;
  font-size: 18px;
}

.process-board b {
  display: block;
  margin-top: 14px;
  font-size: 13px;
}

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

.portfolio-shot {
  display: grid;
  gap: 8px;
  min-height: 150px;
  margin-bottom: 14px;
  padding: 16px;
  background: #eef4ff;
  border: 1px solid #d7e4fb;
  border-radius: 8px;
}

.portfolio-shot span {
  display: block;
  border-radius: 7px;
  background: #fff;
}

.admin-shot {
  grid-template-columns: 0.6fr 1fr;
}

.admin-shot span:first-child {
  grid-row: span 4;
  background: #142543;
}

.report-shot {
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
}

.report-shot span {
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.mobile-shot {
  grid-template-columns: 1fr;
  width: 128px;
  margin-inline: auto;
  padding: 20px;
  background: #17213a;
  border: 8px solid #0b1020;
  border-radius: 26px;
}

.mobile-shot span {
  min-height: 28px;
  background: rgba(255, 255, 255, 0.18);
}

.portfolio-grid h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.portfolio-grid ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #40516d;
}

.portfolio-grid li {
  margin: 6px 0;
}

.proposal-document {
  display: grid;
  gap: 0;
  margin-top: 32px;
}

.proposal-block {
  position: relative;
  overflow: visible;
  min-width: 0;
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.proposal-block:last-child {
  margin-bottom: 0;
}

.proposal-block::before {
  content: "";
  display: none;
}

.block-heading {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px 28px;
  margin-bottom: 0;
  background: #f4f8ff;
  border-bottom: 1px solid var(--line);
}

.block-heading > span {
  display: inline-grid;
  place-items: center;
  min-width: auto;
  height: auto;
  margin-top: 0;
  color: #2563eb;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
}

.block-heading h4,
.block-heading p,
.narrative-card p,
.proposal-keypoints strong,
.proposal-keypoints p,
.proposal-info-list small,
.proposal-info-list strong,
.proposal-info-list p,
.overview-matrix p,
.stack-grid h5,
.stack-grid p,
.scope-cards h5,
.scope-cards p,
.risk-list h5,
.risk-list p,
.milestone-list p,
.numbered-detail-list h5,
.numbered-detail-list p,
.question-detail-list h5,
.question-detail-list p,
.question-choice-group b,
.question-list p,
.deliverable-grid p {
  margin: 0;
}

.block-heading h4 {
  font-size: 26px;
  line-height: 1.25;
}

.block-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.narrative-card {
  margin: 22px 22px 0;
  padding: 18px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proposal-intro .narrative-card {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.narrative-card p {
  color: #32435c;
}

.proposal-overview-copy {
  display: grid;
  gap: 12px;
}

.proposal-overview-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
}

.proposal-development-block {
  display: grid;
  gap: 30px;
}

.proposal-subsection {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.proposal-subsection h5 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.proposal-subsection p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.proposal-subsection p + p {
  margin-top: 2px;
}

.architecture-figure {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  margin: 4px 0 0;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.architecture-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  background: #fff;
}

.architecture-figure figcaption {
  padding: 11px 14px;
  color: #40516d;
  background: #f4f8ff;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.proposal-table-shell {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proposal-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
}

.proposal-stack-table .proposal-table {
  min-width: 860px;
}

.proposal-schedule-table .proposal-table {
  min-width: 760px;
}

.proposal-table th,
.proposal-table td {
  min-width: 0;
  padding: 13px 14px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.proposal-table th:first-child,
.proposal-table td:first-child {
  border-left: 0;
}

.proposal-table thead th {
  border-top: 0;
  color: #40516d;
  background: #f4f8ff;
  font-size: 13px;
  font-weight: 900;
}

.proposal-table tbody td {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.proposal-table tbody td:nth-child(1),
.proposal-table tbody td:nth-child(2) {
  color: var(--ink);
  font-weight: 800;
}

.proposal-stack-table th:nth-child(1),
.proposal-stack-table td:nth-child(1) {
  width: 150px;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.proposal-stack-table th:nth-child(2),
.proposal-stack-table td:nth-child(2) {
  width: 220px;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.proposal-schedule-table th:nth-child(1),
.proposal-schedule-table td:nth-child(1) {
  width: 140px;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.proposal-keypoints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-top: 18px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proposal-keypoints article {
  min-width: 0;
  padding: 16px 18px;
  border-left: 1px solid var(--line);
}

.proposal-keypoints article:first-child {
  border-left: 0;
}

.proposal-keypoints strong {
  display: block;
  margin-bottom: 8px;
  color: #315d9e;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.proposal-keypoints p {
  color: #26364d;
  font-size: 14px;
  line-height: 1.58;
}

.proposal-info-list {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proposal-info-list article {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.proposal-info-list article:first-child {
  border-top: 0;
}

.proposal-info-list.is-three-part article {
  grid-template-columns: minmax(104px, 0.25fr) minmax(142px, 0.32fr) minmax(0, 1fr);
}

.proposal-info-list small {
  display: block;
  color: #315d9e;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.proposal-info-list strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.proposal-info-list p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.overview-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 22px;
}

.narrative-card + .summary-grid,
.narrative-card + .overview-matrix {
  padding-top: 12px;
}

.proposal-block > .overview-matrix,
.proposal-block > .proposal-info-list,
.proposal-block > .stack-grid,
.proposal-block > .scope-cards,
.proposal-block > .milestone-list,
.proposal-block > .risk-list,
.proposal-block > .risk-toggle-list,
.proposal-block > .numbered-detail-list,
.proposal-block > .question-detail-list,
.proposal-block > .question-list,
.proposal-block > .deliverable-grid {
  padding: 0;
}

.overview-matrix article,
.stack-grid article,
.scope-cards article,
.risk-list article,
.question-list article,
.deliverable-grid article {
  padding: 16px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.overview-matrix b {
  display: block;
  margin-bottom: 7px;
}

.overview-matrix p,
.stack-grid p,
.scope-cards p,
.risk-list p,
.milestone-list p,
.numbered-detail-list p,
.question-detail-list p,
.question-list p,
.deliverable-grid p {
  color: var(--muted);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 22px;
}

.stack-grid small {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.stack-grid h5,
.scope-cards h5,
.risk-list h5,
.numbered-detail-list h5,
.question-detail-list h5,
.deliverable-grid h5 {
  font-size: 16px;
  line-height: 1.3;
}

.stack-grid p,
.scope-cards p,
.risk-list p,
.numbered-detail-list p,
.question-detail-list p,
.question-list p,
.deliverable-grid p {
  margin-top: 8px;
  font-size: 14px;
}

.numbered-detail-list p + p,
.question-detail-list p + p {
  margin-top: 8px;
}

.scope-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 22px;
}

.scope-cards svg {
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
  color: var(--ink);
}

.schedule-board {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.schedule-head,
.schedule-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) repeat(8, minmax(42px, 1fr));
}

.schedule-head {
  min-height: 48px;
  background: #f4f8ff;
  border-bottom: 1px solid var(--line);
}

.schedule-head span,
.schedule-head b {
  display: grid;
  place-items: center;
  min-width: 0;
  color: #40516d;
  border-left: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
}

.schedule-head span {
  justify-content: start;
  padding-left: 16px;
  border-left: 0;
}

.schedule-row {
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-task {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.schedule-task strong,
.schedule-task p {
  margin: 0;
}

.schedule-task strong {
  display: block;
  line-height: 1.35;
}

.schedule-task p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.schedule-track {
  grid-column: span 8;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
  padding: 0 10px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(12.5% - 1px),
      var(--line) calc(12.5% - 1px),
      var(--line) 12.5%
    );
}

.schedule-bar {
  grid-column: var(--start) / span var(--span);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  color: #fff;
  background: var(--sidebar-soft);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.milestone-list {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.milestone-list div {
  display: grid;
  grid-template-columns: 90px 180px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.milestone-list span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #fff;
  background: var(--sidebar-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.milestone-list b {
  line-height: 1.35;
}

.risk-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 22px;
}

.risk-list article {
  border-left: 1px solid var(--line);
}

.question-list,
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 22px;
}

.question-list b {
  display: block;
}

.numbered-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px;
  list-style: none;
}

.numbered-detail-list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.numbered-detail-list li > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #315d9e;
  background: #edf5ff;
  border: 1px solid #d8e8ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.numbered-detail-list h5 {
  margin: 0;
}

.risk-toggle-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 22px;
  list-style: none;
}

.risk-toggle-list li {
  margin: 0;
}

.risk-toggle-list details {
  overflow: hidden;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.risk-toggle-list summary {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.risk-toggle-list summary::-webkit-details-marker {
  display: none;
}

.risk-toggle-list summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #315d9e;
  background: #edf5ff;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.risk-toggle-list details[open] summary::after {
  content: "-";
}

.risk-toggle-list summary > span {
  width: 8px;
  height: 8px;
  background: #315d9e;
  border-radius: 999px;
}

.risk-toggle-list summary strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.risk-toggle-body {
  padding: 0 18px 18px 40px;
}

.risk-toggle-body b,
.question-choice-group b {
  display: block;
  color: #315d9e;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.risk-toggle-body p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.risk-toggle-body p + p {
  margin-top: 8px;
}

.risk-toggle-body b + p + b,
.risk-toggle-body p + b {
  margin-top: 14px;
}

.question-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px;
  list-style: none;
}

.question-detail-list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.question-detail-list li > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #315d9e;
  background: #edf5ff;
  border: 1px solid #d8e8ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.question-choice-group {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.question-choice-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.question-choice-group em {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  color: #315d9e;
  background: #edf5ff;
  border: 1px solid #d8e8ff;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.proposal-deliverable-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px 24px;
  list-style: none;
}

.proposal-deliverable-list li {
  position: relative;
  display: grid;
  gap: 5px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.proposal-deliverable-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  background: #315d9e;
  border-radius: 999px;
}

.proposal-deliverable-list strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.proposal-deliverable-list span {
  color: var(--muted);
}

.deliverable-grid h5 {
  margin: 0;
}

.report-download-actions {
  display: grid;
  grid-template-columns: minmax(180px, 320px);
  gap: 12px;
}

.report-download-actions .button {
  min-height: 58px;
  font-size: 16px;
}

.report-download-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.report-download-panel strong,
.report-download-panel p {
  margin: 0;
}

.report-download-panel p {
  margin-top: 5px;
  color: var(--muted);
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.download-meta div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #d7e7ff;
  border-radius: 8px;
}

.download-meta dt {
  color: var(--green-dark);
}

.download-meta dd {
  margin: 0;
  color: #27364c;
  font-size: 13px;
  font-weight: 800;
}

.report-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.report-flow article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-flow span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--sidebar-soft);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.report-flow strong,
.report-flow p {
  margin: 0;
}

.report-flow p {
  color: var(--muted);
  font-size: 14px;
}

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

.report-columns dl {
  display: grid;
  gap: 12px;
}

.report-columns div,
.report-footer {
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-footer {
  margin-top: 12px;
}

.report-footer strong {
  display: block;
  margin-bottom: 5px;
}

.dynamic-schedule-board {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dynamic-schedule-head,
.dynamic-schedule-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 110px minmax(0, 1.5fr);
}

.dynamic-schedule-head {
  min-height: 44px;
  color: #40516d;
  background: #f4f8ff;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
}

.dynamic-schedule-head span,
.dynamic-schedule-row strong,
.dynamic-schedule-row span,
.dynamic-schedule-row p {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border-left: 1px solid var(--line);
}

.dynamic-schedule-head span:first-child,
.dynamic-schedule-row strong {
  border-left: 0;
}

.dynamic-schedule-row {
  border-bottom: 1px solid var(--line);
}

.dynamic-schedule-row:last-child {
  border-bottom: 0;
}

.dynamic-schedule-row span {
  justify-content: center;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 900;
}

.dynamic-schedule-row p {
  color: var(--muted);
  font-size: 14px;
}

.stack-grid small {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.admin-section {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.admin-workspace {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.admin-workspace.is-locked {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  padding: 0;
}

.admin-workspace.is-locked .admin-section {
  min-height: 100svh;
}

.admin-login-screen[hidden],
.admin-shell[hidden] {
  display: none !important;
}

.admin-login-screen {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  background: #07111f;
}

.admin-login-mark {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 100%;
  padding: clamp(28px, 6vw, 72px);
  color: #f8fbff;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-login-mark span {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.admin-login-mark strong {
  max-width: 320px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.95;
}

.admin-login-box {
  align-self: center;
  justify-self: center;
  display: grid;
  gap: 22px;
  width: min(420px, calc(100% - 40px));
  padding: clamp(24px, 5vw, 42px);
  color: #f8fbff;
  background: #0d1b2e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.admin-login-box h1,
.admin-login-box p {
  margin: 0;
}

.admin-login-box h1 {
  font-size: 30px;
  line-height: 1.15;
}

.admin-login-box p:not(.eyebrow) {
  margin-top: 8px;
  color: #aebfd3;
  line-height: 1.6;
}

.admin-login-box .admin-field span {
  color: #dce8f6;
}

.admin-login-box input {
  color: #f8fbff;
  background: #07111f;
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-login-box .button {
  width: 100%;
  justify-content: center;
}

.admin-shell {
  display: block;
  min-height: 100vh;
}

.admin-side-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 288px;
  height: 100vh;
  min-height: 0;
  padding: 22px 18px;
  color: #eaf2ff;
  background: var(--sidebar);
  border-right: 1px solid #20345c;
  overflow: hidden;
}

.admin-project-mini {
  margin: 0 0 20px;
}

.admin-main-panel {
  min-width: 0;
  margin-left: 288px;
  padding: 28px 24px 80px;
}

.admin-side-panel .admin-side-logout {
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  padding: 0 12px;
  color: #c5d3ee;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.admin-side-panel .admin-side-logout:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: transparent;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-hero h1,
.admin-hero h3,
.admin-hero p,
.admin-panel h2,
.admin-panel h4,
.admin-panel p {
  margin: 0;
}

.admin-hero h1,
.admin-hero h3 {
  font-size: 26px;
  line-height: 1.2;
}

.admin-hero p {
  max-width: 740px;
  margin-top: 8px;
  color: var(--muted);
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-tabs {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 0;
}

.admin-tabs button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: #c5d3ee;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.admin-tabs button.active,
.admin-tabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.admin-tabs svg,
.admin-side-logout svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.admin-view[hidden] {
  display: none !important;
}

.admin-view {
  display: grid;
  gap: 16px;
}

.admin-settings-view {
  width: 100%;
}

.admin-settings-view .admin-layout,
.admin-settings-view .admin-panel {
  width: 100%;
  max-width: none;
}

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

.admin-single-column {
  grid-template-columns: minmax(0, 1fr);
}

.admin-form,
.admin-aside {
  display: grid;
  gap: 16px;
}

.portfolio-editor-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.portfolio-editor-preview-shell {
  position: sticky;
  top: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  max-height: calc(100vh - 48px);
}

.portfolio-editor-preview-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.portfolio-editor-preview-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portfolio-editor-preview-title strong {
  color: var(--ink);
  font-size: 15px;
}

.portfolio-editor-preview-frame {
  min-height: 620px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portfolio-editor-preview-frame .inline-portfolio-detail {
  background: #fff;
}

.portfolio-editor-preview-frame .inline-portfolio-back {
  position: sticky;
  top: 0;
}

.portfolio-editor-preview-frame .inline-portfolio-detail .proposal-pd-hero {
  min-height: 520px;
}

.portfolio-editor-preview-frame .inline-portfolio-detail .proposal-pd-hero-content {
  min-height: 520px;
}

.portfolio-editor-preview-frame .proposal-pd-nav {
  margin-top: 0;
}

.portfolio-editor-form .admin-field-grid {
  grid-template-columns: 1fr;
}

.portfolio-media-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.portfolio-media-list.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.portfolio-media-list + .admin-readonly-grid {
  margin-top: 14px;
}

.portfolio-media-list .admin-image-field {
  padding: 14px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-image-field-head {
  display: grid;
  gap: 3px;
}

.admin-image-field-head span {
  color: #34445c;
  font-size: 13px;
  font-weight: 900;
}

.admin-image-field-head small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-image-dropzone {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 118px;
  padding: 10px;
  color: #25344f;
  text-align: left;
  background: #f8fbff;
  border: 1px dashed #b9c9df;
  border-radius: 8px;
  cursor: pointer;
}

.admin-image-dropzone.is-gallery {
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 132px;
}

.admin-image-dropzone:hover {
  background: #f4f8ff;
  border-color: #8fb7ff;
}

.admin-image-dropzone strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.admin-image-dropzone small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-image-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  width: fit-content;
  padding: 7px 10px;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-image-remove:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

.admin-image-remove svg {
  width: 14px;
  height: 14px;
}

.portfolio-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.portfolio-editor-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  color: #25344f;
  background: #f4f8ff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.portfolio-editor-toolbar button:hover {
  border-color: #9db8e8;
  background: #eef5ff;
}

.admin-hidden-file-input {
  display: none;
}

.portfolio-tag-suggestions {
  display: none;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.admin-field:focus-within .portfolio-tag-suggestions {
  display: flex;
}

.portfolio-tag-suggestions button {
  min-height: 28px;
  padding: 0 9px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.portfolio-tag-suggestions button:hover {
  background: #dbeafe;
}

.portfolio-gallery-toolbar,
.portfolio-gallery-subtoolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.portfolio-gallery-toolbar button,
.portfolio-gallery-subtoolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.portfolio-gallery-toolbar button:hover,
.portfolio-gallery-subtoolbar button:hover {
  background: #dbeafe;
}

.portfolio-gallery-subtoolbar {
  margin-top: 2px;
}

.portfolio-gallery-group-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.portfolio-gallery-group {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portfolio-gallery-group-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
}

.portfolio-gallery-group[data-gallery-collapsed="true"] .portfolio-gallery-group-header {
  border-bottom: 0;
}

.portfolio-gallery-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.portfolio-gallery-group-title strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.portfolio-gallery-group-title small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.portfolio-gallery-group-index {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: #315d9e;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.portfolio-gallery-group-body {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.portfolio-gallery-group[data-gallery-collapsed="true"] .portfolio-gallery-group-body {
  display: none;
}

.portfolio-gallery-list {
  display: grid;
  gap: 12px;
}

.portfolio-gallery-card {
  display: grid;
  grid-template-columns: 34px minmax(180px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portfolio-gallery-card-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: #315d9e;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.portfolio-gallery-image {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.portfolio-gallery-fields {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.portfolio-gallery-fields .admin-field {
  margin-top: 0;
}

.admin-panel {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-page-toolbar h2 {
  font-size: 18px;
  line-height: 1.3;
}

.admin-panel-title {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-fold > .admin-panel-title {
  cursor: pointer;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  list-style: none;
}

.admin-fold > .admin-panel-title::-webkit-details-marker {
  display: none;
}

.admin-fold > .admin-panel-title::after {
  content: "";
  align-self: center;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.admin-fold[open] > .admin-panel-title::after {
  transform: rotate(225deg);
}

.admin-fold:not([open]) > .admin-panel-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-panel-title.is-plain {
  grid-template-columns: minmax(0, 1fr);
}

.admin-panel-title > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--sidebar-soft);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.admin-panel-title h2,
.admin-panel-title h4 {
  font-size: 18px;
  line-height: 1.3;
}

.admin-panel-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.admin-panel-title b {
  color: var(--ink);
}

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

.admin-field,
.admin-field-grid label,
.admin-image-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-field + .admin-field,
.admin-field-grid + .admin-field,
.admin-field + .admin-field-grid,
.admin-image-field + .admin-field {
  margin-top: 14px;
}

.admin-field span,
.admin-field-grid label > span,
.admin-image-field > span,
.admin-field-head > span {
  color: #34445c;
  font-size: 13px;
  font-weight: 900;
}

.admin-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.admin-field-head .button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
  white-space: nowrap;
}

.admin-field small,
.admin-field-grid small,
.admin-image-field small {
  color: #6b778a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-field input,
.admin-field textarea,
.admin-field select,
.admin-field-grid input,
.admin-field-grid select,
.admin-field-grid textarea,
.admin-image-field input,
.admin-portfolio-option input[type="number"] {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.admin-field input,
.admin-field select,
.admin-field-grid input,
.admin-field-grid select,
.admin-image-field input,
.admin-portfolio-option input[type="number"] {
  height: 42px;
  padding: 0 12px;
}

.admin-field textarea,
.admin-field-grid textarea {
  overflow: hidden;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.55;
}

.admin-imagegen-prompt-field textarea {
  min-height: 172px;
  font-family: "Pretendard", system-ui, sans-serif;
  color: #42516a;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus,
.admin-field-grid input:focus,
.admin-field-grid select:focus,
.admin-field-grid textarea:focus,
.admin-image-field input:focus,
.admin-portfolio-option input[type="number"]:focus {
  background: #fff;
  border-color: #93b4ef;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.admin-readonly-grid {
  margin-bottom: 14px;
}

.admin-readonly-grid input:disabled {
  color: #64748b;
  background: #f1f5f9;
  border-color: #d8e3f5;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.admin-login-box .admin-field input {
  color: #f8fbff;
  background: #07111f;
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-login-box .admin-field input:focus {
  background: #07111f;
  border-color: #8fb7ff;
  box-shadow: 0 0 0 3px rgba(143, 183, 255, 0.18);
}

.admin-image-preview {
  display: grid;
  place-items: center;
  min-height: 92px;
  overflow: hidden;
  background: #eef5ff;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
}

.admin-image-field input[type="file"] {
  height: auto;
  padding: 9px 12px;
  background: #fff;
}

.admin-image-preview img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.admin-image-preview small {
  display: block;
  margin: 0;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  overflow-wrap: anywhere;
}

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

.admin-settings-block,
.admin-settings-fold {
  display: grid;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-settings-block.is-disabled {
  background: #f8fafc;
}

.admin-settings-fold.is-disabled {
  background: #f8fafc;
}

.admin-settings-block.is-disabled input,
.admin-settings-fold.is-disabled input {
  color: #64748b;
  background: #eef2f7;
  cursor: not-allowed;
}

.admin-settings-block-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-settings-block-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.admin-settings-block-head p,
.admin-settings-fold-body p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-settings-fold {
  padding: 0;
}

.admin-settings-fold summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.admin-settings-fold summary::-webkit-details-marker {
  display: none;
}

.admin-settings-fold summary::marker {
  content: "";
}

.admin-settings-fold summary::before {
  content: "›";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--sidebar);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 20px;
  transition: transform 160ms ease;
}

.admin-settings-fold[open] summary::before {
  transform: rotate(90deg);
}

.admin-settings-summary-copy {
  display: flex;
  flex: 1;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.admin-settings-summary-title {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 20px;
}

.admin-settings-fold summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: right;
}

.admin-settings-fold-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.admin-log-filters {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
}

.admin-log-filters label {
  display: grid;
  gap: 6px;
}

.admin-log-filters span {
  color: var(--sidebar);
  font-size: 12px;
  font-weight: 900;
}

.admin-log-message {
  max-width: 360px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-ai-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  background: #f4f8ff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-ai-actions p {
  color: var(--muted);
  font-size: 13px;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 34, 0.58);
}

.admin-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.admin-dialog-head,
.admin-dialog-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.admin-dialog-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.admin-dialog .modal-close {
  position: static;
  float: none;
  margin: 0;
}

.admin-dialog-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

.admin-optional-field {
  padding: 14px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-optional-field > span {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-optional-field input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.admin-file-drop {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 18px;
  text-align: center;
  background: #f4f8ff;
  border: 1px dashed #9db8e8;
  border-radius: 8px;
  cursor: pointer;
}

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

.admin-file-drop svg {
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  color: var(--green);
}

.admin-file-drop strong,
.admin-file-drop small {
  display: block;
}

.admin-file-drop strong {
  font-size: 14px;
}

.admin-file-drop small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.admin-attachment-list {
  display: grid;
  gap: 8px;
}

.admin-file-drop + .admin-attachment-list {
  margin-top: 10px;
}

.admin-attachment-list p,
.admin-attachment-list article {
  margin: 0;
}

.admin-attachment-list p {
  color: var(--muted);
  font-size: 13px;
}

.admin-attachment-list article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-attachment-list svg {
  width: 18px;
  height: 18px;
  color: var(--green-dark);
}

.admin-attachment-list span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-attachment-list b,
.admin-attachment-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-attachment-list b {
  font-size: 13px;
}

.admin-attachment-list small {
  color: var(--muted);
  font-size: 12px;
}

.admin-attachment-list button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(11, 23, 48, 0.08);
  color: var(--sidebar);
  font-weight: 800;
  cursor: pointer;
}

.admin-attachment-list button + button {
  margin-left: 8px;
}

.codex-device-auth {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  background: #eef7f0;
  border: 1px solid #cce6d3;
  border-radius: 8px;
}

.codex-device-auth.is-error {
  background: #fff3f3;
  border-color: #f3b7b7;
}

.codex-device-auth.is-error small {
  color: #8a1f1f;
  font-weight: 800;
}

.codex-device-auth div {
  display: grid;
  gap: 5px;
}

.codex-device-auth a,
.codex-device-auth code {
  color: var(--sidebar);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.codex-device-auth code {
  width: fit-content;
  padding: 5px 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #34445c;
  background: #fff;
  border: 1px solid #d8e3f5;
  border-radius: 7px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.admin-icon-button:hover {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.admin-icon-button.is-danger {
  color: #be123c;
  background: #fff7f8;
  border-color: #fecdd3;
}

.admin-icon-button.is-danger:hover {
  color: #9f1239;
  background: #ffe4e6;
  border-color: #fda4af;
}

.admin-icon-button svg {
  width: 16px;
  height: 16px;
}

.admin-row-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
}

.admin-row-actions button + button {
  margin-left: 0;
}

.admin-management-list {
  margin-bottom: 14px;
}

.admin-portfolio-list {
  display: grid;
  gap: 10px;
}

.admin-portfolio-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-portfolio-option label {
  display: grid;
  grid-template-columns: 20px 34px 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  cursor: pointer;
}

.admin-portfolio-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.admin-order-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--sidebar-soft);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.admin-portfolio-option img {
  width: 64px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.admin-portfolio-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-portfolio-copy b,
.admin-portfolio-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-portfolio-copy b {
  font-size: 13px;
}

.admin-portfolio-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-order-controls {
  display: grid;
  grid-template-columns: 34px minmax(44px, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

.admin-order-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.admin-order-controls button:disabled,
.admin-order-controls input:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.admin-order-controls svg {
  width: 16px;
  height: 16px;
}

.admin-table-shell {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  color: var(--sidebar);
  background: #f4f8ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table strong,
.admin-table small {
  display: block;
  min-width: 0;
}

.admin-table strong {
  color: var(--ink);
  font-size: 13px;
}

.admin-table small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-table code {
  display: inline-block;
  padding: 4px 7px;
  color: #12305e;
  background: #eef5ff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.admin-codex-run-table {
  min-width: 980px;
}

.admin-pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.admin-pagination button {
  min-height: 34px;
  padding: 8px 12px;
  color: var(--sidebar);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-pagination span {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.admin-pagination small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 220px;
}

.admin-table-actions a,
.admin-table-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  color: var(--sidebar);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.admin-table-actions a:hover,
.admin-table-actions button:hover {
  border-color: #9db8e8;
  background: #f4f8ff;
}

.admin-table-actions button:disabled,
.admin-table-actions a.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
  pointer-events: none;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-status-pill.is-active {
  color: #0a6a4b;
  background: #ddf7ec;
}

.admin-status-pill.is-inactive {
  color: #7f1d1d;
  background: #fee2e2;
}

.admin-status-pill.is-draft {
  color: #5d3a00;
  background: #fff4cf;
}

.admin-status-pill.is-queued,
.admin-status-pill.is-running {
  color: #12305e;
  background: #dcecff;
}

.admin-status-pill.is-completed {
  color: #0a6a4b;
  background: #ddf7ec;
}

.admin-status-pill.is-manual {
  color: #334155;
  background: #edf2f7;
}

.admin-status-pill.is-failed {
  color: #7f1d1d;
  background: #fee2e2;
}

.admin-status-pill.is-success {
  color: #0a6a4b;
  background: #ddf7ec;
}

.admin-status-pill.is-error {
  color: #7f1d1d;
  background: #fee2e2;
}

.admin-table-thumb,
.admin-thumb-placeholder {
  display: block;
  width: 64px;
  height: 46px;
  border-radius: 8px;
}

.admin-table-thumb {
  object-fit: cover;
  border: 1px solid var(--line);
}

.admin-thumb-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f4f8ff;
  border: 1px dashed #b6c7e5;
  font-size: 10px;
  font-weight: 900;
}

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

.admin-stat-grid article {
  padding: 14px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-stat-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

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

.admin-chart-panel {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-chart-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.admin-daily-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 220px;
  padding: 10px 0 2px;
}

.admin-daily-chart article {
  display: grid;
  grid-template-rows: 22px 1fr 22px;
  gap: 8px;
  min-height: 190px;
}

.admin-daily-chart strong,
.admin-daily-chart span {
  display: block;
  overflow: hidden;
  color: var(--sidebar);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-daily-chart span {
  color: var(--muted);
  font-size: 11px;
}

.admin-daily-chart div {
  display: flex;
  align-items: flex-end;
  min-height: 132px;
  overflow: hidden;
  background: #eef4ff;
  border: 1px solid #d9e5f8;
  border-radius: 8px;
}

.admin-daily-chart b {
  display: block;
  width: 100%;
  min-height: 8px;
  background: linear-gradient(180deg, #316dec, #1f8d6a);
  border-radius: 8px 8px 0 0;
}

.admin-terminal-output {
  width: 100%;
  max-height: 220px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 12px;
  color: #eef6ff;
  background: #0b1730;
  border-radius: 8px;
  font: 12px/1.5 Consolas, "SFMono-Regular", Menlo, monospace;
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  transform: translateY(20px);
  opacity: 0;
  padding: 12px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.pdf-export-shell {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 794px;
  padding: 24px;
  background: #fff;
  color: var(--ink);
  z-index: -1;
}

.pdf-export-shell .proposal-export-doc {
  background: #fff;
}

.pdf-export-shell .workspace-header,
.pdf-export-shell .doc-section {
  box-shadow: none;
}

.pdf-export-shell .doc-section {
  display: block;
  margin-top: 16px;
}

.pdf-export-shell .button,
.pdf-export-shell .section-actions {
  display: none !important;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

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

  .sidebar {
    position: static;
    height: auto;
  }

  .project-mini {
    margin-bottom: 14px;
  }

  .side-nav {
    display: flex;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }

  .side-nav a {
    flex: 0 0 auto;
  }

  .workspace {
    width: min(100% - 32px, 1080px);
  }

  .summary-grid,
  .proposal-keypoints,
  .process-board,
  .portfolio-grid,
  .overview-matrix,
  .proposal-map,
  .stack-grid,
  .scope-cards,
  .risk-list,
  .question-list,
  .report-flow,
  .deliverable-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-list dl {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

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

  .proposal-info-list article,
  .proposal-info-list.is-three-part article {
    grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr);
  }

  .proposal-info-list.is-three-part small {
    grid-column: 1;
  }

  .proposal-info-list.is-three-part strong,
  .proposal-info-list.is-three-part p {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .sidebar {
    padding: 18px 14px;
  }

  .workspace {
    width: min(100% - 24px, 1080px);
    padding-top: 16px;
  }

  .workspace-header {
    flex-direction: column;
    padding: 18px;
  }

  .workspace-header h2 {
    font-size: 24px;
  }

  .header-meta {
    justify-content: flex-start;
  }

  .doc-section {
    padding: 18px;
  }

  .side-nav {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: 0;
  }

  .side-nav a {
    flex: initial;
  }

  .section-title {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .proposal-title,
  .proposal-section-heading {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 18px;
    padding-top: 18px;
  }

  .proposal-document-section + .proposal-document-section {
    margin-top: 40px;
  }

  .proposal-title::before,
  .proposal-section-heading::before {
    width: 100%;
    height: 3px;
  }

  .proposal-title > span,
  .proposal-section-heading > span {
    font-size: 24px;
  }

  .proposal-title h3,
  .proposal-section-heading h4 {
    font-size: 24px;
  }

  .proposal-title p {
    font-size: 15px;
  }

  .section-title .button {
    grid-column: 1 / -1;
  }

  .section-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .section-actions .button {
    flex: 1 1 160px;
  }

  .report-download-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .report-download-actions {
    grid-template-columns: 1fr;
  }

  .dynamic-schedule-board {
    overflow-x: auto;
  }

  .dynamic-schedule-head,
  .dynamic-schedule-row {
    min-width: 620px;
  }

  .admin-section {
    padding: 0;
  }

  .admin-login-screen {
    grid-template-columns: 1fr;
  }

  .admin-login-mark {
    min-height: auto;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .admin-login-mark strong {
    font-size: 34px;
  }

  .admin-login-box {
    margin: 22px 0;
  }

  .admin-shell {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-side-panel {
    position: static;
    width: auto;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .admin-main-panel {
    margin-left: 0;
    padding: 0;
  }

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

  .admin-hero {
    flex-direction: column;
    padding: 18px;
  }

  .admin-hero h1,
  .admin-hero h3 {
    font-size: 22px;
  }

  .admin-hero-actions,
  .admin-hero-actions .button {
    width: 100%;
  }

  .admin-panel {
    padding: 16px;
  }

  .portfolio-editor-workbench {
    grid-template-columns: 1fr;
  }

  .portfolio-editor-preview-shell {
    position: static;
    max-height: none;
  }

  .portfolio-editor-preview-frame {
    min-height: 520px;
  }

  .admin-field-grid {
    grid-template-columns: 1fr;
  }

  .admin-settings-block-head,
  .admin-log-filters {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-settings-fold summary small {
    text-align: left;
  }

  .admin-pagination {
    justify-content: stretch;
  }

  .admin-pagination button {
    flex: 1;
  }

  .portfolio-media-list,
  .portfolio-gallery-card {
    grid-template-columns: 1fr;
  }

  .portfolio-gallery-card-index {
    width: 100%;
  }

  .admin-ai-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-modal {
    padding: 12px;
  }

  .admin-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .admin-dialog-head,
  .admin-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-dialog-head {
    align-items: flex-start;
  }

  .admin-portfolio-option {
    grid-template-columns: 1fr;
  }

  .admin-portfolio-option label {
    grid-template-columns: 20px 34px 58px minmax(0, 1fr);
  }

  .admin-portfolio-option img {
    width: 58px;
  }

  .admin-order-controls {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .admin-order-controls button {
    width: 42px;
    height: 38px;
  }

  .admin-table {
    min-width: 720px;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .experience-list {
    grid-template-columns: 1fr;
  }

  .experience-list .experience-card {
    grid-template-columns: 1fr;
  }

  .experience-thumb {
    min-height: 190px;
  }

  .portfolio-meta {
    grid-template-columns: 1fr;
  }

  .text-link {
    width: 100%;
  }

  .portfolio-modal {
    padding: 14px;
  }

  .portfolio-dialog {
    width: calc(100vw - 28px);
    height: calc(100vh - 28px);
    padding: 0;
  }

  .portfolio-page {
    min-height: auto;
    padding: 0;
  }

  .portfolio-page-main {
    padding-bottom: 32px;
  }

  .modal-close {
    margin: 12px 12px -48px auto;
  }

  .portfolio-hero-block,
  .portfolio-hero-block img {
    min-height: 360px;
  }

  .portfolio-hero-block figcaption {
    right: 22px;
    bottom: 34px;
    left: 22px;
  }

  .portfolio-hero-block figcaption > p:first-child {
    margin-bottom: 14px;
    font-size: 16px;
  }

  .portfolio-page-header h3 {
    font-size: 30px;
  }

  .portfolio-hero-block figcaption > p:last-child {
    margin-top: 14px;
    font-size: 15px;
  }

  .portfolio-overview-block {
    padding: 34px 18px 0;
  }

  .portfolio-overview-block h4 {
    font-size: 22px;
  }

  .portfolio-overview-block > p:last-child {
    margin-top: 18px;
    font-size: 16px;
  }

  .portfolio-tab-row {
    gap: 22px;
    margin: 28px 18px 0;
    overflow-x: auto;
  }

  .portfolio-tab-row span {
    flex: 0 0 auto;
    min-height: 48px;
    font-size: 15px;
  }

  .portfolio-summary-grid {
    grid-template-columns: 1fr;
    margin: 28px 18px 0;
  }

  .portfolio-page-section {
    margin: 36px 18px 0;
    padding-top: 28px;
  }

  .portfolio-page-section h4 {
    margin-bottom: 18px;
    font-size: 22px;
  }

  .portfolio-check-list {
    font-size: 16px;
  }

  .portfolio-gallery {
    gap: 22px;
  }

  .portfolio-gallery-item img {
    width: 100%;
    max-height: none;
  }

  .summary-grid,
  .proposal-keypoints,
  .process-board,
  .portfolio-grid,
  .report-columns,
  .overview-matrix,
  .proposal-map,
  .stack-grid,
  .scope-cards,
  .risk-list,
  .question-list,
  .report-flow,
  .deliverable-grid {
    grid-template-columns: 1fr;
  }

  .proposal-keypoints article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .proposal-keypoints article:first-child {
    border-top: 0;
  }

  .proposal-info-list article,
  .proposal-info-list.is-three-part article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .proposal-info-list.is-three-part small,
  .proposal-info-list.is-three-part strong,
  .proposal-info-list.is-three-part p {
    grid-column: auto;
  }

  .proposal-block {
    padding: 0;
  }

  .proposal-table {
    min-width: 620px;
  }

  .risk-toggle-list,
  .question-detail-list {
    padding: 16px;
  }

  .question-detail-list li {
    grid-template-columns: 1fr;
  }

  .risk-toggle-body {
    padding: 0 16px 16px 30px;
  }

  .proposal-map article {
    min-height: auto;
  }

  .schedule-head {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .schedule-head span {
    display: none;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .schedule-task {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .schedule-track {
    grid-column: auto;
    min-height: 54px;
    padding: 10px;
  }

  .schedule-bar {
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  .block-heading {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .block-heading > span {
    font-size: 42px;
  }

  .narrative-card {
    margin: 16px 16px 0;
  }

  .proposal-intro .narrative-card {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .summary-grid,
  .proposal-keypoints,
  .overview-matrix,
  .proposal-info-list,
  .stack-grid,
  .scope-cards,
  .milestone-list,
  .risk-list,
  .question-list,
  .deliverable-grid {
    padding: 16px;
  }

  .milestone-list div {
    grid-template-columns: 1fr;
  }

  .skills-table .table-row,
  .schedule-table .table-row {
    grid-template-columns: 1fr;
  }

  .table-row span {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .table-row span:first-child {
    border-top: 0;
  }

  .proposal-pd-hero-content {
    width: min(100% - 36px, 1180px);
    padding: 92px 0 58px;
  }

  .proposal-pd-hero-content p {
    font-size: 18px;
  }

  .proposal-pd-hero-content h1 {
    font-size: 40px;
  }

  .proposal-pd-hero-content strong {
    font-size: 18px;
  }

  .proposal-pd-section {
    padding: 56px 0;
  }

  .proposal-pd-container {
    width: min(100% - 36px, 1180px);
  }

  .proposal-pd-heading h2 {
    font-size: 27px;
  }

  .proposal-pd-overview-list article {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 0;
  }

  .proposal-pd-overview-list p {
    font-size: 17px;
  }

  .proposal-pd-gallery {
    gap: 34px;
  }

  .proposal-pd-gallery.is-mobile-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 14px;
  }

  .proposal-pd-gallery.is-mobile-gallery .proposal-pd-screen img {
    height: auto;
    max-height: none;
  }

  .proposal-pd-gallery.is-mobile-gallery .proposal-pd-screen figcaption {
    margin-top: 0;
    padding: 8px 10px;
  }

  .proposal-pd-gallery.is-mobile-gallery .proposal-pd-screen figcaption span,
  .proposal-pd-gallery.is-mobile-gallery .proposal-pd-screen figcaption strong {
    font-size: 13px;
    line-height: 1.45;
  }

  .proposal-pd-gallery.is-mobile-gallery .proposal-pd-screen figcaption p {
    font-size: 14px;
  }

  .portfolio-live-service {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    padding: 22px 0;
  }

  .portfolio-live-service p {
    font-size: 15px;
    line-height: 1.58;
  }

  .portfolio-live-service a {
    width: 100%;
  }

  .proposal-pd-nav {
    flex-direction: column;
  }

  .proposal-pd-nav a {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .inline-portfolio-detail .proposal-pd-hero,
  .inline-portfolio-detail .proposal-pd-hero-content {
    min-height: 430px;
  }

  .inline-portfolio-detail .proposal-pd-hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 17, 34, 0.7), rgba(8, 17, 34, 0.32) 60%, rgba(8, 17, 34, 0.08)),
      linear-gradient(180deg, rgba(8, 17, 34, 0.04), rgba(8, 17, 34, 0.42));
  }

  .inline-portfolio-detail .proposal-pd-hero-visual {
    right: -10px;
    top: 50%;
    width: 66%;
    opacity: 0.64;
    transform: translateY(-50%);
  }

  .inline-portfolio-detail .proposal-pd-hero-content {
    width: min(100% - 36px, 980px);
    padding: 82px 0 48px;
  }

  .inline-portfolio-detail .proposal-pd-hero-content h1 {
    max-width: 300px;
    font-size: 31px;
    line-height: 1.14;
  }

  .inline-portfolio-detail .proposal-pd-hero-content strong {
    max-width: 290px;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.42;
  }

  .inline-portfolio-detail .proposal-pd-section {
    padding: 42px 0;
  }

  .inline-portfolio-detail .proposal-pd-container {
    width: min(100% - 36px, 980px);
  }

  .inline-portfolio-detail .proposal-pd-overview-list {
    margin-top: 18px;
  }

  .inline-portfolio-detail .proposal-pd-overview-list article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .inline-portfolio-detail .proposal-pd-overview-list h3 {
    font-size: 16px;
  }

  .inline-portfolio-detail .proposal-pd-overview-list div {
    gap: 6px;
  }

  .inline-portfolio-detail .proposal-pd-overview-list p {
    font-size: 15px;
    line-height: 1.58;
  }
}

@media print {
  @page {
    size: A4;
    margin: 16mm 15mm;
  }

  body {
    background: #fff;
    color: #111827;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .app-shell {
    display: block;
  }

  .sidebar,
  .button,
  .admin-section,
  .toast {
    display: none !important;
  }

  .workspace {
    width: 100%;
    padding: 0;
  }

  .workspace-header {
    margin-bottom: 18px;
    padding: 0 0 16px;
    border-bottom: 2px solid #13264a;
  }

  .workspace-header,
  .doc-section {
    box-shadow: none;
    border-radius: 0;
  }

  .doc-section {
    display: block !important;
    padding: 0;
    background: #fff;
  }

  .notice,
  .proposal-document-section,
  .proposal-title,
  .proposal-section-heading,
  .proposal-block,
  .proposal-subsection,
  .architecture-figure,
  .proposal-table-shell,
  .summary-grid article,
  .overview-matrix article,
  .scope-cards article,
  .stack-grid article,
  .risk-list article,
  .risk-toggle-list details,
  .numbered-detail-list li,
  .question-detail-list li,
  .question-list article,
  .deliverable-grid article,
  .schedule-board,
  .dynamic-schedule-board,
  .proposal-table-shell,
  .schedule-row,
  .dynamic-schedule-row {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .workspace-header,
  .doc-section,
  .notice,
  .schedule-board,
  .dynamic-schedule-board {
    border: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    box-shadow: none !important;
  }

  .notice {
    padding: 0;
    background: transparent;
  }

  .proposal-document-section {
    display: block;
    margin: 0 0 18px;
  }

  .proposal-document-section + .proposal-document-section {
    margin-top: 24px;
  }

  .proposal-title,
  .proposal-section-heading {
    margin-top: 0;
    margin-bottom: 18px;
    break-after: avoid;
    page-break-after: avoid;
  }

  .proposal-title + .proposal-intro,
  .proposal-section-heading + .proposal-block {
    break-before: avoid;
    page-break-before: avoid;
  }

  .proposal-section-heading {
    padding-top: 13px;
    border-top: 1px solid #13264a;
  }

  .proposal-title::before,
  .proposal-section-heading::before {
    height: 3px;
    border-radius: 999px;
  }

  .proposal-title > span,
  .proposal-section-heading > span,
  .proposal-title h3,
  .proposal-section-heading h4 {
    font-size: 23px;
    line-height: 1.16;
  }

  .narrative-card,
  .architecture-figure,
  .summary-grid article,
  .overview-matrix article,
  .scope-cards article,
  .stack-grid article,
  .risk-list article,
  .risk-toggle-list details,
  .numbered-detail-list li,
  .question-detail-list li,
  .question-list article,
  .deliverable-grid article {
    background: #fbfdff;
    box-shadow: none;
  }

  .narrative-card {
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid #d8e3f5 !important;
    border-radius: 8px;
  }

  .proposal-intro .narrative-card {
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
  }

  .summary-grid,
  .overview-matrix,
  .scope-cards,
  .stack-grid,
  .risk-list,
  .risk-toggle-list,
  .numbered-detail-list,
  .question-detail-list,
  .question-list,
  .deliverable-grid {
    gap: 8px;
  }

  .summary-grid article,
  .architecture-figure,
  .overview-matrix article,
  .scope-cards article,
  .stack-grid article,
  .risk-list article,
  .risk-toggle-list details,
  .numbered-detail-list li,
  .question-detail-list li,
  .question-list article,
  .deliverable-grid article {
    padding: 16px;
    border: 1px solid #d8e3f5 !important;
    border-radius: 8px;
  }

  .dynamic-schedule-head,
  .dynamic-schedule-row {
    grid-template-columns: 1fr 90px 1.8fr;
  }

  .schedule-board,
  .dynamic-schedule-board {
    overflow: visible;
  }

  .schedule-row,
  .dynamic-schedule-row {
    padding: 16px;
    background: #fbfdff;
    border: 1px solid #d8e3f5 !important;
    border-radius: 8px;
  }

  body.print-report .workspace-header,
  body.print-report .doc-section:not(#report) {
    display: none !important;
  }

  body.print-proposal .doc-section:not(#proposal) {
    display: none !important;
  }
}
