:root{
  --green:#087a46;
  --green2:#0a8f52;
  --ink:#292d32;
  --muted:#66706a;
  --line:#eceef0;
  --bg:#f4f5f7;
  --danger:#b44b47;
  --soft-green:#e5f6ed;
  --soft-danger:#fceceb;
}
body{font-size:14px;letter-spacing:.01em}
.brand-logo{display:block;width:58px;height:58px;flex:0 0 auto;object-fit:contain;filter:drop-shadow(0 8px 16px #13271e18)}
.brand-logo.small{width:56px;height:56px}
.login-brand,.sidebar-brand{align-items:center}
.sidebar-brand{gap:12px}
.sidebar-brand strong{font-size:16px;line-height:1.3}
.sidebar-brand span{margin-top:2px}
button,.primary-button,.secondary-button,.compact-button,.text-button,.panel-head button,.module-card button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  white-space:nowrap;
}
.module-card.clickable-card{white-space:normal}
button{min-width:0;min-height:36px}
.primary-button,.secondary-button{height:42px;padding:0 20px;border-radius:var(--button-radius);font-weight:650}
.primary-button{color:var(--action-primary-text,#fff);background:var(--action-primary-bg,var(--green));box-shadow:var(--button-shadow)}
.secondary-button{margin-top:0;border-color:#b7dfca;color:var(--action-secondary-text,var(--green));background:var(--action-secondary-bg,var(--card))}
#restartLogin{display:flex;margin:22px auto 0}
.compact-button{height:36px;min-height:36px;border-radius:10px;padding:0 14px}
.text-button,.panel-head button,.module-card button{min-height:32px;padding:0 4px}
.sidebar nav button{justify-content:flex-start;line-height:1.2}
.sidebar-footer button{min-height:28px;padding:0}
.stat-card,.panel,.list-card,.module-card,.task-editor{border-radius:14px;box-shadow:var(--card-shadow)}
.module-card{background:var(--card)}
.badge{align-items:center;min-height:24px;padding:0 9px;border-radius:8px;color:#285f46;background:var(--soft-green)}
.shared-editor input,.shared-editor select,.shared-editor textarea,.compact-toolbar input,.compact-toolbar select,.task-toolbar select,.task-toolbar input,.task-editor input,.task-editor textarea,.task-editor select{
  border-color:transparent;
  border-radius:10px;
  background:var(--input-bg);
}
.shared-editor input:focus,.shared-editor select:focus,.shared-editor textarea:focus,.compact-toolbar input:focus,.compact-toolbar select:focus{
  border-color:#7bd1a6;
  box-shadow:0 0 0 3px #19b66e16;
}
.task-editor-actions{align-items:center}
.task-editor-actions .secondary-button{display:inline-flex}
.danger-text{color:var(--danger)!important}
.operation-card{min-height:176px}
.card-actions{align-items:center;flex-wrap:wrap}
.card-actions .primary-button,.card-actions .secondary-button,.card-actions .text-button,.card-actions a,.inline-actions button,.web-task-actions button{margin-top:0}
.page-head-actions{align-items:center;flex-wrap:wrap;gap:var(--control-gap)}
.empty-state button{margin:10px auto 0}
.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green)}
.habit-members{display:flex;margin-top:12px;flex-direction:column;border-top:1px solid var(--line)}
.feature-member-row,.feature-compact-row{display:flex;min-height:54px;padding:10px 0;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line)}
.feature-member-row:first-child,.feature-compact-row:first-child{border-top:0}
.feature-member-row span,.feature-compact-row span{display:block;margin-top:2px;color:var(--muted);font-size:12px}
.feature-compact-row time{color:var(--muted);font-size:12px;white-space:nowrap}
.feature-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.feature-split>.panel{margin-top:0}
.agreement-copy{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:5;white-space:pre-line}
.large-textarea{min-height:260px!important}
@media(max-width:760px){.brand-logo{width:50px;height:50px}.brand-logo.small{width:50px;height:50px}}
@media(max-width:960px){.feature-split{grid-template-columns:1fr}}
