:root {
    --bg: #f6f5f4; --surface: #fff; --ink: #302c2e; --muted: #7b7476;
    --line: #e8e2e2; --green: #703b44; --green-hover: #592d35; --soft: #f4eeee;
    --radius: 16px; --shadow: 0 3px 16px #392c3004;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a97780; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: -1.1px; font-weight: 650; margin-bottom: 10px; overflow-wrap: anywhere; }
h2 { font-size: 18px; line-height: 1.4; font-weight: 650; letter-spacing: -.3px; margin-bottom: 12px; }
h3 { font-size: 17px; margin-bottom: 8px; font-weight: 600; }
p { color: var(--muted); }
small { font-size: 12px; color: var(--muted); font-weight: 400; }
.app { display: flex; min-height: 100vh; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; background: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.sidebar { width: 244px; flex: 0 0 244px; background: #fdfcfb; border-right: 1px solid var(--line); padding: 32px 18px 22px; height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); font-size: 13px; font-weight: 750; letter-spacing: .4px; padding: 0 8px; margin-bottom: 54px; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-size: 10px; letter-spacing: 0; margin-top: 3px; }
.brand-mark { display: flex; align-items: center; justify-content: center; height: 40px; width: 40px; flex-shrink: 0; border-radius: 11px; background: var(--green); color: #f1f4d9; font-size: 29px; font-family: Georgia, serif; font-style: italic; letter-spacing: -4px; padding-right: 4px; }
.brand-mark span { margin-top: 7px; }
.nav-caption { font-size: 10px; color: #94898b; letter-spacing: 1.6px; font-weight: 650; padding: 0 14px; margin-bottom: 13px; }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; color: #7b6c70; font-weight: 550; }
.sidebar nav a:hover { background: var(--soft); text-decoration: none; }
.sidebar nav a.active { background: var(--green); color: #fff; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; opacity: .8; border-radius: 5px; height: 21px; width: 21px; font-size: 11px; }
.nav-dot { width: 5px; height: 5px; background: #d9b7bf; border-radius: 50%; margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding: 22px 10px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.sidebar-bottom small { display: block; font-size: 11px; }
.brand-mini { border-radius: 50%; width: 34px; height: 34px; background: #eee7e8; display: grid; place-items: center; font-size: 10px; color: var(--green); }
.content { flex: 1; min-width: 0; padding: 0 42px 48px; max-width: 1800px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 80px; border-bottom: 1px solid var(--line); margin-bottom: 34px; font-size: 12px; color: #94888c; gap: 12px; }
.topbar strong { font-weight: 500; color: #76676c; }
.topbar time { color: #897b80; font-variant-numeric: tabular-nums; }
.breadcrumb-divider { margin: 0 10px; color: #c8bfc1; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-header p { margin-bottom: 0; font-size: 13px; }
.eyebrow { display: block; font-size: 10px; letter-spacing: 1.5px; font-weight: 650; color: #957e83; margin-bottom: 9px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 18px; min-height: 43px; border: 1px solid transparent; background: var(--green); color: #fff; font-weight: 600; font-size: 12px; border-radius: 9px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--green-hover); text-decoration: none; }
.btn-secondary { background: white; color: #715e63; border-color: #e3d9dc; }
.btn-secondary:hover { background: var(--soft); }
.btn-ghost { background: transparent; color: #87777c; }
.btn-ghost:hover { background: #f0e8ea; }
.btn-outline { color: var(--green); background: transparent; border: 1px dashed #cebfc2; }
.btn-outline:hover { background: var(--soft); }
.btn-danger { background: #b6423e; }
.btn-danger:hover { background: #9c3431; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card { background: var(--surface); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow); }
.customer-summary { display: grid; grid-template-columns: 1fr 1.2fr 1.1fr; gap: 18px; margin-bottom: 28px; }
.summary-card { display: flex; align-items: center; gap: 18px; border-radius: var(--radius); background: white; border: 1px solid var(--line); padding: 24px; }
.summary-card div > span { display: block; color: var(--muted); font-size: 12px; }
.summary-card strong { display: block; font-weight: 650; font-size: clamp(21px, 2.2vw, 29px); letter-spacing: -.9px; margin-top: 3px; }
.summary-card strong small { font-size: 19px; color: #ac9ca1; }
.summary-symbol { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; background: #f5eff0; border-radius: 12px; color: #956c76; font-size: 17px; }
.summary-note { padding: 23px 24px; background: #eee6e6; border-radius: var(--radius); position: relative; }
.summary-note p { font-size: 15px; color: #6b4c53; margin-bottom: 0; line-height: 1.5; }
.summary-note > span:last-child { position: absolute; right: 23px; bottom: 22px; font-size: 25px; color: #a07a84; }
.table-card { padding: 0; overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; gap: 20px; }
.table-toolbar h2 { font-size: 15px; margin: 0; display: flex; align-items: center; gap: 9px; }
.table-toolbar input { max-width: 320px; font-size: 12px; min-height: 39px; background: #fbf9f9; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; padding: 3px 9px; border-radius: 6px; background: #f3edef; color: #90767e; font-size: 11px; line-height: 1.5; font-weight: 600; vertical-align: middle; letter-spacing: 0; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; font-size: 13px; }
th { background: #faf7f7; color: #96888b; font-weight: 500; white-space: nowrap; border-bottom: 1px solid var(--line); padding: 14px 24px; }
td { padding: 19px 24px; border-bottom: 1px solid #f0ebec; vertical-align: middle; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fdfcfb; }
.table-name { color: #493b40; font-size: 13px; font-weight: 600; }
.table-name small, .cell-secondary { display: block; font-size: 11px; color: #a8989d; margin-top: 4px; }
.cell-secondary { white-space: nowrap; }
.customer-cell { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.customer-cell:hover { text-decoration: none; }
.avatar { display: grid; place-items: center; width: 37px; height: 37px; background: #f1e9eb; color: #987b83; border-radius: 11px; font-size: 15px; font-weight: 500; flex-shrink: 0; text-transform: uppercase; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; color: #705a61; font-weight: 550; }
.amount-badge { display: inline-block; color: #528166; background: #edf6ee; padding: 5px 9px; border-radius: 6px; white-space: nowrap; }
.row-link { font-size: 11px; color: #94757e; white-space: nowrap; }
.record-id { font-weight: 650; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
label, .customer-picker > label { display: flex; flex-direction: column; gap: 8px; color: #725b63; font-weight: 550; font-size: 12px; position: relative; }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #e6dcdf; border-radius: 8px; padding: 11px 13px; color: #46383e; background: white; }
input::placeholder, textarea::placeholder { color: #ad9ea4; font-weight: 400; }
input:focus, select:focus, textarea:focus { border-color: #af8a94; }
textarea { min-height: 96px; resize: vertical; }
.form .full { grid-column: 1 / -1; }
.form > .full:last-child { padding-top: 5px; }
.form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 4px 0; }
.back-link { display: inline-block; color: #9b818b; font-size: 11px; margin: -5px 0 16px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e6dadf; color: #9b7b87; background: #f8f3f5; padding: 6px 10px; border-radius: 7px; font-size: 11px; white-space: nowrap; }
.status-dot { width: 5px; height: 5px; background: #af8999; border-radius: 50%; }
.section-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; margin-bottom: 23px; border-bottom: 1px solid #f0e9ec; }
.step-number { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; background: #f2e9ed; color: #a78995; border-radius: 9px; font-size: 11px; }
.section-heading h2 { margin-bottom: 3px; font-size: 16px; }
.section-heading p { margin-bottom: 0; font-size: 12px; }
.customer-picker { display: flex; flex-direction: column; gap: 8px; }
.customer-picker small { margin-top: 0; }
.customer-search input { background: #fbf8f9; }
.room-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.muted { color: var(--muted); font-size: 12px; margin-right: 6px; }
.chip { background: white; border: 1px solid #e5d8de; color: #927482; font-size: 11px; padding: 7px 12px; border-radius: 7px; cursor: pointer; min-height: 34px; }
.chip:hover { background: #f4e9ee; color: var(--green); }
.field-hint { font-size: 11px; margin: 12px 0; color: #9a8590; }
.room-card { border: 1px solid #e7dce1; border-radius: 12px; background: #fefbfc; padding: 20px; margin: 18px 0 0; min-width: 0; }
.room-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.room-number { display: grid; place-items: center; height: 32px; width: 32px; flex-shrink: 0; border-radius: 9px; background: #f0e3e9; color: #a17d8e; font-size: 12px; }
.room-card-head .eyebrow { font-size: 8px; margin-bottom: 1px; }
.room-card-head h3 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.remove-room { margin-left: auto; font-size: 10px; min-height: 30px; padding: 6px 8px; color: #aa98a0; }
.remove-room span { font-size: 17px; }
.room-grid { display: grid; grid-template-columns: 1.1fr .65fr .65fr 1.3fr; gap: 15px; }
.unit-label { position: absolute; right: 10px; top: 0; color: #a08895; font-size: 10px; font-weight: 400; }
.room-grid label { font-size: 11px; }
.room-grid input { font-size: 12px; background: white; }
.room-empty { text-align: center; padding: 30px 18px; border: 1px dashed #e5d8de; border-radius: 12px; background: #fdfafb; margin-top: 18px; }
.room-empty h3 { font-size: 14px; margin: 12px 0 5px; color: #856774; }
.room-empty p { font-size: 12px; margin-bottom: 0; }
.empty-icon { display: inline-grid; place-items: center; height: 32px; width: 32px; border-radius: 9px; background: #f3e9ee; color: #ab8d9a; font-size: 23px; }
.add-room-button { width: 100%; margin-top: 18px; font-size: 12px; }
.amount-field { max-width: 360px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 14px; }
.section-title h2 { margin: 0; }
.customer-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.customer-info strong { display: block; font-size: 11px; color: #a18b96; font-weight: 500; margin-bottom: 7px; }
.customer-info span { display: block; font-size: 13px; color: #705965; overflow-wrap: anywhere; }
.detail-note { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; font-size: 12px; }
.detail-note strong { font-size: 11px; color: #96808c; font-weight: 500; }
.detail-note p { margin: 7px 0 0; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: white; border-radius: var(--radius); padding: 26px; gap: 22px; }
.summary-strip span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.summary-strip strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.room-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.room-detail { margin-bottom: 0; }
.measurement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 0; }
dt { font-size: 11px; color: #a08996; margin-bottom: 6px; }
dd { margin: 0 0 12px; font-size: 14px; color: #6e5262; overflow-wrap: anywhere; }
.measurement-grid dd { font-size: 20px; font-variant-numeric: tabular-nums; margin: 0; }
.measurement-grid dd span { font-size: 11px; color: #a58c9a; }
.model-detail { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; }
.model-detail dd { font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stat-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 28px; }
.stat-card span { color: var(--muted); font-size: 12px; display: block; }
.stat-card strong { display: block; font-size: 29px; font-weight: 600; margin-top: 12px; }
.alert { padding: 15px 19px; border-radius: 10px; margin-bottom: 24px; font-size: 13px; border: 1px solid transparent; }
.alert-success { background: #eaf5ea; color: #357149; border-color: #d5e6d4; }
.alert-error { background: #fbede9; color: #a14f41; border-color: #ecd8d0; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
@media (min-width: 1600px) { .content { padding-left: 60px; padding-right: 60px; } }
@media (max-width: 1200px) {
    .sidebar { width: 210px; flex-basis: 210px; padding-left: 12px; padding-right: 12px; }
    .brand { gap: 8px; font-size: 11px; }
    .brand small { font-size: 9px; }
    .content { padding-left: 26px; padding-right: 26px; }
    .summary-note { display: none; }
    .customer-summary { grid-template-columns: 1fr 1fr; }
    th, td { padding-left: 18px; padding-right: 18px; }
    .room-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 850px) {
    .app { display: block; }
    .sidebar { position: static; width: 100%; height: auto; padding: 16px 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .brand { margin-bottom: 17px; padding: 0; }
    .brand small { font-size: 10px; }
    .nav-caption, .sidebar-bottom, .nav-dot { display: none; }
    .sidebar nav { flex-direction: row; gap: 5px; padding-bottom: 12px; flex-wrap: wrap; }
    .sidebar nav a { padding: 9px 12px; font-size: 12px; gap: 7px; flex: 1; justify-content: center; }
    .nav-icon { width: 18px; height: 18px; font-size: 10px; }
    .content { padding: 0 22px 30px; }
    .topbar { min-height: 54px; margin-bottom: 25px; }
    .customer-info { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr; }
    .page-header { align-items: flex-start; }
}
@media (max-width: 560px) {
    input, select, textarea, .room-grid input, .table-toolbar input { font-size: 16px; }
    label, .room-grid label, .customer-picker > label { font-size: 12px; }
    h1 { font-size: 27px; }
    .content { padding-left: 16px; padding-right: 16px; }
    .sidebar { padding-left: 16px; padding-right: 16px; }
    .sidebar nav a { padding: 9px 7px; font-size: 11px; }
    .nav-icon { display: none; }
    .page-header { flex-direction: column; gap: 16px; margin-bottom: 22px; }
    .page-header .status-pill { display: none; }
    .customer-summary { gap: 10px; }
    .summary-card { padding: 16px; gap: 0; }
    .summary-symbol { display: none; }
    .summary-card strong { font-size: 20px; letter-spacing: -.7px; }
    .summary-card div > span { font-size: 10px; }
    .table-toolbar { padding: 18px; flex-direction: column; align-items: stretch; gap: 14px; }
    .table-toolbar input { max-width: none; }
    .card { padding: 20px; border-radius: 12px; }
    .table-card { padding: 0; }
    .form { grid-template-columns: 1fr; gap: 19px; }
    .room-grid { gap: 14px; }
    .room-grid label:first-child, .room-grid label:last-child { grid-column: 1 / -1; }
    .room-card { padding: 15px; }
    .room-card-head { gap: 8px; }
    .room-presets { gap: 6px; }
    .room-presets .muted { width: 100%; }
    .chip { font-size: 11px; padding: 7px 10px; }
    .field-hint { line-height: 1.65; }
    .summary-strip { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
    .room-details { grid-template-columns: 1fr; }
    .customer-info { gap: 18px; }
    .actions { gap: 6px; }
    .actions .btn { font-size: 11px; padding: 9px 12px; }
    .form-footer .btn { flex: 1; }
    .section-heading { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }


/* Sade perde kimliği: slogan yerine küçük simge ve kompakt marka adı. */
.brand { gap: 11px; }
.brand-mark { width: 44px; height: 44px; display: block; padding: 0; background: #f3ebeb; border-radius: 12px; }
.brand-wordmark { font-size: 17px; font-weight: 650; letter-spacing: 2px; line-height: 1.15; }
.brand .brand-wordmark small { margin-top: 5px; font-size: 9px; font-weight: 550; letter-spacing: 4px; color: #8b777b; }
.brand-mini { background: #f3ebeb; padding: 3px; border-radius: 10px; }

.collection-actions { flex-wrap: nowrap; }
.collection-actions form { margin: 0; }
.collection-actions .btn { padding: 6px 10px; min-height: 32px; font-size: 11px; }
