:root {
  --cp-primary: #0d76c7;
  --cp-primary-dark: #095c9c;
  --cp-secondary: #168fe6;
  --cp-accent: #ff9a3d;
  --cp-alert: #ff9a3d;
  --cp-bg: #f5f9fc;
  --cp-surface: #ffffff;
  --cp-soft: #eaf4fe;
  --cp-line: #d6e3ee;
  --cp-text: #16314f;
  --cp-muted: #5d6b7a;
  --cp-faint: #8aa0b4;
  --cp-shadow: 0 18px 44px rgba(15, 62, 103, 0.1);
  --cp-radius-lg: 24px;
  --cp-radius-md: 18px;
  --cp-radius-sm: 14px;
  --cp-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cp-bg);
}

body.asweb-cp-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9) 34%, transparent 54%),
    linear-gradient(180deg, #f8fbff 0%, #f2f7fb 100%);
  color: var(--cp-text);
  font-family: "Noto Sans JP", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

.cp-login-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 16px;
  overflow: hidden;
}

.cp-login-card {
  width: min(100%, 430px);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  padding: 32px 24px;
  border: 1px solid var(--cp-line);
  border-radius: 28px;
  background: var(--cp-surface);
  box-shadow: var(--cp-shadow);
  animation: cp-rise 280ms var(--cp-ease) both;
}

.cp-kicker {
  margin: 0 0 8px;
  color: var(--cp-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-login-card > .cp-kicker,
.cp-sidebar .cp-kicker {
  width: 132px;
  height: 32px;
  margin-bottom: 10px;
  overflow: hidden;
  background: url("https://asweb-net.com/wp-content/themes/asweb/assets/img/logo.png") left center / contain no-repeat;
  color: transparent;
  text-indent: -999px;
  white-space: nowrap;
}

.cp-login-card h1,
.cp-sidebar h1,
.cp-hero h2,
.cp-section h2 {
  margin: 0;
  color: var(--cp-text);
  line-height: 1.28;
}

.cp-muted,
.cp-empty,
.cp-text {
  color: var(--cp-muted);
}

.cp-alert {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: var(--cp-radius-sm);
  background: rgba(255, 154, 61, 0.12);
  color: #9a541f;
  font-size: 0.92rem;
}

.cp-form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.cp-form label {
  display: grid;
  gap: 7px;
  color: var(--cp-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.cp-form input,
.cp-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-sm);
  background: #fff;
  color: var(--cp-text);
  font-size: 16px;
  outline: none;
}

.cp-form input:focus,
.cp-form textarea:focus {
  border-color: rgba(13, 118, 199, 0.42);
  box-shadow: 0 0 0 4px rgba(13, 118, 199, 0.1);
}

.cp-form textarea {
  resize: vertical;
}

.cp-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.cp-check input {
  width: auto;
  min-height: auto;
}

.cp-form button,
.cp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--cp-primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(13, 118, 199, 0.18);
  cursor: pointer;
}

.cp-app {
  min-height: 100vh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.cp-sidebar {
  display: none;
}

.cp-main {
  width: 100%;
  animation: cp-fade 220ms ease both;
}

.cp-main-content {
  display: grid;
  gap: 16px;
  width: min(100%, 1000px);
  margin: 0;
  padding: 18px 14px 26px;
}

.cp-toast {
  position: fixed;
  top: calc(18px + var(--wp-admin--admin-bar--height, 0px));
  left: 50%;
  z-index: 2147483647;
  max-width: calc(100vw - 44px);
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(38, 50, 56, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 0);
  white-space: nowrap;
  animation: cp-toast-fade 3s ease both;
}

.cp-page-header {
  display: grid;
  gap: 4px;
  align-content: center;
  width: 100%;
  min-height: 100px;
  margin: 0;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(214, 227, 238, 0.9);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  animation: cp-rise 220ms var(--cp-ease) both;
}

.cp-page-header p {
  margin: 0;
  color: var(--cp-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-page-header h1 {
  margin: 0;
  color: var(--cp-text);
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.25;
}

.cp-hero {
  display: grid;
  gap: 10px;
  padding: 24px 20px;
  border-radius: 0 0 28px 28px;
  background: var(--cp-surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  animation: cp-rise 260ms var(--cp-ease) both;
}

.cp-hero .cp-kicker {
  margin-bottom: 0;
}

.cp-hero h2 {
  font-size: 1.48rem;
}

.cp-hero p:last-child {
  margin: 0;
  color: var(--cp-muted);
  font-size: 0.94rem;
}

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

.cp-stat {
  display: grid;
  min-height: 108px;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-md);
  background: var(--cp-surface);
  animation: cp-rise 260ms var(--cp-ease) both;
}

.cp-stat span,
.cp-card-label,
.cp-meta span,
.cp-message span {
  color: var(--cp-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cp-stat strong {
  color: var(--cp-text);
  font-size: 1.68rem;
  line-height: 1;
}

.cp-notice-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(13, 118, 199, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 62, 103, 0.06);
  transition: transform 180ms var(--cp-ease), border-color 180ms var(--cp-ease), box-shadow 180ms var(--cp-ease);
}

.cp-notice-strip:hover {
  border-color: rgba(13, 118, 199, 0.32);
  box-shadow: 0 14px 30px rgba(15, 62, 103, 0.1);
  transform: translateY(-1px);
}

.cp-notice-strip-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--cp-soft);
  color: var(--cp-primary-dark);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.cp-notice-strip strong {
  overflow: hidden;
  color: var(--cp-text);
  font-size: 0.92rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-notice-strip time {
  color: var(--cp-muted);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.cp-member-card {
  position: relative;
  display: grid;
  width: min(100%, 400px);
  height: 250px;
  overflow: hidden;
  margin-right: auto;
  margin-left: auto;
  padding: 22px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(9, 92, 156, 0.96), rgba(13, 118, 199, 0.92)),
    #0d76c7;
  color: #fff;
  box-shadow: 0 20px 42px rgba(13, 118, 199, 0.24);
  isolation: isolate;
  transform: perspective(900px) rotateX(0) rotateY(0) translateY(0);
  transform-style: preserve-3d;
  transition: transform 240ms var(--cp-ease), box-shadow 240ms var(--cp-ease);
  will-change: transform;
}

.cp-member-card:hover {
  box-shadow: 0 26px 52px rgba(13, 118, 199, 0.3);
  transform: perspective(900px) rotateX(2.5deg) rotateY(-2.5deg) translateY(-3px);
}

.cp-member-card::before {
  position: absolute;
  right: -70px;
  bottom: -86px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  content: "";
  animation: cp-member-card-ripple 4.8s ease-in-out infinite;
}

.cp-member-card-head,
.cp-member-card-body,
.cp-member-card-foot {
  position: relative;
  z-index: 1;
}

.cp-member-card-head,
.cp-member-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cp-member-card-head span,
.cp-member-card-body p,
.cp-member-card-foot span {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-member-card-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.82rem;
}

.cp-member-card-body {
  align-self: end;
  padding-top: 18px;
}

.cp-member-card-body h3 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: clamp(1.8rem, 9vw, 2.65rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.18);
  transition: text-shadow 220ms var(--cp-ease);
}

.cp-member-card-points.is-slot-set {
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.12);
}

.cp-member-card-body h4 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.22rem, 6vw, 1.68rem);
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.cp-member-card-foot {
  align-self: end;
  margin-top: 12px;
}

.cp-summary-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
}

.cp-summary-item {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--cp-line);
}

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

.cp-summary-item h2 {
  margin: 0;
  color: var(--cp-text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.cp-summary-item h3 {
  margin: 3px 0 0;
  color: var(--cp-muted);
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 700;
}

.cp-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(138, 160, 180, 0.14);
  color: var(--cp-muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.cp-card-label.cp-status-badge {
  margin: 0 0 10px;
}

.cp-status-badge-active {
  background: rgba(13, 199, 27, 0.12);
  color: #16823a;
}

.cp-status-badge-delivered {
  background: rgba(13, 170, 199, 0.12);
  color: #0b7f91;
}

.cp-status-badge-paused {
  background: rgba(255, 154, 61, 0.14);
  color: #9a541f;
}

.cp-status-badge-cancelled {
  background: rgba(194, 65, 61, 0.12);
  color: #a92f2b;
}

.cp-status-badge-preparing {
  background: rgba(13, 118, 199, 0.12);
  color: var(--cp-primary-dark);
}

.cp-home-documents .cp-payment-status {
  min-height: 24px;
  margin-bottom: 8px;
  padding: 0 10px;
  font-size: 0.75rem;
  line-height: 1;
}

.cp-dashboard-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 2px auto 0;
  padding: 9px 14px;
  border-radius: 999px;
  color: #c2413d;
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 180ms var(--cp-ease), color 180ms var(--cp-ease), transform 180ms var(--cp-ease);
}

.cp-dashboard-logout span {
  width: 17px;
  height: 17px;
  background: currentColor;
  content: "";
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 3h8a2 2 0 0 1 2 2v3h-2V5H5v14h8v-3h2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm11.6 4.6L21 12l-4.4 4.4-1.4-1.4 2-2H9v-2h8.2l-2-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 3h8a2 2 0 0 1 2 2v3h-2V5H5v14h8v-3h2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm11.6 4.6L21 12l-4.4 4.4-1.4-1.4 2-2H9v-2h8.2l-2-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cp-dashboard-logout:hover,
.cp-dashboard-logout:focus-visible {
  background: rgba(194, 65, 61, 0.08);
  color: #a92f2b;
  outline: none;
  transform: translateY(-1px);
}

.cp-section {
  padding: 22px 18px;
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-lg);
  background: var(--cp-surface);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  animation: cp-rise 260ms var(--cp-ease) both;
}

.cp-section h2 {
  font-size: 1.18rem;
}

.cp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cp-section-head a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cp-primary);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.cp-section-head a::after {
  width: 7px;
  height: 7px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.cp-card-grid,
.cp-list,
.cp-chat {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.cp-section > .cp-card-grid:first-child,
.cp-section > .cp-list:first-child,
.cp-section > .cp-chat:first-child,
.cp-section > .cp-form:first-child {
  margin-top: 0;
}

.cp-card,
.cp-list-item {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cp-card + .cp-card,
.cp-list-item + .cp-list-item {
  padding-top: 14px;
  border-top: 1px solid var(--cp-line);
}

.cp-card h3,
.cp-list-item h3 {
  margin: 3px 0 12px;
  color: var(--cp-text);
  font-size: 1.04rem;
  line-height: 1.38;
}

.cp-contract-cancel-note {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 154, 61, 0.24);
  border-radius: var(--cp-radius-sm);
  background: rgba(255, 154, 61, 0.08);
}

.cp-contract-cancel-note h3 {
  margin: 0 0 6px;
  color: #9a541f;
  font-size: 0.98rem;
}

.cp-contract-cancel-note p {
  margin: 0;
  color: var(--cp-muted);
  font-size: 0.92rem;
}

.cp-contract-options {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.cp-contract-options > span {
  color: var(--cp-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cp-contract-options > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cp-contract-options b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(13, 118, 199, 0.1);
  color: var(--cp-primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.cp-contract-notes {
  display: grid;
  gap: 6px;
  padding-top: 12px;
}

.cp-contract-notes > span {
  color: var(--cp-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cp-contract-notes > div {
  color: var(--cp-text);
  font-size: 0.92rem;
  line-height: 1.75;
}

.cp-contract-notes p {
  margin: 0;
}

.cp-list-item {
  display: grid;
  gap: 14px;
}

.cp-support-list {
  display: grid;
  gap: 0;
}

.cp-support-item {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
}

.cp-support-item:first-child {
  padding-top: 0;
}

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

.cp-support-item time {
  color: var(--cp-primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.cp-support-body {
  min-width: 0;
}

.cp-support-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(13, 118, 199, 0.1);
  color: var(--cp-primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.cp-support-type-meeting {
  background: rgba(255, 154, 61, 0.14);
  color: #9a541f;
}

.cp-support-type-bugfix {
  background: rgba(194, 65, 61, 0.11);
  color: #a92f2b;
}

.cp-support-type-other {
  background: rgba(138, 160, 180, 0.14);
  color: var(--cp-muted);
}

.cp-support-body h3 {
  margin: 0 0 8px;
  color: var(--cp-text);
  font-size: 1rem;
  line-height: 1.45;
}

.cp-support-text {
  margin-bottom: 12px;
  color: var(--cp-muted);
  line-height: 1.8;
}

.cp-support-text p {
  margin: 0;
}

.cp-support-meta {
  display: grid;
  gap: 0;
  max-width: 560px;
}

.cp-support-link {
  align-self: start;
  color: var(--cp-primary-dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(13, 118, 199, 0.32);
  text-underline-offset: 4px;
}

.cp-support-link:hover,
.cp-support-link:focus-visible {
  color: var(--cp-primary);
  text-decoration-color: rgba(13, 118, 199, 0.72);
}

.cp-meta {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
}

.cp-meta:last-child {
  border-bottom: 0;
}

.cp-meta strong {
  color: var(--cp-text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cp-meta a {
  color: var(--cp-primary);
  text-decoration: underline;
  text-decoration-color: rgba(13, 118, 199, 0.28);
  text-underline-offset: 3px;
}

.cp-meta a:hover,
.cp-meta a:focus-visible {
  color: var(--cp-primary-dark);
  text-decoration-color: rgba(13, 118, 199, 0.55);
}

.cp-document-filter {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.cp-document-filter label {
  display: grid;
  gap: 6px;
}

.cp-document-filter span {
  color: var(--cp-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cp-document-filter input,
.cp-document-filter select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  background: #fff;
  color: var(--cp-text);
  font: inherit;
  padding: 0 12px;
}

.cp-document-filter button,
.cp-document-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.cp-document-filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.cp-document-filter-actions button,
.cp-document-filter-actions a {
  min-width: 84px;
}

.cp-document-filter button {
  border: 0;
  background: var(--cp-primary);
  color: #fff;
  cursor: pointer;
}

.cp-document-filter a {
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.72);
  color: var(--cp-muted);
}

.cp-document-table-wrap {
  position: relative;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 14px;
  background: #fff;
}

.cp-document-table-wrap::before,
.cp-document-table-wrap::after {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms var(--cp-ease);
}

.cp-document-table-wrap.is-scrollable::before {
  top: 12px;
  right: 14px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(13, 118, 199, 0.92);
  color: #fff;
  content: ">";
  font-size: 0.74rem;
  font-weight: 800;
  opacity: 1;
  animation: cp-scroll-hint 1.8s ease-in-out infinite;
}

.cp-document-table-wrap.is-scrollable::after {
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(13, 118, 199, 0.12));
  content: "";
  opacity: 1;
}

.cp-document-table-wrap.is-scrolled::before,
.cp-document-table-wrap.is-scrolled::after {
  opacity: 0;
}

.cp-document-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.cp-document-table th,
.cp-document-table td {
  padding: 15px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  text-align: left;
  vertical-align: middle;
}

.cp-document-table th {
  background: rgba(248, 250, 252, 0.9);
  color: var(--cp-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.cp-document-table tbody tr {
  transition: background 180ms var(--cp-ease);
}

.cp-document-table tbody tr:hover {
  background: rgba(13, 118, 199, 0.035);
}

.cp-document-table tbody tr:last-child td {
  border-bottom: 0;
}

.cp-document-table td strong {
  color: var(--cp-text);
}

.cp-documents-section {
  min-width: 0;
}

.cp-document-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.cp-payment-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.cp-payment-status-paid {
  background: rgba(13, 199, 27, 0.1);
  color: #138a21;
}

.cp-payment-status-overdue {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.cp-payment-status-unpaid,
.cp-payment-status-unset {
  background: rgba(13, 118, 199, 0.1);
  color: var(--cp-primary-dark);
}

.cp-document-link {
  color: var(--cp-primary-dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(13, 118, 199, 0.32);
  text-underline-offset: 4px;
}

.cp-document-link:hover,
.cp-document-link:focus-visible {
  color: var(--cp-primary);
  text-decoration-color: rgba(13, 118, 199, 0.72);
}

.cp-text {
  font-size: 0.94rem;
}

.cp-empty {
  margin: 0;
  padding: 22px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--cp-radius-md);
  background: #f8fafc;
  text-align: center;
}

.cp-chat {
  max-height: 370px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 14px;
  background: #fff;
  scrollbar-color: rgba(13, 118, 199, 0.38) rgba(214, 227, 238, 0.42);
  scrollbar-width: thin;
}

.cp-chat::-webkit-scrollbar {
  width: 9px;
}

.cp-chat::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(214, 227, 238, 0.42);
}

.cp-chat::-webkit-scrollbar-thumb {
  border: 2px solid rgba(214, 227, 238, 0.42);
  border-radius: 999px;
  background: rgba(13, 118, 199, 0.38);
}

.cp-chat::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 118, 199, 0.52);
}

.cp-message {
  width: 94%;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--cp-soft);
}

.cp-message.is-me {
  justify-self: end;
  background: #0dc71b1a;
}

.cp-message p {
  margin: 7px 0 0;
}

.cp-chat-attachment {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(13, 118, 199, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--cp-primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
  transition: background 180ms var(--cp-ease), border-color 180ms var(--cp-ease), color 180ms var(--cp-ease);
}

.cp-chat-attachment span {
  width: 15px;
  height: 15px;
  background: currentColor;
  content: "";
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8.5 18.5a4.5 4.5 0 0 1 0-6.36l7.07-7.07a3 3 0 0 1 4.24 4.24l-8.13 8.13a1.5 1.5 0 0 1-2.12-2.12l7.42-7.42 1.41 1.41-7.42 7.42.71.71 8.13-8.13a5 5 0 0 0-7.07-7.07L5.67 9.31a6.5 6.5 0 1 0 9.19 9.19l6.36-6.36-1.41-1.41-6.36 6.36a4.5 4.5 0 0 1-6.36 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8.5 18.5a4.5 4.5 0 0 1 0-6.36l7.07-7.07a3 3 0 0 1 4.24 4.24l-8.13 8.13a1.5 1.5 0 0 1-2.12-2.12l7.42-7.42 1.41 1.41-7.42 7.42.71.71 8.13-8.13a5 5 0 0 0-7.07-7.07L5.67 9.31a6.5 6.5 0 1 0 9.19 9.19l6.36-6.36-1.41-1.41-6.36 6.36a4.5 4.5 0 0 1-6.36 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cp-chat-attachment:hover,
.cp-chat-attachment:focus-visible {
  border-color: rgba(13, 118, 199, 0.34);
  background: #fff;
  color: var(--cp-primary);
  outline: none;
}

.cp-chat-form {
  margin-top: 18px;
}

.cp-readonly {
  padding: 14px 16px;
  border-radius: var(--cp-radius-md);
  background: var(--cp-soft);
}

.cp-mobile-tabs {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.cp-mobile-tabs a {
  position: relative;
  display: grid;
  min-height: 58px;
  place-items: center;
  gap: 4px;
  border-radius: 16px;
  color: var(--cp-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.cp-mobile-tabs a::before {
  width: 26px;
  height: 26px;
  background: currentColor;
  content: "";
  mask: var(--cp-icon) center / contain no-repeat;
  -webkit-mask: var(--cp-icon) center / contain no-repeat;
}

.cp-mobile-tabs a[data-cp-icon="dashboard"]::before {
  --cp-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 11.5 12 4l8 7.5V20a1 1 0 0 1-1 1h-5v-6h-4v6H5a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
}

.cp-mobile-tabs a[data-cp-icon="documents"]::before {
  --cp-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 2h10a2 2 0 0 1 2 2v18l-3-2-3 2-3-2-3 2-3-2V4a2 2 0 0 1 2-2Zm2 6h6V6H9zm0 4h6v-2H9zm0 4h4v-2H9z'/%3E%3C/svg%3E");
}

.cp-mobile-tabs a[data-cp-icon="chat"]::before {
  --cp-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 5a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3H9l-5 5V5Zm4 2v2h8V7zm0 4v2h5v-2z'/%3E%3C/svg%3E");
}

.cp-mobile-tabs a[data-cp-icon="notices"]::before {
  --cp-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22ZM5 18h14l-2-3V9a5 5 0 0 0-10 0v6z'/%3E%3C/svg%3E");
}

.cp-mobile-tabs a[data-cp-icon="profile"]::before {
  --cp-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm-8 9a8 8 0 1 1 16 0z'/%3E%3C/svg%3E");
}

.cp-mobile-tabs a.is-current {
  background: rgba(13, 118, 199, 0.1);
  color: var(--cp-primary);
}

.cp-mobile-tabs b {
  position: absolute;
  top: 6px;
  right: 14px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--cp-alert);
  color: #fff;
  font-size: 0.66rem;
}

@keyframes cp-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes cp-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cp-toast-fade {
  0% {
    opacity: 0;
    transform: translate(-50%, -8px);
    visibility: visible;
  }

  10%,
  78% {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -8px);
    visibility: hidden;
  }
}

@keyframes cp-scroll-hint {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(4px);
  }
}

@keyframes cp-member-card-ripple {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }

  50% {
    opacity: 0.38;
    transform: scale(1.06);
  }
}

@media (min-width: 780px) {
  .cp-app {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    padding-bottom: 0;
  }

  .cp-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    height: 100vh;
    padding: 30px 20px;
    border-right: 1px solid var(--cp-line);
    background: rgba(255, 255, 255, 0.88);
  }

  .cp-sidebar .cp-kicker {
    width: 100%;
    max-width: 220px;
    height: 44px;
  }

  .cp-menu-panel {
    display: contents;
  }

  .cp-sidebar nav {
    display: grid;
    gap: 8px;
  }

  .cp-document-filter {
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, 1fr)) auto;
    align-items: end;
  }

  .cp-support-item {
    grid-template-columns: 116px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
  }

  .cp-contracts-section .cp-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    align-items: start;
  }

  .cp-contracts-section .cp-card > .cp-status-badge,
  .cp-contracts-section .cp-card > h3,
  .cp-contracts-section .cp-contract-options,
  .cp-contracts-section .cp-contract-notes {
    grid-column: 1 / -1;
  }

  .cp-sidebar nav a,
  .cp-logout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    color: var(--cp-muted);
    font-size: 0.95rem;
    font-weight: 800;
  }

  .cp-sidebar nav a::before {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    background: currentColor;
    color: var(--cp-primary);
    content: "";
    mask: var(--cp-icon) center / 22px 22px no-repeat;
    -webkit-mask: var(--cp-icon) center / 22px 22px no-repeat;
  }

  .cp-sidebar nav a span {
    min-width: 0;
    flex: 1 1 auto;
  }

  .cp-sidebar nav a[data-cp-icon="dashboard"]::before {
    --cp-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 11.5 12 4l8 7.5V20a1 1 0 0 1-1 1h-5v-6h-4v6H5a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
  }

  .cp-sidebar nav a[data-cp-icon="contracts"]::before {
    --cp-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 2h8l5 5v13a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm7 1.5V8h4.5zM8 12h8v-2H8zm0 4h8v-2H8zm0 4h5v-2H8z'/%3E%3C/svg%3E");
  }

  .cp-sidebar nav a[data-cp-icon="documents"]::before {
    --cp-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 2h10a2 2 0 0 1 2 2v18l-3-2-3 2-3-2-3 2-3-2V4a2 2 0 0 1 2-2Zm2 6h6V6H9zm0 4h6v-2H9zm0 4h4v-2H9z'/%3E%3C/svg%3E");
  }

  .cp-sidebar nav a[data-cp-icon="chat"]::before {
    --cp-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 5a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3H9l-5 5V5Zm4 2v2h8V7zm0 4v2h5v-2z'/%3E%3C/svg%3E");
  }

  .cp-sidebar nav a[data-cp-icon="support"]::before {
    --cp-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2a8 8 0 0 0-8 8v3a3 3 0 0 0 3 3h1v-6H6a6 6 0 1 1 12 0h-2v6h1.2A5.2 5.2 0 0 1 12 21h-2v-2h2a3.2 3.2 0 0 0 3.1-2.4A3 3 0 0 0 20 13v-3a8 8 0 0 0-8-8Z'/%3E%3C/svg%3E");
  }

  .cp-sidebar nav a[data-cp-icon="notices"]::before {
    --cp-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22ZM5 18h14l-2-3V9a5 5 0 0 0-10 0v6z'/%3E%3C/svg%3E");
  }

  .cp-sidebar nav a[data-cp-icon="profile"]::before {
    --cp-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm-8 9a8 8 0 1 1 16 0z'/%3E%3C/svg%3E");
  }

  .cp-sidebar nav a.is-current,
  .cp-sidebar nav a:hover {
    background: #fff;
    color: var(--cp-primary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  .cp-sidebar nav b {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    margin-left: auto;
    border-radius: 999px;
    background: var(--cp-alert);
    color: #fff;
    font-size: 0.76rem;
  }

  .cp-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    padding: 9px 12px;
    border-radius: 999px;
    color: #c2413d;
    font-size: 0.88rem;
    font-weight: 800;
    transition: background 180ms var(--cp-ease), color 180ms var(--cp-ease), transform 180ms var(--cp-ease);
  }

  .cp-logout::before {
    width: 17px;
    height: 17px;
    background: currentColor;
    content: "";
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 3h8a2 2 0 0 1 2 2v3h-2V5H5v14h8v-3h2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm11.6 4.6L21 12l-4.4 4.4-1.4-1.4 2-2H9v-2h8.2l-2-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 3h8a2 2 0 0 1 2 2v3h-2V5H5v14h8v-3h2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm11.6 4.6L21 12l-4.4 4.4-1.4-1.4 2-2H9v-2h8.2l-2-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .cp-logout:hover,
  .cp-logout:focus-visible {
    background: rgba(194, 65, 61, 0.08);
    color: #a92f2b;
    outline: none;
    transform: translateY(-1px);
  }

  .cp-mobile-tabs {
    display: none;
  }

  .cp-main-content {
    width: min(100%, 1100px);
    padding: 36px;
  }

  .cp-page-header {
    height: 120px;
    padding: 14px 36px;
  }

  .cp-hero {
    border-radius: 28px;
  }

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

  .cp-section {
    padding: 28px;
  }

  .cp-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cp-card,
  .cp-list-item {
    padding: 18px;
    border: 1px solid var(--cp-line);
    border-radius: var(--cp-radius-md);
    background: #fff;
  }

  .cp-card + .cp-card,
  .cp-list-item + .cp-list-item {
    padding-top: 18px;
    border-top: 1px solid var(--cp-line);
  }

  .cp-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

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

  .cp-profile-form .cp-readonly,
  .cp-profile-form button {
    grid-column: 1 / -1;
  }

  .cp-meta {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 14px;
  }

  .cp-summary-item {
    grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }
}

@media (max-width: 420px) {
  .cp-login-shell {
    min-height: 100dvh;
    padding: 10px;
  }

  .cp-login-card {
    max-height: calc(100dvh - 20px);
    padding: 22px 18px;
    border-radius: 22px;
  }

  .cp-login-card > .cp-kicker {
    height: 28px;
    margin-bottom: 6px;
  }

  .cp-login-card .cp-muted {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .cp-login-card .cp-form {
    gap: 11px;
    margin-top: 16px;
  }

  .cp-login-card .cp-form input {
    min-height: 46px;
    padding: 11px 13px;
  }

  .cp-login-card .cp-form button {
    min-height: 46px;
  }

  .cp-main-content {
    padding-right: 10px;
    padding-left: 10px;
  }

  .cp-notice-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cp-notice-strip time {
    display: none;
  }

  .cp-section {
    padding: 20px 16px;
  }

  .cp-stat {
    padding: 16px;
  }

  .cp-mobile-tabs {
    padding-right: 6px;
    padding-left: 6px;
  }

  .cp-mobile-tabs a {
    font-size: 0.68rem;
  }
}

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