/* Renkler ve ölçüler */
:root {
    --green: #0e3b2c;
    --green-2: #17513d;
    --gold: #e2c46b;
    --gold-deep: #8a6a1f;
    --ivory: #fbf6ec;
    --paper: #fffdf8;
    --ink: #17201b;
    --muted: #58635d;
    --line: #e8dfcb;
    --line-strong: #d3c5a3;
    --field: #ffffff;
    --ok-bg: #e4efe7;
    --ok-fg: #0f4a33;
    --ok-dot: #1f7a4d;
    --plan-bg: #f6eed6;
    --plan-fg: #5e460e;
    --plan-dot: #8a6a1f;
    --err-bg: #f9e3e0;
    --err-fg: #8a1f17;
    --err-dot: #c0392b;
    --wait-bg: #fcecd6;
    --wait-fg: #6a3a05;
    --wait-dot: #d17d1f;
    --priv-bg: #e9e7f3;
    --priv-fg: #3d376a;
    --priv-dot: #6a5fb0;
    --run-bg: #e6eef4;
    --run-fg: #1d4562;
    --run-dot: #3a7bb0;
    --neutral-bg: #efeadf;
    --neutral-fg: #3f4842;
    --neutral-dot: #8b8f86;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(23,32,27,.05),0 6px 18px rgba(23,32,27,.05);
    --font-head: "Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;
    --font-body: "Segoe UI",system-ui,-apple-system,Roboto,"Noto Sans",Arial,sans-serif;
    --font-mono: Consolas,"Cascadia Mono",Menlo,monospace;
    --tap: 44px;
    --sidebar: 252px;
    --tabbar: 66px;
}

*,*::before,*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font: 16px/1.5 var(--font-body);
    color: var(--ink);
    background: var(--ivory);
}

body.is-locked {
    overflow: hidden;
}

@media (min-width:1100px) {
    body {
        font-size: 17px;
    }

}

h1,h2,h3 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--green);
}

p {
    margin: 0;
}

[hidden] {
    display: none!important;
}

button,input,textarea,select {
    font: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--green);
}

:focus-visible {
    outline: 3px solid var(--gold-deep);
    outline-offset: 2px;
}

.sidebar :focus-visible,.tabbar :focus-visible {
    outline-color: var(--gold);
}

.sr-only {
    position: absolute!important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ic {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: .9rem;
}

.mt {
    margin-top: 14px;
}


/* Düğmeler */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--tap);
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn .ic {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--green);
    color: var(--ivory);
}

.btn-primary:hover {
    background: var(--green-2);
}

.btn-gold {
    background: var(--gold);
    color: var(--ink);
    border-color: #cfae4f;
}

.btn-gold:hover {
    background: #e8cf86;
}

.btn-ghost {
    background: var(--paper);
    color: var(--green);
    border-color: var(--line-strong);
}

.btn-ghost:hover {
    background: #fff;
    border-color: var(--green);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    min-height: 52px;
    padding: 12px 22px;
    font-size: 1.06rem;
}

.btn-sm {
    padding: 8px 14px;
    font-size: .94rem;
}

.btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.icon-btn {
    width: var(--tap);
    height: var(--tap);
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
    flex: none;
}

.icon-btn:hover {
    background: var(--neutral-bg);
}

.icon-btn.bordered {
    border: 1px solid var(--line-strong);
    background: var(--paper);
    font-size: 1.3rem;
    color: var(--green);
}


/* Form alanları */
.field {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.field label,.field-label {
    font-weight: 600;
    font-size: .95rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--field);
}

textarea.input {
    min-height: 120px;
    resize: vertical;
    line-height: 1.45;
}

.input:focus {
    border-color: var(--green);
    outline: 2px solid rgba(14,59,44,.2);
    outline-offset: 0;
}

.hint {
    font-size: .88rem;
    color: var(--muted);
}

.req {
    font-size: .76rem;
    font-weight: 600;
    color: var(--err-fg);
    background: var(--err-bg);
    padding: 1px 6px;
    border-radius: 6px;
    margin-left: 6px;
    vertical-align: 1px;
}

.counter {
    font-size: .88rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.counter.over {
    color: var(--err-fg);
    font-weight: 700;
}


/* Durumlar ve platformlar */
.st-ok {
    --bg: var(--ok-bg);
    --fg: var(--ok-fg);
    --dot: var(--ok-dot);
}

.st-plan {
    --bg: var(--plan-bg);
    --fg: var(--plan-fg);
    --dot: var(--plan-dot);
}

.st-err {
    --bg: var(--err-bg);
    --fg: var(--err-fg);
    --dot: var(--err-dot);
}

.st-wait {
    --bg: var(--wait-bg);
    --fg: var(--wait-fg);
    --dot: var(--wait-dot);
}

.st-priv {
    --bg: var(--priv-bg);
    --fg: var(--priv-fg);
    --dot: var(--priv-dot);
}

.st-run {
    --bg: var(--run-bg);
    --fg: var(--run-fg);
    --dot: var(--run-dot);
}

.st-neutral {
    --bg: var(--neutral-bg);
    --fg: var(--neutral-fg);
    --dot: var(--neutral-dot);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.25;
    background: var(--bg,var(--neutral-bg));
    color: var(--fg,var(--neutral-fg));
    white-space: nowrap;
}

.chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dot,var(--neutral-dot));
    flex: none;
}

.mk {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font: 700 .66rem/1 var(--font-body);
    color: #fff;
    letter-spacing: .02em;
    flex: none;
}

.mk-yt {
    background: #c4302b;
}

.mk-ig {
    background: #b0307a;
}

.mk-fb {
    background: #1b5fc9;
}

.mk-tt {
    background: #111;
    box-shadow: inset 2px 2px 0 #25f4ee,inset -2px -2px 0 #fe2c55;
}

.mk-x {
    background: #000;
}

.pf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.pst {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    padding: 3px 10px 3px 3px;
    border-radius: 999px;
    font-size: .85rem;
    line-height: 1.25;
    background: var(--bg,var(--neutral-bg));
    color: var(--fg,var(--neutral-fg));
}

.pst .mk {
    width: 20px;
    height: 20px;
    font-size: .6rem;
}

.pst em {
    font-style: normal;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pst em::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dot,var(--neutral-dot));
}

.alert {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid;
    font-size: .94rem;
}

.alert-warn {
    background: #fdf1de;
    border-color: #efc98a;
    color: #5a3303;
}

.alert-info {
    background: #eef3f0;
    border-color: #c8dacd;
    color: #173f30;
}

.alert b {
    font-weight: 700;
}

.alert ol,.alert ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.alert li+li {
    margin-top: 4px;
}

.alert .btn {
    margin-top: 8px;
}


/* Giriş */
.login {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.login-wrap {
    width: 100%;
    max-width: 420px;
    display: grid;
    gap: 18px;
    justify-items: center;
}

.login-logo {
    width: 200px;
    height: auto;
}

.login-card {
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 22px;
    box-shadow: var(--shadow);
}

.login-card h1 {
    font-size: 1.7rem;
    text-align: center;
}

.login-card .lead {
    text-align: center;
    color: var(--muted);
    margin: 4px 0 20px;
}

.step-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--gold-deep);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}

.login-form .btn+.btn {
    margin-top: 8px;
}

.otp {
    font-size: 1.6rem;
    letter-spacing: .45em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    padding-left: .45em;
}

.login-note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: .92rem;
    color: var(--muted);
}


/* Uygulama ve gezinme */
.app {
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0,1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--green);
    color: #f3ecd9;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 14px;
}

.brand {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.brand-plate {
    background: var(--ivory);
    border: 1px solid rgba(226,196,107,.6);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    justify-content: center;
}

.brand-plate img {
    width: 150px;
    height: auto;
}

.brand-name {
    font-family: var(--font-head);
    color: var(--gold);
    font-size: 1.15rem;
    text-align: center;
}

.nav-cta {
    margin: 4px 0 12px;
}

.nav {
    display: grid;
    gap: 2px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #f3ecd9;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
}

.nav-btn:hover {
    background: rgba(255,255,255,.07);
}

.nav-btn.is-active {
    background: rgba(226,196,107,.16);
    color: var(--gold);
    box-shadow: inset 3px 0 0 var(--gold);
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(226,196,107,.25);
    font-size: .92rem;
    color: #d6ddd8;
}

.sidebar-foot .who {
    padding: 0 12px 6px;
}

.content {
    min-width: 0;
}

.main {
    min-width: 0;
    padding: 28px 32px 56px;
    overflow-wrap: break-word;
}

.mobile-head,.tabbar {
    display: none;
}


/* Başlıklar ve kartlar */
.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 20px;
}

.page-head h1 {
    font-size: 1.9rem;
}

.page-sub {
    color: var(--muted);
    margin-top: 4px;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.sub-title {
    font-size: 1.05rem;
    margin: 16px 0 10px;
}

.stack {
    display: grid;
    gap: 16px;
}


/* Pano */
.health {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.health-item {
    display: grid;
    gap: 6px;
    align-content: start;
    justify-items: start;
    min-height: var(--tap);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    text-align: left;
    cursor: pointer;
}

.health-item:hover {
    border-color: var(--line-strong);
    background: #fff;
}

.health-extra {
    font-size: .86rem;
    color: var(--muted);
}

.health-extra b {
    color: var(--ink);
}

.dash {
    display: grid;
    grid-template-columns: minmax(0,1fr) 340px;
    gap: 22px;
    align-items: start;
}

.day {
    margin-bottom: 20px;
}

.day-title {
    font-size: 1.15rem;
    margin: 0 0 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.day-title small {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: .9rem;
    color: var(--muted);
}

.post-list {
    display: grid;
    gap: 8px;
}

.post-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    min-height: var(--tap);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    text-align: left;
    cursor: pointer;
}

.post-row:hover {
    border-color: var(--line-strong);
    background: #fff;
}

.post-main {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.post-meta {
    font-size: .88rem;
    color: var(--muted);
}

.post-meta strong {
    color: var(--ink);
    font-size: 1rem;
}

.post-text {
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.now-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-deep);
    font-size: .85rem;
    font-weight: 700;
    padding: 2px 0;
}

.now-line::before,.now-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gold);
}

.art {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg,#2a6b52,#0e3b2c 60%,#2a2414);
}

.art.is-photo {
    background: linear-gradient(160deg,#efe3c2,#cdb57c 55%,#8a6a1f);
}

.art.tone-2 {
    background: linear-gradient(200deg,#3d7a62,#123f30 55%,#1a1a12);
}

.art.is-photo.tone-2 {
    background: linear-gradient(200deg,#f3ead2,#d9c48c 50%,#6f5a26);
}

.art.is-video::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-35%,-50%);
    border-left: 12px solid rgba(251,246,236,.92);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.art.is-photo::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 14%;
    height: 24%;
    background: rgba(14,59,44,.55);
    clip-path: polygon(0 100%,32% 18%,56% 70%,74% 42%,100% 100%);
}

.thumb {
    flex: none;
    width: 44px;
    height: 64px;
    border-radius: 8px;
}

.thumb-lg {
    width: 64px;
    height: 96px;
}

.drafts .draft {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.drafts .draft:first-of-type {
    border-top: 0;
    padding-top: 4px;
}

.draft-info {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.draft-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.attention {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.attention button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    min-height: var(--tap);
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.attention button:hover {
    border-color: var(--line-strong);
}


/* Yeni paylaşım */
.compose {
    max-width: 980px;
    display: grid;
    gap: 16px;
}

.upload-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 220px;
    gap: 20px;
    align-items: start;
}

.dropzone {
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 24px 16px;
    border: 2px dashed var(--line-strong);
    border-radius: 14px;
    background: var(--ivory);
    text-align: center;
}

.dropzone.is-over {
    border-color: var(--green);
    background: #eef4ef;
}

.dropzone:focus-within {
    border-color: var(--green);
}

.dropzone .ic {
    width: 34px;
    height: 34px;
    color: var(--gold-deep);
}

.dz-title {
    font-weight: 600;
}

.file-meta {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    gap: 4px 14px;
    margin: 14px 0 0;
    font-size: .95rem;
}

.file-meta dt {
    color: var(--muted);
}

.file-meta dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.preview {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 8px;
}

.preview figcaption {
    font-size: .85rem;
    color: var(--muted);
}

.phone {
    width: 190px;
    max-width: 100%;
    aspect-ratio: 9/16;
    border: 7px solid #1c2420;
    border-radius: 28px;
    background: linear-gradient(170deg,#2a6b52 0%,#0e3b2c 55%,#1d1a10 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(23,32,27,.25);
}

.phone::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 46px;
    height: 5px;
    border-radius: 5px;
    background: rgba(0,0,0,.45);
    transform: translateX(-50%);
}

.phone-dur {
    position: absolute;
    top: 16px;
    right: 10px;
    font-size: .72rem;
    color: #fff;
    background: rgba(0,0,0,.45);
    padding: 1px 6px;
    border-radius: 6px;
}

.phone-play {
    position: absolute;
    left: 50%;
    top: 40%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(251,246,236,.22);
    transform: translate(-50%,-50%);
}

.phone-play::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 14px;
    border-left: 16px solid var(--ivory);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.phone-side {
    position: absolute;
    right: 8px;
    bottom: 76px;
    display: grid;
    gap: 10px;
}

.phone-side i {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
}

.phone-meta {
    position: absolute;
    left: 10px;
    right: 36px;
    bottom: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.7);
}

.phone-user {
    display: block;
    font-size: .76rem;
    margin-bottom: 2px;
}

.phone-cap {
    font-size: .72rem;
    line-height: 1.35;
    white-space: pre-line;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pf-checks {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(min(100%,260px),1fr));
    gap: 10px;
}

.pf-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: var(--tap);
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.pf-check:has(input:checked) {
    border-color: var(--green);
    background: #f1f6f2;
    box-shadow: inset 0 0 0 1px var(--green);
}

.pf-check input {
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    accent-color: var(--green);
    flex: none;
}

.pf-note {
    display: block;
    font-size: .88rem;
    color: var(--muted);
    margin-top: 3px;
}

.pf-note.warn {
    color: var(--wait-fg);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: var(--tap);
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
}

.tab-btn .mk {
    width: 20px;
    height: 20px;
    font-size: .6rem;
}

.tab-btn[aria-selected="true"] {
    background: var(--green);
    border-color: var(--green);
    color: var(--ivory);
}

.limits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: .84rem;
    color: var(--muted);
}

.limits span {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--neutral-bg);
}

.limits span.over {
    background: var(--err-bg);
    color: var(--err-fg);
    font-weight: 600;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-btn {
    min-height: var(--tap);
    padding: 6px 12px;
    border: 1px dashed var(--gold-deep);
    border-radius: 999px;
    background: var(--paper);
    color: var(--gold-deep);
    font-weight: 600;
    cursor: pointer;
}

.tag-btn.is-used {
    border-style: solid;
    background: var(--plan-bg);
    color: var(--plan-fg);
}

.switch {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--tap);
    cursor: pointer;
    margin-bottom: 10px;
}

.switch input {
    appearance: none;
    -webkit-appearance: none;
    width: 46px;
    height: 28px;
    margin: 0;
    border-radius: 999px;
    background: #c9bfa6;
    position: relative;
    cursor: pointer;
    flex: none;
    transition: background .15s;
}

.switch input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    transition: left .15s;
}

.switch input:checked {
    background: var(--green);
}

.switch input:checked::after {
    left: 21px;
}

.seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    max-width: 100%;
}

.seg label {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 600;
}

.seg input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.seg label:has(input:checked) {
    background: var(--green);
    color: var(--ivory);
}

.seg label:has(input:focus-visible) {
    outline: 3px solid var(--gold-deep);
    outline-offset: 1px;
}

.when-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(140px,220px));
    gap: 0 12px;
    margin-top: 14px;
}

.when-fields p {
    grid-column: 1/-1;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.actions .summary {
    margin-right: auto;
    color: var(--muted);
    font-size: .95rem;
}

.progress-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.progress-item {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.progress-note {
    font-size: .88rem;
    color: var(--muted);
}

.bar {
    height: 8px;
    border-radius: 999px;
    background: #ece4d1;
    overflow: hidden;
}

.bar i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--run-dot);
    transition: width .7s ease;
}

.bar i.is-ok {
    background: var(--ok-dot);
}

.bar i.is-priv {
    background: var(--priv-dot);
}

.bar i.is-wait {
    background: var(--wait-dot);
}

.bar i.is-plan {
    background: var(--plan-dot);
}

.post-detail {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.post-detail p+p {
    margin-top: 6px;
}

.eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.week-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    margin-bottom: 14px;
    font-size: .9rem;
}

.legend .mk {
    width: 20px;
    height: 20px;
    font-size: .6rem;
}


/* Takvim */
.week {
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr));
    gap: 8px;
}

.wday {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.wday.is-today {
    border-color: var(--gold-deep);
    box-shadow: inset 0 3px 0 var(--gold);
}

.wday-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
}

.wday-head b {
    font-family: var(--font-head);
    color: var(--green);
}

.wday-head span {
    font-size: .85rem;
    color: var(--muted);
}

.wday-body {
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 8px;
}

.cal-card {
    display: grid;
    gap: 4px;
    width: 100%;
    min-height: var(--tap);
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--plan-dot);
    border-radius: 8px;
    background: #fff;
    text-align: left;
    font-size: .85rem;
    cursor: pointer;
}

.cal-card:hover {
    border-color: var(--line-strong);
}

.cal-card.is-done {
    border-left-color: var(--ok-dot);
}

.cal-card.has-error {
    border-left-color: var(--err-dot);
}

.cal-card.has-wait {
    border-left-color: var(--wait-dot);
}

.cal-card b {
    font-size: .92rem;
}

.cal-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cal-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.cal-marks .mk {
    width: 20px;
    height: 20px;
    font-size: .58rem;
}

.cal-state {
    color: var(--muted);
    font-size: .8rem;
}

.cal-empty {
    color: var(--muted);
    font-size: .86rem;
    padding: 4px 2px;
}


/* Medya */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.filter {
    min-height: var(--tap);
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    cursor: pointer;
    font-weight: 500;
}

.filter.is-active {
    background: var(--green);
    border-color: var(--green);
    color: var(--ivory);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
    gap: 12px;
}

.media-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.media-thumb {
    aspect-ratio: 4/5;
}

.media-thumb.is-video::after {
    border-left-width: 20px;
    border-top-width: 13px;
    border-bottom-width: 13px;
}

.media-thumb .kind,.media-thumb .dur {
    position: absolute;
    z-index: 1;
    font-size: .76rem;
    padding: 2px 7px;
    border-radius: 6px;
}

.media-thumb .kind {
    left: 6px;
    top: 6px;
    background: var(--ivory);
    color: var(--ink);
    font-weight: 600;
}

.media-thumb .dur {
    right: 6px;
    bottom: 6px;
    background: rgba(0,0,0,.65);
    color: #fff;
}

.media-info {
    display: grid;
    gap: 2px;
    padding: 10px;
    font-size: .86rem;
    color: var(--muted);
    flex: 1;
}

.media-name {
    font-weight: 600;
    font-size: .94rem;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.media-card .btn {
    margin: 0 10px 10px;
}


/* Hesaplar */
.acc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(min(100%,330px),1fr));
    gap: 16px;
    align-items: start;
}

.acc {
    display: grid;
    gap: 12px;
}

.acc[data-state="on"] .when-off,.acc[data-state="off"] .when-on {
    display: none;
}

.acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.acc-head .pf {
    font-size: 1.1rem;
}

.acc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kv {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    gap: 6px 14px;
    margin: 0;
    font-size: .95rem;
}

.kv dt {
    color: var(--muted);
}

.kv dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.credit {
    font-family: var(--font-head);
    font-size: 1.7rem;
    color: var(--green);
    line-height: 1;
}


/* Araçlar */
.tool-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.tool-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.tool-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
}

.tool-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin-top: 6px;
    font-size: .92rem;
    color: var(--muted);
}

.tool-stats b {
    color: var(--ink);
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.code {
    font-family: var(--font-mono);
    font-size: .88rem;
    background: #f3eddf;
    padding: 2px 6px;
    border-radius: 6px;
    word-break: break-all;
}

.key-code {
    display: block;
    padding: 10px 12px;
    margin: 10px 0;
    font-size: .95rem;
}


/* Kayıt */
.log-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.log-item {
    display: grid;
    grid-template-columns: 72px minmax(0,1fr) auto;
    gap: 4px 12px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.log-list .log-item:first-child {
    border-top: 0;
}

.log-time {
    color: var(--muted);
    font-size: .92rem;
    font-variant-numeric: tabular-nums;
}

.log-text b {
    font-weight: 600;
}

.log-sub {
    display: block;
    font-size: .86rem;
    color: var(--muted);
}

.log-day+.log-day {
    margin-top: 18px;
}


/* Ekip */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(min(100%,270px),1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.member-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--green);
    color: var(--gold);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
}

.member-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.invite {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.invite small {
    color: var(--muted);
}


/* Pencereler ve menüler */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(23,32,27,.45);
}

.dialog {
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    background: var(--paper);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.dialog-sm {
    max-width: 420px;
}

.dialog-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
    font-size: 1.3rem;
}

.dialog-body {
    padding: 16px 18px;
}

.dialog-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px 18px;
}

.sheet-links {
    display: grid;
    gap: 6px;
}

.sheet-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    color: var(--ink);
}

.sheet-link .ic {
    color: var(--green);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 80;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--ivory);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    font-size: .95rem;
}

@media (max-width:1100px) {
    .health {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .dash {
        grid-template-columns: minmax(0,1fr);
    }

    .dash-aside {
        order: -1;
    }

}

@media (max-width:860px) {
    .week {
        grid-template-columns: minmax(0,1fr);
    }

    .wday {
        min-height: 0;
    }

}

@media (max-width:860px) {
    .app {
        grid-template-columns: minmax(0,1fr);
    }

    .sidebar {
        display: none;
    }

    .mobile-head {
        display: flex;
        align-items: center;
        gap: 10px;
        position: sticky;
        top: 0;
        z-index: 20;
        padding: 8px 16px;
        background: var(--ivory);
        border-bottom: 1px solid var(--line);
    }

    .mobile-head img {
        width: 58px;
        height: auto;
    }

    .mh-brand {
        font-family: var(--font-head);
        font-weight: 700;
        color: var(--green);
        line-height: 1.1;
    }

    .mh-title {
        font-size: .88rem;
        color: var(--muted);
    }

    .main {
        padding: 18px 16px calc(var(--tabbar) + 32px + env(safe-area-inset-bottom));
    }

    .page-head h1 {
        font-size: 1.6rem;
    }

    .tabbar {
        display: grid;
        grid-template-columns: repeat(5,minmax(0,1fr));
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        background: var(--green);
        box-shadow: 0 -2px 10px rgba(0,0,0,.15);
    }

    .tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 54px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #e9e2cf;
        font-size: .78rem;
        cursor: pointer;
    }

    .tab.is-active {
        color: var(--gold);
    }

    .tab-new .plus {
        display: grid;
        place-items: center;
        width: 42px;
        height: 28px;
        border-radius: 999px;
        background: var(--gold);
        color: var(--ink);
    }

    .tab-new .plus .ic {
        width: 20px;
        height: 20px;
        stroke-width: 2.4;
    }

    .toast {
        bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom));
    }

    .overlay {
        align-items: flex-end;
        padding: 0;
    }

    .dialog {
        max-width: none;
        border-radius: 18px 18px 0 0;
        max-height: 88vh;
        max-height: 88dvh;
        padding-bottom: env(safe-area-inset-bottom);
    }

}

@media (max-width:640px) {
    .upload-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .phone {
        width: 170px;
    }

    .tool-row {
        grid-template-columns: minmax(0,1fr);
    }

    .actions .summary {
        flex-basis: 100%;
    }

    .actions .btn {
        flex: 1 1 140px;
    }

}

@media (max-width:560px) {
    .health {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .log-item {
        grid-template-columns: 60px minmax(0,1fr);
    }

    .log-item .chip {
        grid-column: 2;
        justify-self: start;
    }

    .invite {
        justify-items: start;
    }

    .card {
        padding: 16px 14px;
    }

}

@media (max-width:400px) {
    .media-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .kv {
        grid-template-columns: minmax(0,1fr);
        gap: 0;
    }

    .kv dd {
        margin-bottom: 8px;
    }

}

@media (prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        transition: none!important;
        animation: none!important;
    }

}

/* Uygulama davranışları */
a.nav-btn,
a.tab,
a.health-item,
a.post-text,
a.cal-card {
    text-decoration: none;
}
.flow {
    display: grid;
    gap: 14px;
}
.error {
    color: var(--err-fg);
}
.recovery {
    white-space: pre-wrap;
    font-family: var(--font-mono);
}
progress {
    width: 100%;
    accent-color: var(--green);
}
.phone-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb {
    object-fit: cover;
}
.attention-link {
    display: flex;
    gap: 10px;
    min-height: var(--tap);
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
}
.media-thumb {
    width: 100%;
    object-fit: cover;
}
.share-target {
    scroll-margin-top: 70px;
}
.share-file {
    min-height: 56px;
}
.share-text {
    width: 100%;
    resize: vertical;
}
.share-confirmation[open] {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}
.copy-status {
    color: var(--ok-fg);
}
.tab-btn[aria-pressed="true"] {
    background: var(--green);
    border-color: var(--green);
    color: var(--ivory);
}
/* Telefonun diğer menüsü */
dialog.dialog {
    padding: 0;
    border: 0;
    width: calc(100% - 32px);
}
dialog.dialog::backdrop {
    background: rgba(23, 32, 27, .45);
}
@media (max-width: 860px) {
    dialog.dialog {
        position: fixed;
        inset: auto 0 0;
        margin: 0;
        width: 100%;
    }
}

.setup-qr {
    width: 224px;
    max-width: 100%;
    background: #fff;
}
.setup-qr svg {
    display: block;
    width: 100%;
    height: auto;
}
.setup-key {
    overflow-wrap: anywhere;
}
