/* ==========================================================================
   Danışan Paneli — İlk Adım tasarım dili
   Krem #f9f4da · Lacivert #242946 · Yeşil #c0ff72 · Pembe #e85a91
   ========================================================================== */

body.portal {
    margin: 0;
    background: var(--aet-cream) !important;
    color: var(--aet-ink) !important;
    font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
    font-size: 14px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.portal h1,
body.portal h2,
body.portal h3,
body.portal h4,
body.portal .p-display {
    font-family: 'Paytone One', Arial, sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: -0.5px;
}

body.portal h1 { line-height: 1.15; }

/* --------------------------------------------------------------------------
   Kabuk
   -------------------------------------------------------------------------- */

.p-shell { display: flex; min-height: 100vh; }

.p-side {
    width: 268px;
    flex: 0 0 268px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px 20px 22px;
    background: var(--aet-cream);
    border-right: 1px solid #c9c5ac;
    overflow-y: auto;
}

.p-brand { display: block; }
.p-brand img { width: 172px; max-width: 100%; height: auto; display: block; }
.p-side-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.p-nav-drawer { display: flex; flex-direction: column; gap: 18px; flex: 1 1 auto; min-height: 0; }
.p-drawer-head,
.p-menu-toggle,
.p-drawer-close,
.p-drawer-backdrop { display: none; }

.p-client {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--aet-line);
    border-radius: 12px;
    background: var(--aet-card);
    box-shadow: var(--aet-shadow);
}
.p-client-avatar {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aet-lime);
    border: 1.5px solid var(--aet-ink);
    font-family: 'Paytone One', Arial, sans-serif;
    font-size: 16px;
    color: var(--aet-ink);
}
.p-client-meta { min-width: 0; }
.p-client-meta strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-client-meta span { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--aet-muted); margin-top: 2px; }

.p-nav { display: flex; flex-direction: column; gap: 3px; }
.p-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--aet-ink);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.p-nav-link svg { width: 17px; height: 17px; flex: none; }
.p-nav-link:hover { background: var(--aet-cream-deep); }
.p-nav-link.active { background: var(--aet-ink); color: #fff; box-shadow: 2px 2px 0 var(--aet-lime); }
.p-nav-link .p-nav-count {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--aet-lime);
    color: var(--aet-ink);
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.p-nav-link.active .p-nav-count { background: var(--aet-lime); color: var(--aet-ink); }

.p-side-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--aet-line);
    font-size: 11px;
    color: var(--aet-muted);
    line-height: 1.6;
}
.p-side-foot a { color: var(--aet-pink-deep); text-decoration: none; }
.p-side-foot a:hover { text-decoration: underline; }

.p-main { flex: 1; min-width: 0; padding: 30px 34px 60px; }
.p-wrap { max-width: 1060px; margin: 0 auto; }
.p-wrap-wide { max-width: 1280px; }

.p-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--aet-line);
    padding-bottom: 14px;
    margin-bottom: 26px;
    font-size: 11px;
    color: var(--aet-muted);
}
.p-topbar .p-crumb strong { color: var(--aet-ink); font-weight: 600; }
.p-top-actions { display: flex; align-items: center; gap: 14px; }
.p-top-actions a { color: var(--aet-pink-deep); text-decoration: none; }
.p-top-actions a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Hero ve kartlar
   -------------------------------------------------------------------------- */

.p-hero {
    position: relative;
    background: var(--aet-lime);
    border: 1.5px solid var(--aet-ink);
    border-radius: 16px;
    box-shadow: 5px 5px 0 var(--aet-ink);
    padding: 28px 30px;
    margin-bottom: 26px;
}
.p-hero .p-eyebrow { color: #3f5c22; }
.p-hero h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 8px 0 8px; color: var(--aet-ink); }
.p-hero p { max-width: 620px; font-size: 13px; line-height: 1.7; color: #3c4a2a; }
.p-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }

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

.p-card {
    background: var(--aet-card);
    border: 1px solid var(--aet-line);
    border-radius: 14px;
    box-shadow: var(--aet-shadow);
    padding: 20px;
    min-width: 0;
}
.p-card.tight { padding: 16px; }
.p-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.p-card-title { font-size: 16px; }
.p-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    color: var(--aet-muted);
}
.p-muted { color: var(--aet-muted); }
.p-small { font-size: 11.5px; }
.p-body-text { font-size: 13px; line-height: 1.7; color: var(--aet-ink); }
.p-body-text p + p { margin-top: 10px; }

.p-stat {
    background: var(--aet-card);
    border: 1px solid var(--aet-line);
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--aet-ink);
    display: block;
    transition: transform .15s ease, box-shadow .15s ease;
}
.p-stat:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #e5dfc4; }
.p-stat .label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--aet-muted); font-weight: 600; }
.p-stat .value { font-family: 'Paytone One', Arial, sans-serif; font-size: 30px; line-height: 1.1; margin-top: 6px; }

/* --------------------------------------------------------------------------
   Buton / rozet / chip
   -------------------------------------------------------------------------- */

.p-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid var(--aet-ink);
    background: var(--aet-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--aet-lime);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
    font-family: inherit;
}
.p-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--aet-lime); }
.p-btn.secondary { background: transparent; color: var(--aet-ink); border-color: var(--aet-line-strong); box-shadow: none; }
.p-btn.secondary:hover { background: var(--aet-cream-deep); transform: none; }
.p-btn.small { min-height: 30px; padding: 5px 10px; font-size: 11px; }
.p-btn.pink { background: var(--aet-pink-deep); border-color: var(--aet-pink-deep); box-shadow: 2px 2px 0 #f6d6e2; }
.p-btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.p-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    background: #e8e2c6;
    color: var(--aet-ink);
}
.p-badge.lime { background: var(--aet-lime); color: var(--aet-ink); border: 1px solid #96b36d; }
.p-badge.pink { background: #f6d6e2; color: var(--aet-pink-deep); }
.p-badge.navy { background: var(--aet-ink); color: #fff; }
.p-badge.amber { background: #fbf0d9; color: #8a5a1f; border: 1px solid #e7d2a6; }
.p-badge.muted { background: #eee9d2; color: var(--aet-muted); }

.p-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.p-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--aet-line-strong);
    background: var(--aet-card);
    color: var(--aet-ink);
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
}
.p-chip:hover { background: var(--aet-cream-deep); }
.p-chip.active { background: var(--aet-ink); color: #fff; border-color: var(--aet-ink); }

.p-empty {
    text-align: center;
    padding: 34px 20px;
    border: 1px dashed var(--aet-line-strong);
    border-radius: 12px;
    color: var(--aet-muted);
    font-size: 12.5px;
    background: rgba(255, 251, 238, .5);
}
.p-empty strong { display: block; color: var(--aet-ink); font-size: 14px; margin-bottom: 4px; font-weight: 600; }

/* --------------------------------------------------------------------------
   Randevular
   -------------------------------------------------------------------------- */

.p-appt {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--aet-line);
    border-radius: 13px;
    background: var(--aet-card);
    box-shadow: var(--aet-shadow);
}
.p-appt + .p-appt { margin-top: 10px; }
.p-appt.is-next { background: #f6ffe6; border-color: #b6d98a; }
.p-datebox {
    flex: none;
    width: 64px;
    text-align: center;
    padding: 8px 4px;
    border: 1.5px solid var(--aet-ink);
    border-radius: 10px;
    background: var(--aet-lime);
    box-shadow: 2px 2px 0 var(--aet-ink);
}
.p-datebox .day { font-family: 'Paytone One', Arial, sans-serif; font-size: 22px; line-height: 1; display: block; }
.p-datebox .month { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; display: block; margin-top: 3px; }
.p-appt-body { min-width: 0; flex: 1; }
.p-appt-body h3 { font-size: 15px; }
.p-appt-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 6px; font-size: 11.5px; color: var(--aet-muted); }
.p-appt-note { margin-top: 9px; font-size: 12px; line-height: 1.65; color: var(--aet-ink); background: #fdf8e6; border: 1px solid #eee7cf; border-radius: 8px; padding: 9px 11px; }
.p-booking-days{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 10px}
.p-booking-days button{flex:0 0 auto;min-width:82px;min-height:64px;padding:8px;border:1px solid #d8d4bf;border-radius:10px;background:var(--aet-card);color:var(--aet-ink);font:inherit;font-size:12px}
.p-booking-days button span{display:block;font-size:10px;margin-top:4px}
.p-booking-days button[aria-pressed="true"]{background:var(--aet-lime);border-color:var(--aet-ink)}
.p-booking-times{border:0;padding:0;min-width:0}.p-booking-times legend{font-size:13px;font-weight:600;margin:0 0 10px}
.p-booking-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}
.p-booking-slots button{min-height:44px;border:1px solid #d8d4bf;border-radius:9px;background:var(--aet-card);color:var(--aet-ink);font:inherit;font-size:12px}
.p-booking-slots button[aria-pressed="true"]{background:var(--aet-ink);color:#fff}
.p-booking-days button:focus-visible,.p-booking-slots button:focus-visible{outline:3px solid var(--aet-pink,#d2477d);outline-offset:2px}
.p-booking-selected{display:grid;gap:6px}.p-booking-selected button{display:flex;justify-content:space-between;gap:10px;align-items:center;min-height:44px;padding:8px 12px;border:1px solid #d8d4bf;border-radius:9px;background:#f3f9e8;color:var(--aet-ink);text-align:left;font:inherit;font-size:12px}
#new-appointment-request{scroll-margin-top:20px}

/* --------------------------------------------------------------------------
   Kaynaklar
   -------------------------------------------------------------------------- */

.p-resource {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--aet-line);
    border-radius: 14px;
    background: var(--aet-card);
    box-shadow: var(--aet-shadow);
    min-width: 0;
}
.p-resource-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-resource-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--aet-ink);
    background: var(--aet-lime);
    font-size: 15px;
    flex: none;
}
.p-resource-icon.pink { background: #f6d6e2; border-color: var(--aet-pink-deep); color: var(--aet-pink-deep); }
.p-resource-icon.navy { background: var(--aet-ink); border-color: var(--aet-ink); color: #fff; }
.p-resource-icon.amber { background: #fbf0d9; border-color: #c99b3f; color: #8a5a1f; }
.p-resource h3 { font-size: 16px; line-height: 1.3; }
.p-resource p { font-size: 12px; line-height: 1.65; color: var(--aet-muted); }
.p-resource .p-resource-note { background: #fdf8e6; border-left: 3px solid var(--aet-pink); padding: 7px 10px; border-radius: 0 7px 7px 0; color: var(--aet-ink); }
.p-resource-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }

/* --------------------------------------------------------------------------
   Ölçekler
   -------------------------------------------------------------------------- */

.p-scale {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid var(--aet-line);
    border-radius: 13px;
    background: var(--aet-card);
    box-shadow: var(--aet-shadow);
}
.p-scale.is-pending { border-color: #b6d98a; background: #fbfff2; }
.p-scale-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.p-scale h3 { font-size: 15.5px; line-height: 1.3; }
.p-scale-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.p-scale-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.p-result {
    border: 1px solid #e9e3ca;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fdf8e6;
}
.p-result + .p-result { margin-top: 8px; }
.p-result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.p-result-score { font-family: 'Paytone One', Arial, sans-serif; font-size: 18px; }
.p-result details { margin-top: 8px; }
.p-result summary { cursor: pointer; font-size: 11px; color: var(--aet-pink-deep); font-weight: 600; }
.p-answer-list { margin-top: 8px; display: grid; gap: 5px; font-size: 11.5px; }
.p-answer-list div { display: flex; gap: 8px; justify-content: space-between; border-bottom: 1px dashed #e9e3ca; padding-bottom: 4px; }
.p-answer-list span:first-child { color: var(--aet-muted); }
.p-answer-list span:last-child { text-align: right; font-weight: 500; }

/* --------------------------------------------------------------------------
   Uygulamalar
   -------------------------------------------------------------------------- */

.p-app {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--aet-line);
    border-radius: 14px;
    background: var(--aet-card);
    box-shadow: var(--aet-shadow);
    min-width: 0;
}
.p-app h3 { font-size: 17px; }
.p-app .p-app-desc { font-size: 12px; line-height: 1.65; color: var(--aet-muted); }
.p-app-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.p-app-progress { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--aet-muted); }

.p-detail-hero {
    background: var(--aet-card);
    border: 1px solid var(--aet-line);
    border-radius: 15px;
    box-shadow: var(--aet-shadow);
    padding: 24px 26px;
    margin-bottom: 18px;
}
.p-detail-hero h1 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 8px; }
.p-detail-hero .p-detail-desc { font-size: 13px; line-height: 1.7; color: var(--aet-muted); max-width: 760px; }
.p-info-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.p-info-box { border: 1px solid #e9e3ca; border-radius: 10px; padding: 12px 14px; background: #fdf8e6; }
.p-info-box .p-eyebrow { margin-bottom: 5px; }
.p-info-box p { font-size: 12px; line-height: 1.65; white-space: pre-line; }

/* --------------------------------------------------------------------------
   Notion benzeri blok editörü
   -------------------------------------------------------------------------- */

.pe-shell {
    background: var(--aet-card);
    border: 1px solid var(--aet-line);
    border-radius: 14px;
    box-shadow: var(--aet-shadow);
    overflow: hidden;
    margin-bottom: 18px;
}
.pe-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--aet-line);
    background: var(--aet-cream-deep);
}
.pe-tool {
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--aet-ink);
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}
.pe-tool:hover { background: var(--aet-card); border-color: var(--aet-line-strong); }
.pe-tool.active { background: var(--aet-ink); color: #fff; }
.pe-tool-sep { width: 1px; height: 20px; background: var(--aet-line-strong); margin: 0 4px; }
.pe-status { margin-left: auto; font-size: 10.5px; color: var(--aet-muted); display: inline-flex; align-items: center; gap: 6px; }
.pe-status .dot { width: 6px; height: 6px; border-radius: 50%; background: #8fd94b; }
.pe-status.saving .dot { background: #e0a83a; }
.pe-status.error .dot { background: var(--aet-pink-deep); }

.pe-blocks { padding: 18px 16px 26px 38px; min-height: 220px; }
@media (max-width: 640px) { .pe-blocks { padding: 14px 10px 22px 32px; } }
.pe-block { display: flex; align-items: flex-start; gap: 4px; position: relative; border-radius: 6px; padding: 2px 0; }
.pe-block:hover { background: #fdf8e6; }
.pe-block-controls {
    position: absolute;
    left: -26px;
    top: 3px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    opacity: 0;
    transition: opacity .12s ease;
    flex: none;
    width: 22px;
}
.pe-block:hover .pe-block-controls,
.pe-block:focus-within .pe-block-controls { opacity: 1; }
.pe-mini {
    width: 18px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #a9a9a0;
    cursor: pointer;
    font-size: 9px;
    border-radius: 3px;
    padding: 0;
}
.pe-mini:hover { background: var(--aet-cream-deep); color: var(--aet-ink); }
.pe-block-main { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 8px; }
.pe-todo {
    width: 17px;
    height: 17px;
    margin-top: 4px;
    flex: none;
    accent-color: var(--aet-ink);
    cursor: pointer;
}
.pe-text {
    flex: 1;
    min-width: 0;
    outline: none;
    font-size: 13.5px;
    line-height: 1.7;
    padding: 3px 4px;
    border-radius: 4px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--aet-ink);
}
.pe-text:empty::before {
    content: attr(data-placeholder);
    color: #a9a9a0;
    pointer-events: none;
}
.pe-block[data-type="heading"] .pe-text { font-family: 'Paytone One', Arial, sans-serif; font-size: 22px; line-height: 1.35; }
.pe-block[data-type="subheading"] .pe-text { font-weight: 600; font-size: 15.5px; }
.pe-block[data-type="quote"] { border-left: 3px solid var(--aet-pink); padding-left: 10px; margin: 4px 0; }
.pe-block[data-type="quote"] .pe-text { font-style: italic; color: #4b4f66; }
.pe-block[data-type="divider"] { padding: 8px 0; }
.pe-block[data-type="divider"] .pe-text { display: none; }
.pe-block[data-type="divider"] .pe-block-main::after { content: ''; flex: 1; height: 1px; background: var(--aet-line-strong); }
.pe-block[data-type="bullet"] .pe-text::before { content: '•'; margin-right: 7px; color: var(--aet-pink-deep); }
.pe-block[data-type="numbered"] .pe-text::before { content: attr(data-number) '.'; margin-right: 7px; color: var(--aet-pink-deep); font-weight: 600; }
.pe-block[data-type="todo"] .pe-text.is-checked { text-decoration: line-through; color: #8b8d9c; }
.pe-footer { border-top: 1px solid var(--aet-line); padding: 10px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 10.5px; color: var(--aet-muted); }
.pe-add {
    border: 1px dashed var(--aet-line-strong);
    background: transparent;
    color: var(--aet-muted);
    border-radius: 7px;
    padding: 6px 11px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    margin-top: 6px;
}
.pe-add:hover { background: var(--aet-cream-deep); color: var(--aet-ink); }

/* --------------------------------------------------------------------------
   Dosyalar
   -------------------------------------------------------------------------- */

.p-upload {
    border: 1.5px dashed var(--aet-line-strong);
    border-radius: 12px;
    padding: 18px;
    background: #fdf8e6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.p-upload-info { min-width: 0; }
.p-upload-info strong { display: block; font-size: 13px; font-weight: 600; }
.p-upload-info span { display: block; font-size: 11px; color: var(--aet-muted); margin-top: 2px; }
.p-upload-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.p-upload input[type="file"] { font-size: 11px; max-width: 230px; }
.p-file {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border: 1px solid var(--aet-line);
    border-radius: 10px;
    background: var(--aet-card);
}
.p-file + .p-file { margin-top: 7px; }
.p-file-icon { font-size: 18px; flex: none; }
.p-file-meta { min-width: 0; flex: 1; }
.p-file-meta strong { display: block; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-file-meta span { display: block; font-size: 10.5px; color: var(--aet-muted); margin-top: 2px; }
.p-file-actions { display: flex; align-items: center; gap: 6px; flex: none; }

/* --------------------------------------------------------------------------
   Uyarılar / boş ekran
   -------------------------------------------------------------------------- */

.p-alert {
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 12.5px;
    line-height: 1.65;
    margin-bottom: 18px;
    border: 1px solid #e7d2a6;
    background: #fbf0d9;
    color: #6b4715;
}
.p-alert.pink { border-color: #efc3d4; background: #fbe9ef; color: var(--aet-pink-deep); }
.p-alert.lime { border-color: #c9dfa4; background: var(--aet-lime-soft); color: #3f5c22; }

.p-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.p-auth-card {
    max-width: 460px;
    width: 100%;
    background: var(--aet-card);
    border: 1.5px solid var(--aet-ink);
    border-radius: 18px;
    box-shadow: 6px 6px 0 var(--aet-ink);
    padding: 34px 32px;
    text-align: center;
}
.p-auth-card img { width: 170px; margin: 0 auto 18px; display: block; }
.p-auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.p-auth-card p { font-size: 12.5px; line-height: 1.7; color: var(--aet-muted); }
.p-auth-form {
    display: grid;
    gap: 14px;
    max-width: 380px;
    margin: 24px auto 0;
    text-align: left;
}
.p-auth-field { display: grid; gap: 7px; }
.p-auth-form label { font-size: 12.5px; font-weight: 600; color: var(--aet-ink); }
.p-auth-input-wrap { position: relative; }
.p-auth-input-wrap > svg {
    position: absolute;
    z-index: 1;
    left: 14px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--aet-muted);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.p-auth-form input[type="email"] {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    border: 1.5px solid var(--aet-line-strong);
    border-radius: 10px;
    background: #fffdf5;
    color: var(--aet-ink);
    padding: 11px 14px 11px 44px;
    font: inherit;
    font-size: 14px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.p-auth-form input[type="email"]::placeholder { color: #9293a0; }
.p-auth-input-wrap:hover input[type="email"] { border-color: #8b8d9c; }
.p-auth-form input[type="email"]:focus-visible {
    outline: 3px solid rgba(232, 90, 145, .22);
    outline-offset: 2px;
    border-color: var(--aet-pink-deep);
    background: #fff;
}
.p-auth-input-wrap:focus-within > svg { stroke: var(--aet-pink-deep); }
.p-auth-field-help { font-size: 10.5px; line-height: 1.55; color: var(--aet-muted); }
.p-auth-form .p-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    justify-content: space-between;
    padding-inline: 18px 15px;
}
.p-auth-form .p-btn > svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.p-auth-card .p-alert { margin: 20px 0 0; text-align: left; }
.p-auth-note { margin-top: 18px; font-size: 11px !important; }
.p-auth-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 4px auto 16px;
    border: 1.5px solid var(--aet-ink);
    border-radius: 50%;
    background: var(--aet-lime);
    color: var(--aet-ink);
    font-size: 24px;
    font-weight: 600;
}
.p-auth-back { display: inline-block; margin-top: 18px; color: var(--aet-pink-deep); font-size: 12px; font-weight: 600; }

/* --------------------------------------------------------------------------
   Duyarlı
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .p-shell { flex-direction: column; }
    .p-side {
        position: sticky;
        top: 0;
        z-index: 40;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        flex: none;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid #c9c5ac;
        padding: 12px 16px;
        gap: 0;
        overflow: visible;
    }
    .p-side.drawer-open {
        z-index: 130;
    }
    .p-brand img { width: 140px; }
    .p-menu-toggle,
    .p-drawer-close {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--aet-ink);
        border-radius: 10px;
        background: var(--aet-card);
        color: var(--aet-ink);
        cursor: pointer;
        box-shadow: 2px 2px 0 var(--aet-lime);
        touch-action: manipulation;
    }
    .p-menu-toggle:hover,
    .p-drawer-close:hover { background: var(--aet-lime-soft); }
    .p-menu-dot {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--aet-pink);
        border: 1.5px solid var(--aet-card);
    }
    .p-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 110;
        background: rgba(36, 41, 70, 0.5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    .p-drawer-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .p-nav-drawer {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 120;
        width: min(304px, 86vw);
        height: 100dvh;
        background: var(--aet-cream);
        border-right: 1px solid #c9c5ac;
        box-shadow: 12px 0 32px rgba(36, 41, 70, 0.18);
        padding: 16px 18px calc(24px + env(safe-area-inset-bottom));
        gap: 14px;
        overflow-y: auto;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s ease;
    }
    .p-nav-drawer.is-open {
        transform: translateX(0);
        visibility: visible;
    }
    .p-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--aet-line);
    }
    .p-drawer-title {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--aet-muted);
    }
    .p-client { display: flex; }
    .p-nav { flex-direction: column; gap: 6px; }
    .p-nav-link { min-height: 44px; padding: 10px 12px; font-size: 13px; }
    .p-nav-link svg { width: 17px; height: 17px; }
    .p-nav-link .p-nav-count { display: inline-flex; }
    .p-side-foot { display: block; margin-top: auto; padding-top: 14px; }
    .p-main { padding: 20px 16px 44px; }
    .p-grid-3, .p-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .p-topbar { flex-wrap: wrap; }
    body.portal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    body.portal select,
    body.portal textarea { font-size: 16px; }
    .p-grid-2, .p-grid-3, .p-grid-4 { grid-template-columns: 1fr; }
    .p-hero { padding: 22px 20px; box-shadow: 4px 4px 0 var(--aet-ink); }
    .p-info-strip { grid-template-columns: 1fr; }
    .p-appt { gap: 12px; padding: 13px; }
    .p-datebox { width: 54px; }
    .p-upload { flex-direction: column; align-items: flex-start; }
    .p-upload input[type="file"] { max-width: 100%; }
    .pe-toolbar { gap: 3px; }
    .pe-tool { font-size: 10px; padding: 4px 7px; }
    .pe-status { width: 100%; margin-left: 0; }
    .p-auth { padding: 16px; }
    .p-auth-card { padding: 28px 20px; box-shadow: 4px 4px 0 var(--aet-ink); }
}
.p-request-form label{display:grid;gap:5px;font-size:12px;font-weight:600;color:var(--aet-navy)}
.p-request-form input,.p-request-form textarea{box-sizing:border-box;width:100%;min-height:42px;padding:9px 11px;border:1px solid #b5b7bd;border-radius:9px;background:#fff;font:inherit}
.p-request-form :focus-visible{outline:3px solid var(--aet-pink-deep);outline-offset:2px}
#appointment-request-error{color:#8a173c;font-size:12px;font-weight:600}

/* Mobil danışan kabuğu; masaüstündeki mevcut kenar menüsü korunur. */
.p-skip { position: fixed; top: -100px; left: 12px; z-index: 1000; background: var(--aet-ink); color: white; padding: 12px; }
.p-skip:focus { top: 12px; }
body.portal :focus-visible { outline: 3px solid var(--aet-pink-deep); outline-offset: 3px; }
.p-bottom-nav { display: none; }
.p-work-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.p-work-tabs a { display: inline-flex; align-items: center; padding: 10px 12px; min-height: 44px; color: var(--aet-ink); border: 1px solid var(--aet-line); border-radius: 10px; text-decoration: none; }
.p-work-tabs a[aria-current] { background: var(--aet-ink); color: white; }
.p-quick-actions { margin-bottom: 22px; }
.p-action { display: grid; gap: 8px; color: var(--aet-ink); text-decoration: none; }
.p-action span { font-size: 12px; color: var(--aet-muted); }
.p-card, .p-app, .p-hero { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 900px) {
    .p-main { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
    .p-bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); background: var(--aet-card); border-top: 1px solid var(--aet-line-strong); }
    .p-bottom-nav a { display: grid; place-items: center; text-align: center; min-width: 0; min-height: 48px; padding: 5px 2px; color: var(--aet-ink); font-size: 11px; font-weight: 600; text-decoration: none; border-radius: 9px; }
    .p-bottom-nav a[aria-current] { background: var(--aet-lime); box-shadow: inset 0 0 0 1px var(--aet-ink); }
    .p-btn, .p-btn.small { min-height: 44px; }
    #portal-toast { bottom: calc(82px + env(safe-area-inset-bottom)) !important; }
    html { scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    body.portal *, body.portal *::before, body.portal *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Günlük ve adımlı BDT, mevcut AET tokenlarıyla. */
.wb { margin-bottom: 22px; }
.wb [hidden] { display: none !important; }
.wb-stack, #wb-content { display: grid; gap: 16px; }
.wb p, .wb-history p { line-height: 1.7; margin: 0; }
.wb h2, .wb h3 { margin: 0; }
.wb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wb .p-btn, .wb-history .p-btn { min-height: 44px; }
.wb-field { display: grid; gap: 8px; margin-top: 16px; }
.wb input, .wb select, .wb textarea { width: 100%; min-width: 0; max-width: 100%; min-height: 48px; box-sizing: border-box; font: inherit; color: var(--aet-ink); background: var(--aet-card); border: 1px solid var(--aet-line-strong); border-radius: 10px; padding: 12px; }
.wb textarea { resize: vertical; line-height: 1.7; }
.wb-selected { font-family: 'Paytone One', Arial, sans-serif; font-size: 26px; }
.wb-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 8px; }
.wb-scores button { min-height: 48px; font: inherit; font-weight: 600; color: var(--aet-ink); background: var(--aet-card); border: 1px solid var(--aet-line-strong); border-radius: 10px; cursor: pointer; }
.wb-scores button[aria-pressed="true"], .wb-actions button[aria-pressed="true"] { background: var(--aet-lime); border-color: var(--aet-ink); }
.wb summary, .wb-history summary { min-height: 44px; cursor: pointer; padding: 12px 0; }
.wb-privacy { padding: 12px; border-left: 3px solid var(--aet-pink-deep); background: var(--aet-cream); }
#wb-error { color: var(--aet-pink-deep); font-weight: 600; margin-bottom: 16px; }
.wb-feedback { min-height: 24px; }
.wb-history { margin-top: 24px; min-width: 0; }
.wb-chart { display: flex; gap: 4px; overflow-x: auto; padding: 8px 4px; max-width: 100%; }
.wb-chart button, .wb-missing { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; flex: 1 0 44px; min-width: 44px; min-height: 144px; gap: 8px; padding: 6px 2px; border-radius: 8px; }
.wb-chart button { font: inherit; color: var(--aet-ink); background: transparent; border: 1px solid var(--aet-line); cursor: pointer; }
.wb-chart button[aria-pressed="true"] { background: var(--aet-lime-soft); border-color: var(--aet-ink); }
.wb-bar-area { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.wb-bar { display: block; width: 18px; background: var(--aet-ink); border-radius: 4px 4px 0 0; }
.wb-missing { color: var(--aet-muted); }
.wb-day-detail { display: grid; gap: 12px; }
.wb-records { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wb-records a { display: grid; gap: 8px; padding: 14px; min-height: 44px; border: 1px solid var(--aet-line); border-radius: 10px; color: var(--aet-ink); text-decoration: none; }
.wb-records span { font-size: 12px; color: var(--aet-muted); }
.wb-review { margin: 0; overflow-wrap: anywhere; }
.wb-review dt { font-weight: 600; margin-top: 18px; }
.wb-review dd { margin: 8px 0 0; white-space: pre-wrap; line-height: 1.7; }
.wb progress { width: 100%; height: 8px; accent-color: var(--aet-ink); }
