/* MAN C CONSULTATION — client center */
button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.p-auth-wrap {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    padding: 20px 0 40px;
}

.p-auth {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 40px 100px rgba(7, 26, 43, 0.16);
    border: 1px solid rgba(7, 26, 43, 0.06);
}

.p-auth-visual {
    position: relative;
    padding: 52px 46px;
    background: linear-gradient(160deg, #071a2b, #0a3547 60%, #0b4a4a);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.p-auth-visual::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 65%);
}

.p-kicker {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #2dd4bf;
}

.p-auth-visual h2 {
    position: relative;
    color: #fff;
    z-index: 1;
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    line-height: 1.25;
    margin: 18px 0 16px;
    letter-spacing: -0.03em;
}

.p-auth-visual > p {
    position: relative;
    z-index: 1;
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.62);
}

.p-benefits {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.p-benefits li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.78);
}

.p-benefits li span {
    font-size: 0.62rem;
    color: #2dd4bf;
    letter-spacing: 0.08em;
}

.p-auth-foot {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 26px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.38);
}

.p-auth-card {
    padding: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p-auth-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: #f3ede2;
    margin-bottom: 26px;
}

.p-auth-tabs button {
    flex: 1;
    padding: 10px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 650;
    color: #5c6b77;
    transition: background 0.25s, color 0.25s;
}

.p-auth-tabs button.is-active {
    background: #071a2b;
    color: #fff;
}

.p-alert {
    padding: 11px 14px;
    border-radius: 10px;
    background: rgba(255, 107, 74, 0.08);
    border: 1px solid rgba(255, 107, 74, 0.24);
    color: #b43a20;
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.p-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.p-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.p-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.p-field span {
    font-size: 0.74rem;
    font-weight: 600;
    color: #071a2b;
}

.p-field input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid rgba(7, 26, 43, 0.14);
    border-radius: 9px;
    background: #fbfaf7;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.p-field input:focus {
    border-color: #0f766e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.p-field input:disabled {
    background: #f3ede2;
    color: #8a99a5;
}

.p-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.74rem;
    color: #5c6b77;
    line-height: 1.6;
    cursor: pointer;
}

.p-consent input {
    margin-top: 3px;
    accent-color: #0f766e;
}

.p-consent a {
    color: #0f766e;
    text-decoration: underline;
}

.p-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 650;
    transition: background 0.25s, transform 0.25s, opacity 0.25s;
}

.p-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.p-btn-primary {
    background: #ff6b4a;
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 107, 74, 0.24);
}

.p-btn-primary:hover:not(:disabled) {
    background: #e85535;
    transform: translateY(-1px);
}

.p-btn-dark {
    background: #071a2b;
    color: #fff;
}

.p-btn-ghost {
    border: 1px solid rgba(7, 26, 43, 0.16);
    color: #071a2b;
    font-size: 0.78rem;
}

.p-hint {
    font-size: 0.72rem;
    color: #8a99a5;
    line-height: 1.7;
    text-align: center;
}

.p-hint a {
    color: #0f766e;
    text-decoration: underline;
}

/* ---------- Dashboard ---------- */
.p-dash {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 22px;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    align-items: start;
}

.p-side {
    position: sticky;
    top: 100px;
    padding: 24px;
    border-radius: 20px;
    background: #071a2b;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.p-side-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.p-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.16);
    border: 1px solid rgba(45, 212, 191, 0.35);
    color: #2dd4bf;
    font-size: 0.82rem;
    font-weight: 700;
}

.p-side-profile strong {
    display: block;
    font-size: 0.9rem;
}

.p-side-profile div span {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

.p-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.p-nav button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.62);
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.p-nav button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.p-nav button.is-active {
    background: rgba(45, 212, 191, 0.14);
    color: #fff;
}

.p-nav button b {
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ff6b4a;
    color: #fff;
    font-size: 0.64rem;
}

.p-side-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.p-side-actions button {
    padding: 8px 12px;
    text-align: left;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.p-side-actions button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.p-main {
    min-width: 0;
    padding: 34px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(7, 26, 43, 0.07);
    box-shadow: 0 20px 60px rgba(7, 26, 43, 0.07);
}

.p-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(7, 26, 43, 0.09);
    margin-bottom: 26px;
}

.p-top h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    margin: 8px 0 6px;
    letter-spacing: -0.025em;
}

.p-top p {
    font-size: 0.82rem;
    color: #5c6b77;
}

.p-completion {
    flex-shrink: 0;
    width: 210px;
    padding: 16px;
    border-radius: 14px;
    background: #f3ede2;
}

.p-completion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #5c6b77;
}

.p-completion-head strong {
    color: #0f766e;
    font-size: 0.88rem;
}

.p-progress {
    height: 5px;
    border-radius: 5px;
    background: rgba(7, 26, 43, 0.1);
    margin: 10px 0 10px;
    overflow: hidden;
}

.p-progress i {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #0f766e, #2dd4bf);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.p-completion button {
    font-size: 0.7rem;
    color: #0f766e;
    text-decoration: underline;
}

.p-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: p-fade 0.35s ease;
}

@keyframes p-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

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

.p-stat {
    padding: 18px;
    border-radius: 14px;
    background: #fbfaf7;
    border: 1px solid rgba(7, 26, 43, 0.07);
}

.p-stat > span {
    font-size: 0.68rem;
    color: #8a99a5;
    letter-spacing: 0.04em;
}

.p-stat strong {
    display: block;
    font-size: 1.7rem;
    line-height: 1.2;
    margin: 6px 0 2px;
    letter-spacing: -0.03em;
}

.p-stat strong.p-stat-text {
    font-size: 1.2rem;
    color: #0f766e;
}

.p-stat small {
    font-size: 0.66rem;
    color: #8a99a5;
}

.p-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.p-card {
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(7, 26, 43, 0.09);
}

.p-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.p-card-head h3,
.p-card-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.p-card-head button {
    font-size: 0.7rem;
    color: #0f766e;
}

.p-mini-list {
    display: flex;
    flex-direction: column;
}

.p-mini-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(7, 26, 43, 0.06);
}

.p-mini-list li:last-child {
    border-bottom: 0;
}

.p-mini-list div {
    min-width: 0;
}

.p-mini-list strong {
    display: block;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-mini-list div span {
    display: block;
    font-size: 0.68rem;
    color: #8a99a5;
    margin-top: 1px;
}

.p-status {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.09);
    color: #0f766e;
    font-size: 0.62rem;
    font-weight: 650;
}

.p-status[data-status="won"] { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.p-status[data-status="lost"] { background: rgba(100, 116, 139, 0.12); color: #64748b; }
.p-status[data-status="new"] { background: rgba(255, 107, 74, 0.1); color: #c2410c; }

.p-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #d5dde2;
}

.p-dot.is-unread {
    background: #ff6b4a;
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.14);
}

.p-dot.is-ok {
    background: #2dd4bf;
}

.p-empty {
    padding: 18px 0;
    font-size: 0.8rem;
    color: #8a99a5;
    line-height: 1.7;
}

.p-empty-lg {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 34px;
}

.p-empty-lg h4 {
    font-size: 1rem;
}

.p-empty-lg p {
    font-size: 0.82rem;
    color: #5c6b77;
    line-height: 1.7;
    max-width: 440px;
}

.p-empty-lg .p-btn {
    margin-top: 8px;
}

.p-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 4px;
}

.p-section-head h3 {
    font-size: 1.35rem;
    margin-top: 6px;
}

.p-count {
    font-size: 0.74rem;
    color: #8a99a5;
}

.p-inquiries {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p-inquiry {
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(7, 26, 43, 0.09);
    background: #fbfaf7;
}

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

.p-inquiry-head div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.p-inquiry-head strong {
    font-size: 0.9rem;
}

.p-inquiry-head time {
    font-size: 0.68rem;
    color: #8a99a5;
    flex-shrink: 0;
}

.p-inquiry > p {
    margin: 12px 0;
    font-size: 0.84rem;
    color: #34444f;
    line-height: 1.75;
    white-space: pre-line;
}

.p-inquiry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px dashed rgba(7, 26, 43, 0.12);
    font-size: 0.68rem;
    color: #8a99a5;
}

.p-saved-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.p-saved {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    background: #fbfaf7;
    border: 1px solid rgba(7, 26, 43, 0.07);
}

.p-saved img {
    width: 56px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.p-saved span {
    display: block;
    font-size: 0.6rem;
    color: #0f766e;
}

.p-saved strong {
    display: block;
    font-size: 0.72rem;
    line-height: 1.4;
    margin-top: 2px;
}

.p-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.p-case {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(7, 26, 43, 0.09);
    background: #fff;
}

.p-case > a {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3ede2;
}

.p-case img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.p-case:hover img {
    transform: scale(1.03);
}

.p-case-body {
    padding: 14px;
}

.p-case-body > span {
    font-size: 0.62rem;
    color: #0f766e;
}

.p-case-body h4 {
    font-size: 0.84rem;
    line-height: 1.45;
    margin: 4px 0 4px;
}

.p-case-body small {
    font-size: 0.64rem;
    color: #8a99a5;
}

.p-case-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(7, 26, 43, 0.07);
    font-size: 0.7rem;
}

.p-case-actions a {
    color: #0f766e;
    font-weight: 650;
}

.p-case-actions button {
    color: #8a99a5;
    font-size: 0.68rem;
}

.p-case-actions button:hover {
    color: #b43a20;
}

.p-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p-message {
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(7, 26, 43, 0.09);
    background: #fff;
}

.p-message.is-unread {
    background: #fbfaf7;
    border-color: rgba(255, 107, 74, 0.28);
}

.p-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.p-message-head div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.p-message-head strong {
    font-size: 0.86rem;
}

.p-message-head time {
    font-size: 0.66rem;
    color: #8a99a5;
}

.p-message p {
    margin-top: 8px;
    font-size: 0.82rem;
    color: #34444f;
    line-height: 1.75;
    white-space: pre-line;
}

.p-grid-profile {
    align-items: start;
}

.p-archive {
    background: #071a2b;
    border-color: #071a2b;
    color: #fff;
}

.p-archive h4 {
    font-size: 1.15rem;
    margin: 8px 0 10px;
}

.p-archive > p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
}

.p-archive ul {
    margin: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.p-archive li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.6);
}

.p-archive li strong {
    color: #2dd4bf;
    font-weight: 600;
}

.p-archive .p-btn {
    width: 100%;
    background: #2dd4bf;
    color: #071a2b;
}

.p-archive > small {
    display: block;
    margin-top: 12px;
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

.p-logs {
    display: flex;
    flex-direction: column;
}

.p-logs li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(7, 26, 43, 0.06);
}

.p-logs li:last-child {
    border-bottom: 0;
}

.p-logs div {
    min-width: 0;
    flex: 1;
}

.p-logs strong {
    display: block;
    font-size: 0.78rem;
}

.p-logs div span {
    display: block;
    font-size: 0.66rem;
    color: #8a99a5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.p-logs time {
    font-size: 0.66rem;
    color: #8a99a5;
    flex-shrink: 0;
}

.p-card-title {
    margin-bottom: 14px;
}

.p-toasts {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 600;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(92vw, 400px);
    pointer-events: none;
}

.p-toast {
    padding: 12px 16px;
    border-radius: 10px;
    background: #071a2b;
    color: #fff;
    font-size: 0.82rem;
    box-shadow: 0 16px 40px rgba(7, 26, 43, 0.28);
    animation: p-toast-in 0.3s ease;
}

.p-toast.is-error {
    background: #a83a22;
}

@keyframes p-toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
    .p-dash { grid-template-columns: 1fr; }
    .p-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; }
    .p-side-profile { border-bottom: 0; padding-bottom: 0; }
    .p-nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
    .p-nav button { padding: 8px 12px; }
    .p-side-actions { flex-direction: row; padding-top: 0; border-top: 0; margin-left: auto; }
    .p-side-actions button { padding: 8px; }
}

@media (max-width: 900px) {
    .p-auth { grid-template-columns: 1fr; }
    .p-auth-visual { padding: 34px; }
    .p-auth-visual h2 br { display: none; }
    .p-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
    .p-auth-foot { display: none; }
    .p-auth-card { padding: 34px; }
    .p-stats { grid-template-columns: 1fr 1fr; }
    .p-grid-2 { grid-template-columns: 1fr; }
    .p-saved-grid, .p-case-grid { grid-template-columns: 1fr 1fr; }
    .p-top { flex-direction: column; }
    .p-completion { width: 100%; }
}

@media (max-width: 640px) {
    .p-auth-wrap, .p-dash { width: calc(100% - 28px); }
    .p-auth-visual, .p-auth-card { padding: 26px; }
    .p-benefits { grid-template-columns: 1fr; }
    .p-form-row { grid-template-columns: 1fr; }
    .p-main { padding: 20px; }
    .p-side { flex-direction: column; align-items: stretch; }
    .p-side-profile { padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
    .p-nav { display: grid; grid-template-columns: 1fr 1fr; }
    .p-side-actions { margin-left: 0; justify-content: space-between; }
    .p-stats { grid-template-columns: 1fr 1fr; }
    .p-saved-grid, .p-case-grid { grid-template-columns: 1fr; }
    .p-inquiry-head { flex-direction: column; align-items: flex-start; gap: 4px; }
    .p-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .p-logs time { display: none; }
}
