/* Every icon control shares one size and shape; the close button of a dialog is the same small square. */
#fgu-diary-design{--ctl:40px;--ctl-radius:12px}
#fgu-diary-design[data-theme] :is(.fd-icon-button,#back,.assistant-close,.assistant-menu-toggle,.assistant-send,.header-logout,.lesson-settings-toggle,.teacher-remove,.dialog-close,.schedule-builder-remove){--button-radius:var(--ctl-radius);box-sizing:border-box;width:var(--ctl)!important;height:var(--ctl)!important;min-width:var(--ctl)!important;min-height:var(--ctl)!important;max-width:var(--ctl)!important;padding:0!important;border-radius:var(--ctl-radius)!important;flex:0 0 var(--ctl)}
#fgu-diary-design[data-theme] :is(.fd-icon-button,#back,.assistant-close,.assistant-menu-toggle,.assistant-send,.header-logout,.lesson-settings-toggle,.teacher-remove,.dialog-close) svg{width:20px;height:20px;flex:none}
#fgu-diary-design .header-logout{font-size:0;gap:0}
#fgu-diary-design .header-logout span{display:none}
#fgu-diary-design .dialog-close{position:sticky;top:-10px;display:flex;align-items:center;justify-content:center;margin:-12px -12px -28px auto;z-index:3;cursor:pointer}
#fgu-diary-design .dialog-close svg{stroke-width:2}
#fgu-diary-design :is(.subject-teachers-dialog,.privacy-dialog) h2{padding-right:52px}

/* The primary button keeps its fill and text colour on hover and press. */
#fgu-diary-design[data-theme][data-page]:not([data-page=""]) :is(button,a).fd-primary:is(:hover,:active,.is-pressing):not(:disabled):not([aria-disabled=true]){--button-surface:var(--fd-text);--button-ink:var(--fd-bg);background:var(--fd-text);background-image:none;color:var(--fd-bg);filter:brightness(.9)}
