/* INDRA — professional workspace, responsive and motion-aware. */
:root{--elevation:0 8px 26px #00000018,0 1px 2px #00000016;--elevation-hover:0 14px 36px #00000028;--focus-ring:#b9a4ff}
body{background:radial-gradient(ellipse at 95% 0%,#8b5cf610,transparent 42%),var(--bg);line-height:1.55}
.main,.content,.panel,.form-grid>*{min-width:0}
.content{max-width:1680px;margin:0 auto;width:100%;padding:32px clamp(18px,3vw,48px) 60px}
.topbar{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--bg) 86%,transparent);backdrop-filter:blur(18px);border-bottom:1px solid var(--border)}
.page-head h1{font-size:clamp(25px,2.5vw,35px);font-weight:700;letter-spacing:-.04em;line-height:1.2}
.page-head p{max-width:760px}
.panel,.metric-card,.metric,.plan-card{border:1px solid var(--border);box-shadow:var(--elevation);border-radius:18px;transition:box-shadow .2s,border-color .2s,transform .2s}
.panel{background:var(--surface)}
.metric-card:hover,.metric:hover,.plan-card:hover{transform:translateY(-3px);box-shadow:var(--elevation-hover);border-color:var(--border-2)}
.btn{min-height:40px;padding:10px 16px;border-radius:10px;font-weight:600;transition:transform .16s,box-shadow .16s,background .16s;white-space:normal;text-align:center}
.btn:hover{transform:translateY(-1px);box-shadow:0 5px 16px #00000020}
.btn:active{transform:translateY(0)}.btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.btn.primary{background:linear-gradient(125deg,#8058df,#6952cf);border-color:#9b79ed;color:#fff;box-shadow:0 4px 15px #7452c830}
.btn.compact{min-height:34px;font-size:12px;padding:7px 11px}
.head-actions,.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.toolbar{margin:18px 0}.toolbar input,.toolbar select{max-width:100%}
.module-intro{padding:24px;margin:20px 0}.module-intro h2{font-size:18px;margin-top:0}
.module-intro small,.metric small{display:block;color:var(--muted)}
.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:18px;margin:20px 0}
.metric{background:var(--surface);padding:24px}.metric>span{display:block;color:var(--muted);font-size:12px}
.metric>strong{display:block;font-size:clamp(22px,2vw,30px);letter-spacing:-.03em;margin:7px 0}
.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px}
.plan-card{padding:28px;display:flex;flex-direction:column;align-items:flex-start}.plan-card ul{padding-left:18px;color:var(--muted);flex:1}
.plan-price{font-size:27px;font-weight:700}.plan-price small{font-size:12px;font-weight:400;color:var(--muted)}
.client-form{padding:clamp(18px,2.5vw,32px)}.client-form label{font-size:13px;gap:7px}
input,select,textarea{min-width:0;max-width:100%;border-radius:9px;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:none;border-color:#a18aff;box-shadow:0 0 0 3px #a18aff25}
.client-form input,.client-form select{min-height:44px}.client-form textarea{min-height:100px;resize:vertical}
.form-grid.two{column-gap:22px;row-gap:19px}
.form-section h2{font-size:19px;margin:0 0 18px}
.check-label{display:flex!important;align-items:center;gap:10px;margin:14px 0}
.check-label input{width:18px;min-height:18px;flex-shrink:0;accent-color:#8b6be4}
.invoice-item{border:1px solid var(--border);border-radius:14px;padding:20px;margin:20px 0;background:var(--surface-2)}
.invoice-item legend{padding:0 9px;color:var(--purple);font-weight:600}
.invoice-item [data-remove-item]{margin-top:16px}
.status-pill{display:inline-flex;align-items:center;border:1px solid var(--border-2);border-radius:999px;padding:4px 10px;font-size:11px;background:var(--purple-soft);color:var(--text)}
.table-wrap{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
table{width:100%;border-collapse:collapse}th{font-size:10px;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap}
td{vertical-align:top;font-size:13px;max-width:450px;overflow-wrap:anywhere}td small{display:block;color:var(--muted);font-size:11px;margin-top:5px}
td .btn{margin:3px 2px}tbody tr{transition:background .15s}details{max-width:700px}summary{cursor:pointer;color:var(--purple);font-size:12px;margin:9px 0}
dd{margin:3px 0 14px;overflow-wrap:anywhere}dt{font-size:11px;color:var(--muted);text-transform:uppercase}
.sidebar nav a{transition:background .16s,transform .16s,color .16s}.sidebar nav a:hover{transform:translateX(3px)}.sidebar nav a.active{box-shadow:inset 3px 0 0 #b79cf5;background:linear-gradient(90deg,#a18aff24,#a18aff09)}
.sidebar-footer{margin-top:auto;padding-top:20px}
.sidebar{display:flex;flex-direction:column;height:100dvh;overflow-y:auto;scrollbar-width:thin}
.sidebar nav{padding-bottom:15px}
.signup-card{width:min(470px,100%);padding:36px}.signup-card>img{background:#17121e;padding:12px;border-radius:12px;max-width:100%;margin-bottom:20px}
[hidden]{display:none!important}
html[data-theme="light"]{--elevation:0 6px 24px #44336a09,0 1px 3px #44336a0a;--elevation-hover:0 14px 34px #44336a16}
html[data-theme="light"] .topbar{background:#ffffffdd}html[data-theme="light"] .invoice-item{background:#faf8fe}
html[data-theme="light"] .metric,html[data-theme="light"] .panel{background:#fff}
html[data-theme="light"] .status-pill{color:#62438c;background:#f6f1fd}
@media(min-width:821px){.content{animation:page-enter .3s ease-out}}
@keyframes page-enter{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:1100px) and (min-width:821px){.app-shell{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding-inline:10px}.brand img{max-width:170px}.content{padding-inline:24px}}
@media(max-width:820px){.app-shell{grid-template-columns:minmax(0,1fr)}.topbar{position:sticky}.sidebar{z-index:70}.sidebar-backdrop{z-index:60}.content{padding:24px 16px 40px}.form-grid.two{grid-template-columns:minmax(0,1fr)}.module-intro{padding:19px}.page-head{gap:15px}.metrics-grid{gap:12px}.metric{padding:20px}.panel{border-radius:14px}.invoice-item{padding:16px}.theme-control button{min-height:36px}.client-form input,.client-form select,.client-form textarea,.form-stack input{font-size:16px}}
@media(max-width:560px){.page-head>.btn,.page-head>.head-actions{width:100%}.head-actions .btn{flex:1}.toolbar{align-items:stretch}.toolbar label,.toolbar select,.toolbar input{width:100%}.toolbar .btn{width:100%}.form-actions{flex-wrap:wrap;gap:10px}.form-actions .btn{flex:1}.table-wrap{border-radius:12px}.table-wrap table{min-width:620px}.table-wrap:focus-visible{outline:2px solid var(--focus-ring)}.signup-card{padding:26px}.login-page{min-height:100dvh}.metric-card{padding:20px}.top-actions{gap:4px}.theme-control button{padding:0 5px}.theme-control button .icon{display:none}.user-menu .icon-btn{min-width:36px}.theme-caption{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.module-intro form,.sidebar-backdrop{display:none!important}.table-wrap{overflow:visible}.table-wrap table{min-width:0}.panel,.metric-card{box-shadow:none;break-inside:avoid}.topbar{position:static}}

.feature-choice{display:flex;align-items:center;gap:.65rem;margin:.65rem 0}.feature-choice input{width:auto}.panel dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.65rem}.panel dd{margin:0;text-align:right;font-weight:600}fieldset{min-width:0;border:1px solid var(--border);border-radius:12px;padding:1rem}fieldset label{display:block;margin:.65rem 0}pre{max-width:100%}@media(max-width:600px){.panel dl{grid-template-columns:1fr}.panel dd{text-align:left;margin-bottom:.5rem}}

.client-form .feature-choice{display:flex;flex-direction:row}.client-form .feature-choice input{width:18px;min-height:18px;accent-color:#8b6be4}.client-form>button{margin-top:20px}

/* Compact appearance switch and private profile. */
.theme-switch-control{padding:4px;gap:5px;border-radius:999px;background:var(--surface-2);box-shadow:inset 0 1px 2px #00000012}
.theme-switch-control .theme-switch{position:relative;display:flex;justify-content:space-around;width:76px;height:34px;min-height:34px;padding:0;border-radius:999px;background:var(--surface);border:1px solid var(--border);overflow:hidden}
.theme-switch-control .theme-switch:hover{background:var(--surface)}
.theme-switch-thumb{position:absolute;left:3px;top:3px;width:28px;height:26px;border-radius:50%;background:linear-gradient(145deg,#a677ef,#7651b5);box-shadow:0 2px 7px #7042a64d;transition:transform .22s ease}
.theme-switch[aria-checked="true"] .theme-switch-thumb{transform:translateX(38px)}
.theme-switch-icon{position:relative;z-index:1;display:grid;place-items:center;width:28px;color:var(--muted)}
.theme-switch-control .theme-switch .icon{display:block!important;width:16px;height:16px}
.theme-switch[aria-checked="false"] .theme-switch-icon:nth-of-type(2),.theme-switch[aria-checked="true"] .theme-switch-icon:last-child{color:#fff}
.theme-switch-control .theme-system{border-radius:999px;min-height:32px;height:32px;padding:0 10px;font-size:11px}
.theme-switch-control .theme-system[aria-pressed="true"]{background:var(--purple-soft);color:var(--purple)}
.theme-switch-control button:focus-visible,.profile-link:focus-visible{outline:2px solid var(--purple);outline-offset:3px}
.top-actions .avatar.profile-link{display:grid;padding:0;overflow:hidden;flex-shrink:0;transition:box-shadow .18s,transform .18s}
.profile-link img{width:100%;height:100%;object-fit:cover;display:block}
.profile-link:hover{box-shadow:0 0 0 3px #9e70d533;transform:translateY(-1px)}
.profile-panel{max-width:760px}.profile-heading{display:flex;gap:24px;align-items:center;padding-bottom:24px;border-bottom:1px solid var(--border)}
.profile-photo{width:112px;height:112px;object-fit:cover;border-radius:50%;border:4px solid var(--surface);box-shadow:0 0 0 1px var(--border),0 12px 28px #3e185d25}
.profile-heading h2{margin:0 0 8px}.profile-heading p{overflow-wrap:anywhere}.profile-form{padding:24px 0!important;box-shadow:none}.profile-form label{display:block;margin-bottom:12px}.profile-form input[type="file"]{display:block;width:100%;cursor:pointer}.profile-form input::file-selector-button{padding:8px 12px;border:0;border-radius:7px;background:#7951a8;color:#fff;margin-right:12px;cursor:pointer}.profile-remove{padding-top:12px;border-top:1px solid var(--border)}
@media(max-width:560px){.profile-heading{align-items:flex-start;gap:16px}.profile-photo{width:80px;height:80px}.theme-switch-control .theme-system{padding:0 8px}.profile-form button{width:100%}}
@media(prefers-reduced-motion:reduce){.theme-switch-thumb,.profile-link{transition:none}}
