:root {
  color-scheme: light;
  --navy: #081b43;
  --navy-2: #0e2c62;
  --blue: #2463eb;
  --blue-soft: #edf3ff;
  --green: #14965b;
  --green-soft: #ebf9f1;
  --orange: #f97316;
  --orange-soft: #fff3e9;
  --purple: #7957d5;
  --purple-soft: #f3efff;
  --ink: #14213d;
  --muted: #69758e;
  --line: #e3e9f2;
  --surface: #ffffff;
  --canvas: #f6f8fc;
  --danger: #d92d20;
  --shadow: 0 8px 24px rgba(8, 27, 67, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI",
    "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.auth-loading,
.auth-gate {
  min-height: 100vh;
  background:
    linear-gradient(rgba(247, 249, 253, 0.94), rgba(247, 249, 253, 0.94)),
    url("assets/dashboard-skyline.png") center / cover;
}

.auth-loading {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
}

.auth-loading-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

.auth-loading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.auth-gate {
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-panel {
  width: min(440px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 20px 55px rgba(8, 27, 67, 0.14);
}

.auth-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 26px;
}

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

.auth-brand strong {
  font-size: 16px;
}

.auth-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.auth-panel header h1 {
  margin: 0;
  font-size: 24px;
}

.auth-panel header p {
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: 11px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 7px;
  background: #eef2f7;
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.auth-tabs button.active {
  color: var(--blue);
  background: white;
  box-shadow: 0 2px 7px rgba(8, 27, 67, 0.08);
}

.auth-error {
  min-height: 18px;
  margin: 0 0 10px;
  color: var(--danger);
  font-size: 10px;
  line-height: 1.6;
}

.auth-error.success {
  padding: 9px 11px;
  border-radius: 5px;
  color: #175cd3;
  background: #eff8ff;
}

.auth-submit {
  width: 100%;
}

.password-input {
  position: relative;
}

.password-input .input {
  padding-right: 72px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  transform: translateY(-50%);
}

.auth-busy-overlay,
.auth-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(8, 27, 67, 0.42);
  backdrop-filter: blur(2px);
}

.auth-busy-overlay[hidden],
.auth-dialog-backdrop[hidden] {
  display: none;
}

.auth-busy-overlay {
  align-content: center;
  gap: 14px;
  color: white;
}

.auth-spinner {
  width: 54px;
  height: 54px;
  border: 5px solid rgba(255, 255, 255, 0.36);
  border-top-color: white;
  border-radius: 50%;
  animation: auth-spin 780ms linear infinite;
}

.auth-busy-overlay p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.auth-dialog {
  width: min(360px, calc(100% - 40px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 22px 70px rgba(8, 27, 67, 0.28);
  text-align: center;
}

.auth-dialog h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18px;
}

.auth-dialog p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-reset {
  display: block;
  margin: 14px auto 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 236px;
  flex-direction: column;
  padding: 22px 16px 16px;
  color: white;
  background: var(--navy);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 20px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  font-size: 30px;
  transform: rotate(-20deg);
}

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

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

.brand small {
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

.main-nav {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 39px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  text-align: left;
  font-size: 13px;
}

.nav-item span {
  font-size: 17px;
  text-align: center;
}

.nav-item:hover,
.nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.nav-item.active::before {
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #6f9dff;
  content: "";
}

.nav-count {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: #ef4444;
  font-size: 10px;
}

.main {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.topbar-spacer {
  flex: 1;
}

.menu-button {
  display: none;
}

.icon-button,
.menu-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  font-size: 19px;
}

.icon-button {
  position: relative;
}

.nav-count[hidden] {
  display: none;
}

.page-container {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 26px;
  outline: none;
}

.page-heading {
  margin-bottom: 22px;
}

.page-heading h1 {
  margin: 0 0 7px;
  font-size: 25px;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 610px;
  padding: 48px 38px;
}

.hero-copy h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.dashboard-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.action-card {
  display: flex;
  min-height: 154px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.action-card .action-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  font-size: 22px;
}

.action-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.action-card p {
  min-height: 34px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.action-card button {
  min-height: 34px;
  margin-top: auto;
  border-radius: 5px;
  background: white;
  font-size: 11px;
  font-weight: 800;
}

.tone-orange .action-icon {
  color: var(--orange);
  background: var(--orange-soft);
}

.tone-orange button {
  border: 1px solid #fdba74;
  color: var(--orange);
}

.tone-green .action-icon {
  color: var(--green);
  background: var(--green-soft);
}

.tone-green button {
  border: 1px solid #8bd4ae;
  color: var(--green);
}

.tone-blue .action-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.tone-blue button {
  border: 1px solid #9cb8f7;
  color: var(--blue);
}

.tone-purple .action-icon {
  color: var(--purple);
  background: var(--purple-soft);
}

.tone-purple button {
  border: 1px solid #b9a6ef;
  color: var(--purple);
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(270px, 0.8fr);
  gap: 14px;
}

.stack {
  display: grid;
  gap: 14px;
}

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

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

.panel-header h2,
.panel-header h3 {
  margin: 0;
  font-size: 15px;
}

.link-button {
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px;
}

.summary-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.summary-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
}

.summary-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.25;
}

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

.project-table th,
.project-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 11px;
}

.project-table th {
  color: var(--muted);
  background: #fafbfd;
  font-weight: 700;
}

.project-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.project-thumb {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 5px;
  color: white;
  background: linear-gradient(145deg, #ff9f43, #2463eb);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.status-blue {
  color: #2459cb;
  background: #eaf1ff;
}

.status-green {
  color: #087a45;
  background: #e9f9f0;
}

.status-purple {
  color: #6840c0;
  background: #f1ecff;
}

.status-orange {
  color: #c25a0b;
  background: #fff0e3;
}

.progress {
  width: 110px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf4;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.notice-list {
  display: grid;
  padding: 5px 16px 14px;
}

.notice-item {
  border-bottom: 1px solid var(--line);
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-item.unread {
  margin-inline: -8px;
  padding-inline: 8px;
  border-radius: 8px;
  background: #e8f5ff;
}

.notice-item.expanded {
  background: #f8fbff;
}

.notice-item.unread.expanded {
  background: #e8f5ff;
}

.notice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.notice-row time {
  display: block;
  color: var(--muted);
  text-align: right;
  font-size: 9px;
  white-space: nowrap;
}

.notice-row strong {
  text-align: left;
  font-size: 14px;
}

.notice-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

.notice-open-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s ease;
}

.notice-row[aria-expanded="true"] .notice-open-icon {
  transform: rotate(90deg);
}

.notice-unread-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #175cd3;
  background: #dbeafe;
  font-size: 9px;
  font-weight: 900;
}

.notice-detail {
  margin: -2px 0 12px;
  padding: 12px 14px;
  border: 1px solid #d7e8ff;
  border-radius: 7px;
  color: #344054;
  background: white;
}

.notice-detail p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(140px, 0.7fr)) auto;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.help-filters {
  grid-template-columns: minmax(210px, 1fr) minmax(140px, 220px);
  padding: 0;
  border: 0;
  background: transparent;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #d9e1ec;
  border-radius: 6px;
  color: var(--ink);
  background: white;
  outline: none;
}

.input,
.select {
  height: 40px;
  padding: 0 12px;
}

.password-input .input {
  padding-right: 72px;
}

.textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 99, 235, 0.12);
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 800;
}

.button-primary {
  border: 1px solid var(--blue);
  color: white;
  background: var(--blue);
}

.button-secondary {
  border: 1px solid #cfd8e6;
  color: var(--ink);
  background: white;
}

.button-danger {
  border: 1px solid #f2a8a3;
  color: var(--danger);
  background: white;
}

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

.kpi-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.kpi-card span {
  color: var(--muted);
  font-size: 11px;
}

.kpi-card strong {
  display: block;
  margin-top: 12px;
  font-size: 23px;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.tab {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.tab.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.editor-layout,
.order-layout,
.settings-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(420px, 1.6fr) minmax(260px, 0.8fr);
  gap: 14px;
}

.form-panel {
  padding: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.form-field label {
  font-size: 11px;
  font-weight: 800;
}

.setting-check {
  display: flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

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

.setting-check small {
  color: var(--muted);
  font-size: 10px;
}

.flyer-preview {
  position: relative;
  display: flex;
  min-height: 650px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f7;
}

.flyer-sheet {
  width: min(100%, 430px);
  aspect-ratio: 0.707;
  overflow: hidden;
  border: 10px solid white;
  background: linear-gradient(155deg, #fff2cc, #ffd74b 48%, #ff8a3d);
  box-shadow: 0 22px 45px rgba(25, 38, 69, 0.2);
}

.flyer-image {
  height: 43%;
  background:
    linear-gradient(rgba(20, 53, 91, 0.06), rgba(20, 53, 91, 0.06)),
    url("assets/dashboard-skyline.png") center/cover;
}

.flyer-copy {
  padding: 24px;
  text-align: center;
}

.flyer-copy small {
  display: block;
  font-weight: 800;
}

.flyer-copy h2 {
  margin: 10px 0;
  color: #e34d15;
  font-size: 36px;
  line-height: 1.08;
}

.flyer-copy p {
  font-weight: 700;
}

.price-summary {
  padding: 18px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.price-total {
  font-size: 19px;
  font-weight: 900;
}

.posting-flow {
  display: grid;
  gap: 14px;
  max-width: 1180px;
}

.posting-step {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.posting-step-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.posting-step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.posting-step-header h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.posting-step-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.posting-step-body {
  padding: 20px;
}

.posting-step-empty {
  box-shadow: none;
}

.posting-step-empty .posting-step-header {
  border-bottom: 0;
}

.posting-step-empty .posting-step-number {
  color: #667085;
  background: #e9edf4;
}

.posting-empty-body {
  min-height: 42px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

.pdf-dropzone {
  display: grid;
  width: 100%;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 2px dashed #b8c8e5;
  border-radius: 8px;
  color: var(--ink);
  background: #f8faff;
  transition: 160ms ease;
}

.flyer-design-consult-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #8bd4ae;
  border-radius: 8px;
  background: linear-gradient(180deg, #f3fff8, #ffffff);
}

.flyer-design-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 24px;
  font-weight: 900;
}

.flyer-design-consult-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.flyer-design-consult-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.flyer-design-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.flyer-design-actions span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.flyer-design-page {
  display: grid;
  gap: 16px;
}

.flyer-design-hero-panel {
  padding: 0;
  overflow: hidden;
}

.flyer-design-hero-panel .flyer-design-consult-card {
  margin: 0;
  border: 0;
  border-radius: 0;
}

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

.flyer-design-flow article {
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.flyer-design-flow article > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.flyer-design-flow strong {
  font-size: 14px;
}

.flyer-design-flow p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.pdf-dropzone:hover,
.pdf-dropzone.dragging {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.pdf-dropzone[hidden] {
  display: none;
}

.pdf-dropzone strong {
  font-size: 14px;
}

.pdf-dropzone small {
  color: var(--muted);
  font-size: 11px;
}

.pdf-upload-icon,
.pdf-file-icon {
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: white;
  background: #e5484d;
  font-size: 10px;
  font-weight: 900;
}

.pdf-upload-icon {
  width: 48px;
  height: 58px;
}

.pdf-file-icon {
  width: 40px;
  height: 48px;
}

.pdf-error {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 11px;
}

.pdf-file-summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfe;
}

.pdf-file-summary strong,
.pdf-file-summary span {
  display: block;
}

.pdf-file-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.pdf-file-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.pdf-setting-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--blue);
  color: #475467;
  background: var(--blue-soft);
  font-size: 11px;
  line-height: 1.6;
}

.pdf-imposition-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(470px, 1.2fr);
  gap: 18px;
  margin-top: 20px;
}

.pdf-sheet-settings,
.pdf-result-preview {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pdf-result-preview {
  background: #f5f7fa;
}

.pdf-subheading {
  display: flex;
  min-height: 42px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pdf-subheading h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.pdf-subheading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.pdf-sheet-list,
.pdf-preview-list {
  display: grid;
  gap: 10px;
}

.pdf-single-page-setting {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfe;
}

.pdf-single-page-setting span {
  color: var(--muted);
  font-size: 10px;
}

.pdf-single-page-setting strong {
  font-size: 12px;
}

.pdf-single-page-setting b {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 9px;
}

.pdf-sheet-row {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1fr) 28px;
  gap: 9px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.pdf-sheet-label {
  align-self: center;
}

.pdf-sheet-label b,
.pdf-sheet-label span {
  display: block;
}

.pdf-sheet-label b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-size: 11px;
}

.pdf-sheet-label span,
.pdf-sheet-row label {
  color: #475467;
  font-size: 10px;
  font-weight: 800;
}

.pdf-sheet-row .select {
  height: 36px;
  margin-top: 5px;
  padding: 0 8px;
  font-size: 10px;
}

.pdf-remove-sheet {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  border: 0;
  border-radius: 50%;
  color: var(--danger);
  background: #fff0ef;
}

.pdf-preview-sheet {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.pdf-preview-sheet > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.pdf-preview-sheet > header strong {
  font-size: 12px;
}

.pdf-preview-sheet > header span {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 800;
}

.pdf-preview-sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.pdf-preview-side > b,
.pdf-preview-side > small {
  display: block;
}

.pdf-preview-side > b {
  margin-bottom: 6px;
  font-size: 10px;
}

.pdf-preview-side > small {
  margin-top: 5px;
  color: var(--muted);
  text-align: center;
  font-size: 9px;
}

.pdf-page-frame {
  display: grid;
  width: 100%;
  aspect-ratio: 0.707;
  overflow: hidden;
  place-items: center;
  border: 1px solid #d8e0eb;
  background-color: #e7e9ed;
  background-image: radial-gradient(circle, #b8bdc6 1.2px, transparent 1.3px);
  background-size: 8px 8px;
}

.pdf-page-frame canvas {
  display: block;
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
  background: white;
  box-shadow: 0 2px 8px rgba(20, 33, 61, 0.16);
}

.pdf-preview-blank .pdf-page-frame {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 800;
}

.posting-map-search {
  position: relative;
  z-index: 500;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.posting-map-search > label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 800;
}

.posting-map-search > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.posting-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.posting-search-results {
  position: absolute;
  top: calc(100% - 8px);
  right: 14px;
  left: 14px;
  z-index: 1000;
  overflow: hidden;
  border-radius: 7px;
  background: white;
  box-shadow: 0 12px 30px rgba(8, 27, 67, 0.15);
}

.posting-search-results:empty {
  display: none;
}

.posting-search-results button {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  text-align: left;
}

.posting-search-results button:hover {
  background: var(--blue-soft);
}

.posting-search-results strong {
  font-size: 11px;
}

.posting-search-results span,
.posting-search-empty {
  color: var(--muted);
  font-size: 9px;
}

.posting-search-empty {
  margin: 0;
  padding: 12px;
}

.posting-area-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
}

.posting-map {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf2f6;
}

.posting-map.manual-pin-delete-active::before {
  position: absolute;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(to bottom, rgba(239, 68, 68, 0.42), rgba(239, 68, 68, 0) 5%),
    linear-gradient(to top, rgba(239, 68, 68, 0.42), rgba(239, 68, 68, 0) 5%),
    linear-gradient(to right, rgba(239, 68, 68, 0.42), rgba(239, 68, 68, 0) 5%),
    linear-gradient(to left, rgba(239, 68, 68, 0.42), rgba(239, 68, 68, 0) 5%);
}

.posting-map.manual-pin-delete-active::after {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 901;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 8px 14px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 999px;
  color: #991b1b;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.16);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  content: "外側にドラッグするとピンを削除できます";
}

.posting-map.manual-pin-delete-armed::before {
  background:
    linear-gradient(to bottom, rgba(220, 38, 38, 0.64), rgba(220, 38, 38, 0) 5%),
    linear-gradient(to top, rgba(220, 38, 38, 0.64), rgba(220, 38, 38, 0) 5%),
    linear-gradient(to right, rgba(220, 38, 38, 0.64), rgba(220, 38, 38, 0) 5%),
    linear-gradient(to left, rgba(220, 38, 38, 0.64), rgba(220, 38, 38, 0) 5%);
}

.posting-map.manual-pin-delete-armed::after {
  color: #7f1d1d;
  border-color: rgba(220, 38, 38, 0.6);
  background: rgba(254, 242, 242, 0.96);
  content: "ここで離すとピンを削除します";
}

.posting-map-error {
  display: grid;
  min-height: 590px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.posting-manual-marker-shell {
  border: 0;
  background: transparent;
}

.posting-manual-marker-shell span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  background: var(--pin-color);
  box-shadow: 0 2px 7px rgba(8, 27, 67, 0.28);
  font-size: 10px;
  font-weight: 900;
  cursor: grab;
}

.posting-manual-marker-shell span:active {
  cursor: grabbing;
}

.posting-area-panel {
  min-height: 590px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.posting-area-panel > .button {
  width: 100%;
}

.posting-area-tabs {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.posting-area-empty {
  padding: 30px 14px;
  color: var(--muted);
  text-align: center;
}

.posting-area-empty strong {
  color: var(--ink);
  font-size: 12px;
}

.posting-area-empty p {
  font-size: 10px;
}

.posting-area-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.posting-area-card.active {
  border-color: var(--blue);
}

.posting-area-card.status-distribution.active {
  border-color: #3b82f6;
}

.posting-area-card.status-prohibited.active {
  border-color: #ef4444;
}

.posting-area-card > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
}

.posting-area-select {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 11px;
  border: 0;
  background: transparent;
  text-align: left;
}

.posting-area-select > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #1e3a8a;
  font-size: 10px;
  font-weight: 900;
}

.posting-area-card.status-distribution.active .posting-area-select > span {
  background: #3b82f6;
}

.posting-area-card.status-prohibited .posting-area-select > span {
  background: #7f1d1d;
}

.posting-area-card.status-prohibited.active .posting-area-select > span {
  background: #ef4444;
}

.posting-area-select strong,
.posting-area-select small {
  display: block;
}

.posting-area-select strong {
  font-size: 11px;
}

.posting-area-select small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.posting-area-delete {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: var(--danger);
  background: #fff0ef;
}

.posting-area-card-body {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.posting-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 12px;
  padding: 3px;
  border-radius: 6px;
  background: #eef1f5;
}

.posting-status-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 9px;
}

.posting-status-tabs button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: white;
  font-size: 10px;
  font-weight: 800;
}

.posting-status-tabs [data-area-status="distribution"].active {
  border-color: #3b82f6;
  color: white;
  background: #3b82f6;
}

.posting-status-tabs [data-area-status="prohibited"].active {
  border-color: #ef4444;
  color: white;
  background: #ef4444;
}

.posting-area-number-marker {
  border: 0;
  background: transparent;
}

.posting-area-number-marker span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  background: var(--area-status-color);
  box-shadow: 0 2px 8px #0f172a55;
  font-size: 13px;
  font-weight: 900;
}

.posting-mode-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.posting-mode-tabs button.active {
  color: var(--blue);
  background: white;
  box-shadow: 0 2px 6px rgba(8, 27, 67, 0.08);
}

.posting-area-hint,
.posting-manual-guide p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.posting-manual-guide {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 6px;
  background: var(--blue-soft);
}

.posting-manual-guide strong,
.posting-manual-guide b {
  display: block;
  font-size: 11px;
}

.posting-manual-guide b {
  color: var(--blue);
}

.posting-target-section {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.posting-target-section h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.posting-target-section p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.posting-target-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.posting-target-options label {
  position: relative;
  display: grid;
  min-height: 92px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  cursor: pointer;
}

.posting-target-options input {
  position: absolute;
  top: 8px;
  right: 8px;
}

.posting-target-options label:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.posting-target-options span {
  color: var(--blue);
  font-size: 24px;
}

.posting-target-options b {
  font-size: 11px;
}

.posting-date-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 36px minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
  max-width: 780px;
}

.posting-date-field {
  display: grid;
  gap: 7px;
}

.posting-date-field span {
  font-size: 11px;
  font-weight: 800;
}

.posting-date-arrow {
  padding-bottom: 10px;
  color: var(--muted);
  text-align: center;
}

.posting-date-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 7px;
  color: #475467;
  background: #f5f7fa;
  font-size: 11px;
}

.posting-date-summary strong {
  color: var(--ink);
}

.posting-validation-error {
  color: var(--danger) !important;
}

.posting-print-method {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.posting-print-method legend {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

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

.posting-print-options label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 3px 10px;
  align-items: center;
  min-height: 88px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.posting-print-options label:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.posting-print-options input {
  grid-row: 1 / span 2;
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}

.posting-print-options strong {
  color: var(--ink);
  font-size: 12px;
}

.posting-print-options small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.posting-quantity-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(360px, 1.35fr);
  gap: 24px;
}

.posting-quantity-input {
  position: relative;
}

.posting-quantity-input .input {
  padding-right: 48px;
}

.posting-quantity-input span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--muted);
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 800;
}

.posting-quantity-layout input[type="range"] {
  width: 100%;
}

.posting-quantity-layout small {
  color: var(--muted);
  font-size: 10px;
}

.posting-note {
  min-height: 130px;
}

.posting-confirmation {
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.posting-confirm-grid section {
  min-height: 105px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.posting-confirm-grid section:nth-child(even) {
  border-right: 0;
}

.posting-confirm-grid span,
.posting-confirm-grid strong,
.posting-confirm-grid p {
  display: block;
}

.posting-confirm-grid span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.posting-confirm-grid strong {
  font-size: 12px;
  line-height: 1.6;
}

.posting-confirm-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.posting-confirm-note {
  grid-column: 1 / -1;
  border-right: 0 !important;
}

.posting-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.posting-confirm-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.posting-checkout-stack {
  display: grid;
  max-width: 920px;
  gap: 16px;
}

.posting-checkout {
  padding: 24px;
}

.posting-checkout > h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.posting-checkout-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.posting-checkout-heading h2,
.posting-checkout-heading p {
  margin: 0;
}

.posting-checkout-heading h2 {
  font-size: 18px;
}

.posting-checkout-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.posting-checkout-heading > span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 800;
}

.posting-payment-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.posting-payment-summary {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(180px, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.posting-payment-summary span,
.posting-payment-summary strong {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.posting-payment-summary span {
  color: var(--muted);
  background: #f8fafc;
}

.posting-payment-summary > :nth-last-child(-n + 2) {
  border-bottom: 0;
}

.posting-checkout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.posting-complete-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #16a34a;
  font-size: 30px;
  font-weight: 900;
}

.posting-order-id {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
}

.map-mock {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(189, 202, 216, 0.75) 50%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(189, 202, 216, 0.75) 49%, transparent 52%),
    #edf2f6;
  background-size: 92px 100%, 100% 74px, auto;
}

.map-zone {
  position: absolute;
  inset: 70px 80px 55px 90px;
  border: 3px solid #3973ed;
  background: rgba(57, 115, 237, 0.2);
  clip-path: polygon(12% 9%, 85% 2%, 97% 42%, 78% 93%, 18% 84%, 2% 45%);
}

.map-pin {
  position: absolute;
  top: 46%;
  left: 52%;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 4px solid white;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

.settings-card {
  padding: 18px;
}

.settings-card h2 {
  margin: 0 0 16px;
  font-size: 15px;
}

.account-logout-button {
  margin-top: 12px;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1.3fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 18, 43, 0.56);
}

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

.modal {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 8px;
  background: white;
  box-shadow: 0 30px 80px rgba(3, 12, 34, 0.35);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #f3f5f8;
  font-size: 21px;
}

.modal-body {
  padding: 28px;
}

.modal-body h2 {
  margin: 0 0 7px;
}

.modal-body > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
}

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

.order-type {
  min-height: 105px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  text-align: left;
}

.order-type.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.order-type strong,
.order-type small {
  display: block;
}

.order-type strong {
  margin-bottom: 7px;
}

.order-type small {
  color: var(--muted);
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: 380px;
  padding: 13px 17px;
  border-radius: 7px;
  color: white;
  background: var(--navy);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: 180ms ease;
  font-size: 12px;
}

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

.empty-state {
  padding: 42px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .action-grid,
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-layout,
  .order-layout,
  .settings-layout {
    grid-template-columns: 1fr 1.4fr;
  }

  .editor-layout > :last-child,
  .order-layout > :last-child,
  .settings-layout > :last-child {
    grid-column: 1 / -1;
  }

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

  .posting-area-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    width: 250px;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

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

  .main {
    min-width: 0;
  }

  .menu-button {
    display: block;
  }

  .dashboard-columns,
  .editor-layout,
  .order-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .posting-area-layout,
  .posting-target-section,
  .posting-print-options,
  .posting-quantity-layout,
  .flyer-design-flow {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .page-container {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .action-grid,
  .kpi-grid,
  .summary-grid,
  .order-types,
  .filters {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 230px;
  }

  .hero-copy {
    padding: 34px 24px;
  }

  .project-table thead {
    display: none;
  }

  .project-table,
  .project-table tbody,
  .project-table tr,
  .project-table td {
    display: block;
    width: 100%;
  }

  .project-table tr {
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }

  .project-table td {
    padding: 6px 0;
    border: 0;
  }

  .setting-row {
    grid-template-columns: 1fr auto;
  }

  .setting-row > :nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .posting-step-header {
    padding: 14px;
  }

  .posting-step-body {
    padding: 14px;
  }

  .pdf-file-summary {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .pdf-file-summary .button {
    grid-column: 1 / -1;
  }

  .pdf-sheet-row {
    grid-template-columns: 1fr;
  }

  .pdf-remove-sheet {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .pdf-preview-sides {
    grid-template-columns: 1fr;
  }

  .posting-search-row,
  .posting-date-layout,
  .posting-confirm-grid {
    grid-template-columns: 1fr;
  }

  .posting-date-arrow {
    padding: 0;
    transform: rotate(90deg);
  }

  .posting-target-options {
    grid-template-columns: 1fr;
  }

  .posting-confirm-grid section {
    border-right: 0;
  }

  .posting-confirm-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .posting-payment-row,
  .posting-payment-summary {
    grid-template-columns: 1fr;
  }

  .posting-payment-summary span,
  .posting-payment-summary strong {
    border-bottom: 1px solid var(--line);
  }

  .posting-payment-summary > :last-child {
    border-bottom: 0;
  }

  .posting-checkout-heading,
  .posting-checkout-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
