* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: linear-gradient(180deg, #eef4ff 0%, #f7f9fc 100%);
  color: #1f2937;
  font-size: 14px;
  line-height: 1.65;
}

body[data-page^="portal-"] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[data-page^="portal-"] .console-shell,
body[data-page^="portal-"] .portal-shell {
  flex: 1;
}

.page-footer {
  padding: 18px 18px 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  border-top: 1px solid rgba(203, 213, 225, 0.8);
}

.page-footer strong {
  color: #64748b;
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.portal-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.3;
}

h2 {
  font-size: 18px;
  line-height: 1.35;
}

.subtext {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-summary {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 220px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #dbe3f0;
  color: #334155;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel,
.notice-card {
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.notice-card {
  margin-bottom: 20px;
  padding: 16px 18px;
  line-height: 1.8;
}

.notice-card strong {
  display: block;
  margin-bottom: 6px;
}

.auth-panel,
.panel {
  padding: 18px;
}

#authSection {
  width: min(520px, 100%);
  justify-self: center;
}

.auth-panel {
  padding: 22px;
}

.auth-panel .auth-block {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-hero-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22);
}

.auth-hero-logo::before {
  content: "⟲";
  font-size: 26px;
  line-height: 1;
}

.auth-hero-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.auth-hero-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
  min-width: max-content;
}

body[data-page="portal-home"]:not(.portal-authenticated) .page-grid {
  min-height: calc(100vh - 140px);
  align-content: center;
}

.nav-link.active {
  background: rgba(37, 99, 235, 0.16);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.28);
}

body[data-page^="portal-"] .sidebar {
  grid-template-columns: 1fr auto 1fr;
}

body[data-page^="portal-"] .sidebar > .brand {
  justify-self: start;
}

body[data-page^="portal-"] .sidebar > .nav-list {
  justify-self: center;
}

body[data-page^="portal-"] .sidebar > .sidebar-card {
  justify-self: end;
  margin-left: 0;
}

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

.portal-workbench-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at right top, rgba(37, 99, 235, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.portal-workbench-copy,
.portal-workbench-side {
  min-width: 0;
}

.portal-workbench-copy h2 {
  margin-top: 10px;
}

.portal-workbench-copy .subtext {
  max-width: 620px;
}

.portal-workbench-copy .info-grid,
.portal-workbench-side .info-grid {
  gap: 12px;
}

.portal-home-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.portal-auth-tabs {
  margin-left: auto;
}

.portal-auth-tabs.tabs {
  gap: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  border: none;
  box-shadow: none;
}

.sidebar .portal-auth-tabs.tabs {
  background: transparent !important;
}

.sidebar .portal-auth-tabs .tab-button,
.sidebar .portal-auth-tabs .tab-button.active {
  background: transparent !important;
}

.portal-auth-tabs .tab-button {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 2px;
  border-radius: 0;
  border: none;
  color: #64748b;
  font-weight: 600;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.portal-auth-tabs .tab-button.active {
  background: transparent !important;
  color: #2563eb;
  box-shadow: none !important;
}

.portal-auth-tabs .tab-button:not(.active) {
  background: transparent !important;
  box-shadow: none !important;
}

.portal-auth-tabs .tab-button:hover,
.portal-auth-tabs .tab-button:active {
  background: transparent !important;
  box-shadow: none !important;
}

.portal-auth-tabs .tab-button.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 6px;
  border-radius: 999px;
  background: #2563eb;
}

.auth-layout {
  align-items: start;
}

.auth-block,
.admin-entry-card {
  min-width: 0;
}

.auth-block {
  display: grid;
  gap: 8px;
}

.admin-entry-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
  border: 1px solid #dbe3f0;
}

.admin-form {
  margin-top: 4px;
}

.tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #f1f5f9;
}

.tab-button {
  border: none;
  background: transparent;
  color: #475569;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.tab-button.active {
  background: #2563eb;
  color: #ffffff;
}

.tab-pane {
  display: none;
  margin-top: 0;
}

.tab-pane.active {
  display: block;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #334155;
}

.required-mark {
  margin-left: 4px;
  color: #dc2626;
  font-style: normal;
  font-weight: 700;
}

.password-field {
  position: relative;
}

.field-hint {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.field-hint-floating {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  width: 230px;
  padding: 10px 12px;
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.field-hint-floating::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-left: 1px solid #dbe3f0;
  border-bottom: 1px solid #dbe3f0;
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-50%) rotate(45deg);
}

.password-field:focus-within .field-hint-floating {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
}

.form-grid input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-grid input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.password-visibility-field {
  position: relative;
  display: block;
  width: 100%;
}

.password-visibility-field > input {
  padding-right: 42px;
}

button.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  box-shadow: none;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

button.password-visibility-toggle:hover {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

button.password-visibility-toggle:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: 1px;
}

.password-visibility-toggle svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.remember-option {
  display: inline-flex !important;
  align-items: center;
  gap: 8px !important;
  width: auto;
  min-height: 20px;
  color: #475569;
  cursor: pointer;
}

.remember-option input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: #2563eb;
  box-shadow: none;
}

.remember-option span {
  white-space: nowrap;
}

.primary-button,
.ghost-button,
.icon-button {
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.primary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

a.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ghost-button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  white-space: nowrap;
}

#refreshPortalProductCenterButton {
  width: 4em;
  min-width: 4em;
  padding-left: 0;
  padding-right: 0;
}

#refreshProjectsButton {
  width: fit-content;
  padding-left: 10px;
  padding-right: 10px;
}

.header-logout,
.header-actions .ghost-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  border: 1px solid transparent;
}

.header-logout:hover,
.header-actions .ghost-button:hover {
  background: #f8fafc;
  color: #334155;
}

.text-link-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 28px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #2563eb;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.text-link-button:hover {
  color: #1d4ed8;
  background: transparent !important;
}

.text-link-button:active {
  background: transparent !important;
  box-shadow: none !important;
}

.text-link-button:focus-visible,
.portal-auth-tabs .tab-button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.3);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .field-hint-floating {
    position: static;
    width: 100%;
    margin-top: 4px;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
  }

  .field-hint-floating::before {
    display: none;
  }
}

.icon-button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

#projectsGrid {
  display: grid;
  gap: 18px;
}

.project-group {
  display: grid;
  gap: 14px;
}

.project-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-group-head h3 {
  margin: 0;
  font-size: 16px;
}

.project-card,
.empty-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  background: #f8fbff;
}

.project-card-target {
  border-color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.project-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.project-card h3 {
  font-size: 20px;
}

.project-code,
.project-meta {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
}

.project-summary {
  margin-top: 14px;
  color: #334155;
  min-height: 44px;
  line-height: 1.7;
}

.project-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.project-actions .primary-button,
.project-actions .ghost-button {
  flex: 1 1 0;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tag-success {
  background: #dcfce7;
  color: #166534;
}

.tag-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.tag-warning {
  background: #fef3c7;
  color: #92400e;
}

.tag-muted {
  background: #e2e8f0;
  color: #475569;
}

.intro-dialog {
  width: min(720px, calc(100vw - 24px));
  border: none;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

.intro-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.dialog-head .icon-button {
  width: fit-content;
  padding-left: 10px;
  padding-right: 10px;
}

.dialog-body,
.dialog-form {
  padding: 20px;
}

.intro-section + .intro-section {
  margin-top: 16px;
}

.intro-label {
  margin-bottom: 8px;
  font-size: 13px;
  color: #64748b;
}

.package-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
}

.package-item + .package-item {
  margin-top: 12px;
}

.package-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.package-item-meta,
.package-item-desc,
.empty-inline {
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 14px;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  z-index: 50;
}

.toast-info {
  background: #334155;
}

.toast-success {
  background: #15803d;
}

.toast-warning {
  background: #b45309;
}

.toast-danger {
  background: #b91c1c;
}

.portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.portal-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dbe3f0;
  color: #334155;
  text-decoration: none;
}

.portal-nav-link.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.order-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.order-tab-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #f8fbff;
  color: #475569;
  cursor: pointer;
}

.order-tab-button.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.order-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

.shop-card-grid,
.record-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.shop-card,
.record-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
}

.shop-card {
  display: grid;
  gap: 10px;
}

.shop-card-head,
.record-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.shop-card h3,
.record-card strong {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.shop-card-head p,
.shop-card-meta,
.record-card-meta,
.shop-card-field span,
.shop-flow-body p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
  font-size: 13px;
}

.shop-card-price {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.shop-card-field {
  display: grid;
  gap: 6px;
}

.shop-card-field select {
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  background: #ffffff;
  font-size: 13px;
}

.shop-project-field {
  display: grid;
  gap: 8px;
}

.shop-project-label {
  margin: 0;
  color: #334155;
  line-height: 1.5;
  font-size: 13px;
  font-weight: 600;
}

.shop-project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-project-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d7e5ff;
  background: #eef4ff;
  color: #2b5fc7;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.shop-project-pill.is-default {
  border-color: #2b5fc7;
  background: linear-gradient(135deg, #2b5fc7 0%, #4a7ff0 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(43, 95, 199, 0.18);
}

.shop-project-note {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
  font-size: 13px;
}

.shop-card-actions,
.shop-flow-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-detail-panel {
  display: grid;
  gap: 18px;
}

.shop-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.shop-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.shop-detail-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #dbe3f0;
  background: #f8fafc;
}

.shop-detail-summary {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dbe3f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.shop-detail-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.shop-detail-subtitle {
  color: #64748b;
  line-height: 1.8;
}

.shop-detail-price-block {
  display: grid;
  gap: 4px;
}

.shop-detail-current-price {
  font-size: 30px;
  font-weight: 700;
  color: #dc2626;
  line-height: 1.2;
}

.shop-detail-origin-price {
  color: #94a3b8;
  text-decoration: line-through;
}

.shop-detail-meta {
  color: #334155;
}

.shop-detail-field {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
}

.shop-detail-field select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
}

.shop-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.shop-detail-richtext {
  padding: 20px;
  border: 1px solid #dbe3f0;
  border-radius: 16px;
  background: #ffffff;
  line-height: 1.9;
  color: #334155;
}

.shop-detail-richtext img {
  max-width: 100%;
  border-radius: 12px;
}

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

.record-card-actions .primary-button,
.record-card-actions .ghost-button {
  min-height: 34px;
}

.shop-card-state {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dbe3f0;
  background: #ffffff;
}

.shop-card-state.tone-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.shop-card-state.tone-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.shop-card-state-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.shop-card-state-meta {
  color: #64748b;
  font-size: 12px;
}

.shop-card-inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-flow-result {
  border: 1px solid #dbe3f0;
  border-radius: 18px;
  padding: 18px;
  background: #f8fbff;
}

.shop-flow-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.shop-flow-body {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.shop-flow-result.tone-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.shop-flow-result.tone-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.section-block {
  margin-top: 18px;
}

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

.info-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  background: #f8fbff;
}

.info-card-label {
  color: #64748b;
  font-size: 12px;
}

.info-card-value {
  margin-top: 8px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.info-card-meta {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

#portalMyOverviewGrid .info-card,
.portal-workbench-side .info-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

#portalMyOverviewGrid .info-card-value {
  font-size: 24px;
}

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

.action-entry-card {
  display: grid;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
}

.action-entry-head h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.action-entry-meta {
  display: inline-block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

.action-entry-actions {
  display: flex;
}

.action-entry-actions button {
  width: auto;
  min-width: 84px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(440px, 100%);
  max-height: min(84vh, 720px);
  overflow: auto;
  padding: 14px;
  border: 1px solid #dbe3f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 2px;
}

.modal-actions button {
  width: auto;
  min-width: 76px;
  min-height: 32px;
  padding: 0 12px;
}

.modal-result {
  grid-column: 1 / -1;
}

.modal-card .form-grid {
  gap: 8px;
}

.modal-card .form-grid label {
  gap: 4px;
  font-size: 12px;
}

.modal-card .form-grid input {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 9px;
}

.modal-card .empty-card,
.modal-card .my-action-result {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
}

.modal-header .header-logout,
.modal-header .ghost-button {
  min-height: 30px;
  min-width: 60px;
  padding: 0 10px;
  border-radius: 999px;
}

.my-action-result {
  border: 1px solid #dbe3f0;
  border-radius: 18px;
  padding: 18px;
  background: #f8fbff;
  line-height: 1.7;
}

.my-action-result.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.my-action-result.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

@media (max-width: 768px) {
  .portal-shell {
    padding: 20px 14px 40px;
  }

  .portal-workbench-hero,
  .portal-header,
  .section-header,
  .project-card-head,
  .project-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .tag-row {
    justify-content: flex-start;
  }

  .panel-split,
  .portal-workbench-hero,
  .info-grid,
  .action-entry-grid,
  .shop-detail-layout {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 14px;
  }
}
