:root{color-scheme:light dark}*{box-sizing:border-box}html,body{margin:0;padding:0;min-width:320px;background:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #000000);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.4;overflow-x:hidden}.app{display:flex;flex-direction:column;gap:16px;max-width:720px;margin:0 auto;padding:16px}.title{margin:0;font-size:24px;line-height:1.2;font-weight:600;overflow-wrap:anywhere}.message{margin:0;overflow-wrap:anywhere}.hint{margin:0;color:var(--tg-theme-hint-color, #707579)}.reminders{display:flex;flex-direction:column;gap:16px;touch-action:pan-y}.refresh{text-align:center;font-size:14px}.block{display:flex;flex-direction:column;gap:8px}.section-title{margin:0;font-size:18px;line-height:1.2;font-weight:600}.card{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:12px;background:var(--tg-theme-secondary-bg-color, #f1f1f1)}.card-label{margin:0;overflow-wrap:anywhere}.actions,.snooze,.custom-time{display:flex;flex-wrap:wrap;gap:8px}.custom-time input{min-width:0;padding:8px;border:1px solid var(--tg-theme-hint-color, #707579);border-radius:8px;background:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #000000);font:inherit}.action{flex:1 1 auto;min-width:88px;padding:8px 12px;border:0;border-radius:8px;background:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff);font:inherit;cursor:pointer}.action:disabled{opacity:.6;cursor:default}.action.danger{background:var(--tg-theme-destructive-text-color, #c0392b)}.tabs{display:flex;gap:8px}.tab{flex:1 1 0;padding:10px 12px;border:0;border-radius:10px;background:var(--tg-theme-secondary-bg-color, #f1f1f1);color:var(--tg-theme-text-color, #000000);font:inherit;cursor:pointer}.tab.active{background:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff)}.tasks{display:flex;flex-direction:column;gap:16px;touch-action:pan-y}.summary{display:flex;flex-direction:column;gap:8px}.summary-text{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.memory{display:flex;flex-direction:column;gap:16px;touch-action:pan-y}.card{cursor:pointer}.day-group{display:flex;flex-direction:column;gap:8px}.group-title{margin:0;font-size:16px;line-height:1.2;font-weight:600;color:var(--tg-theme-hint-color, #707579)}.history-toggle{padding:0;border:0;background:none;color:var(--tg-theme-link-color, #2481cc);text-align:left;cursor:pointer}.history-item{margin:0;padding:8px 12px;overflow-wrap:anywhere}.sheet-backdrop{position:fixed;inset:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;background:#0006}.sheet{display:flex;flex-direction:column;gap:8px;width:100%;max-width:720px;max-height:80vh;overflow-y:auto;padding:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0;background:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #000000)}.sheet-title{margin:0 0 4px;font-weight:600;overflow-wrap:anywhere}.sheet-action{padding:12px;border:0;border-radius:10px;background:var(--tg-theme-secondary-bg-color, #f1f1f1);color:var(--tg-theme-text-color, #000000);font:inherit;text-align:left;cursor:pointer}.sheet-action.danger{color:var(--tg-theme-destructive-text-color, #c0392b)}.app-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.icon-button{flex:0 0 auto;min-width:40px;padding:6px 10px;border:0;border-radius:10px;background:var(--tg-theme-secondary-bg-color, #f1f1f1);color:var(--tg-theme-text-color, #000000);font:inherit;font-size:20px;line-height:1;cursor:pointer}.card-tags,.tag-chips,.tag-new,.tag-question,.tag-merge{display:flex;flex-wrap:wrap;gap:8px}.card-tags{margin:0}.tag{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;background:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #000000);font-size:14px;overflow-wrap:anywhere}.tag-remove{padding:0 2px;border:0;background:none;color:var(--tg-theme-hint-color, #707579);font:inherit;line-height:1;cursor:pointer}.search-panel{display:flex;flex-direction:column;gap:16px}.search{display:flex;flex-direction:column;gap:8px}.search-line{display:flex;align-items:center;gap:8px;padding:4px 8px;border:1px solid var(--tg-theme-hint-color, #707579);border-radius:12px;background:var(--tg-theme-bg-color, #ffffff)}.search-input{flex:1 1 120px;min-width:0;padding:6px 0;border:0;background:none;color:var(--tg-theme-text-color, #000000);font:inherit}.search-input:focus{outline:none}.search-reset{padding:0 4px;border:0;background:none;color:var(--tg-theme-hint-color, #707579);font:inherit;line-height:1;cursor:pointer}.search-suggestions{display:flex;flex-direction:column;gap:4px;margin:0;padding:4px;border-radius:12px;background:var(--tg-theme-secondary-bg-color, #f1f1f1);list-style:none}.search-suggestion{width:100%;padding:8px;border:0;border-radius:8px;background:none;color:var(--tg-theme-text-color, #000000);font:inherit;text-align:left;overflow-wrap:anywhere;cursor:pointer}.search-empty{display:flex;flex-direction:column;gap:8px}.search-empty .message{margin:0}.tag-new input,.tag-new select{flex:1 1 120px;min-width:0;padding:8px;border:1px solid var(--tg-theme-hint-color, #707579);border-radius:8px;background:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #000000);font:inherit}.tag-question{flex-direction:column;padding:8px;border-radius:10px;background:var(--tg-theme-secondary-bg-color, #f1f1f1)}.tag-question p{margin:0;overflow-wrap:anywhere}.tags-screen,.tags-header{display:flex;flex-direction:column;gap:16px}.tags-header{flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.tag-row{padding:12px;border:0;color:var(--tg-theme-text-color, #000000);font:inherit;text-align:left;overflow-wrap:anywhere}.tag-merge{flex-direction:column}
