/* Layerpop v0.15.0 - the account button in the header, the sign-in page and the account page (bright site style). */

[hidden] { display: none !important; }

/* ---------- Header account button ---------- */
.acct-slot { display: inline-flex; align-items: center; }
.acct-in { font-weight: 700; }
.acct { position: relative; }
.acct-btn { display: inline-flex; padding: 0; border: 0; background: none; border-radius: 999px; cursor: pointer; }
.acct-face { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--night); background: var(--sun) center / cover no-repeat; color: var(--night); font: 800 15px/1 var(--display); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 230px; background: #FFFFFF; color: var(--night); border: 2px solid var(--night); border-radius: 14px; box-shadow: 5px 5px 0 var(--night); padding: 6px; display: flex; flex-direction: column; }
.acct-menu[hidden] { display: none; }
.acct-head { padding: 10px 12px 12px; border-bottom: 1px solid #E3E5EA; margin-bottom: 4px; display: flex; flex-direction: column; }
.acct-head span { font-size: 13px; color: #5B6170; font-weight: 500; }
.acct-item { display: block; text-align: left; padding: 10px 12px; border-radius: 9px; border: 0; background: none; color: var(--night); font-weight: 600; font-size: 15px; text-decoration: none; min-height: 0 !important; cursor: pointer; }
.acct-item:hover, .acct-item:focus-visible { background: #F1F2F5; color: var(--cobalt); }

/* ---------- Sign-in page ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 20px 0 80px; }
.auth-card { width: 100%; max-width: 460px; background: #FFFFFF; border: var(--edge); border-radius: 22px; box-shadow: 8px 8px 0 var(--night); padding: clamp(22px, 4vw, 38px); }
.auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-form h1 { margin: 0; font: 800 clamp(28px, 4vw, 36px)/1.05 var(--display); letter-spacing: -0.02em; }
.auth-sub { margin: 6px 0 14px; color: #4A5060; font-size: 16px; }
.auth-form label, .ac-form label { font-weight: 700; font-size: 14px; margin-top: 8px; }
.auth-form input, .ac-form input { min-height: 48px; padding: 0 14px; border: 2px solid var(--night); border-radius: 12px; background: #FFFFFF; color: var(--night); font-size: 16px; }
.auth-form input:focus, .ac-form input:focus { outline: 3px solid var(--sun); outline-offset: 1px; }
.auth-form .btn { margin-top: 16px; width: 100%; cursor: pointer; }
.auth-note, .ac-note { margin: 2px 0 0; font-size: 13px; color: #5B6170; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 14px 0 0; font-size: 15px; }
.auth-links a { font-weight: 700; color: var(--cobalt); }
.auth-msg, .ac-msg { margin: 14px 0 0; font-weight: 600; font-size: 15px; min-height: 1em; }
.auth-msg[data-kind=bad], .ac-msg[data-kind=bad] { color: #C8281E; }
.auth-msg[data-kind=good], .ac-msg[data-kind=good] { color: #0E7A55; }
.auth-msg:empty, .ac-msg:empty { display: none; }

/* ---------- Account page ---------- */
.ac-main { padding: 10px 0 70px; }
.ac-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.ac-head h1 { margin: 0; font: 800 clamp(34px, 5vw, 52px)/1 var(--display); letter-spacing: -0.03em; }
.ac-plan { border: var(--edge); border-radius: 999px; padding: 4px 14px; background: var(--mint); font-weight: 700; font-size: 14px; }
.ac-head .btn { margin-left: auto; }
.ac-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 22px; }
.ac-tabs a { text-decoration: none; font-weight: 700; padding: 8px 16px; border: var(--edge); border-radius: 999px; background: #FFFFFF; }
.ac-tabs a[aria-current=page] { background: var(--night); color: #FFFFFF; }
.ac-hint { margin: 0 0 18px; color: #4A5060; max-width: 46em; }
.ac-work { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.ac-card { border: var(--edge); border-radius: 16px; overflow: hidden; background: #FFFFFF; box-shadow: 5px 5px 0 var(--night); transition: transform .15s, box-shadow .15s; }
.ac-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--night); }
.ac-thumb { display: block; aspect-ratio: 16 / 9; background: var(--night) center / cover no-repeat; }
.ac-cardrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.ac-cardrow div { display: flex; flex-direction: column; }
.ac-cardrow small { color: #5B6170; font-size: 13px; }
.ac-x { border: 0; background: none; font-size: 22px; line-height: 1; color: #5B6170; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.ac-x:hover { background: #F1F2F5; color: #C8281E; }
.ac-empty { font-weight: 600; }
.ac-empty a { color: var(--cobalt); }
.ac-brand { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 20px; }
.ac-box { background: #FFFFFF; border: var(--edge); border-radius: 18px; padding: 20px 22px; }
.ac-box h2 { margin: 0 0 14px; font: 800 20px/1.1 var(--display); }
.ac-colours { display: flex; flex-direction: column; gap: 10px; }
.ac-colour { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.ac-colour input { width: 46px; height: 36px; padding: 2px; border: 2px solid var(--night); border-radius: 10px; background: #FFFFFF; cursor: pointer; }
.ac-font { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-weight: 600; }
.ac-fontbtn { flex: 1; max-width: 230px; min-height: 44px; text-align: left; border: 2px solid var(--night); border-radius: 12px; background: #FFFFFF; color: var(--night); font-size: 17px; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-logo { display: flex; align-items: center; justify-content: center; height: 130px; border-radius: 12px; margin-bottom: 12px; color: #8A90A0; font-weight: 600;
  background: repeating-conic-gradient(#E9EBEF 0 25%, #FFFFFF 0 50%) 0 0 / 18px 18px; border: 1px solid #E3E5EA; }
.ac-logo img { max-width: 86%; max-height: 104px; object-fit: contain; }
.ac-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 15px; cursor: pointer; }
.ac-pane[data-pane=profile] { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.ac-pane[hidden] { display: none !important; }
.ac-form { display: flex; flex-direction: column; gap: 6px; }
.ac-form .btn { align-self: flex-start; margin-top: 14px; }
.ac-static { margin: 0; font-weight: 600; }
.ac-danger { border-color: #C8281E; }
.auth-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts-box { margin-top: 12px; min-height: 0; }
.ts-box[hidden] { display: none; }

/* v0.20.0: the Plan tab */
.ac-planbox { background: #FFFFFF; border: var(--edge); border-radius: 20px; padding: 24px 26px; box-shadow: 6px 6px 0 var(--night); margin-bottom: 22px; }
.ac-planhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ac-planhead h2 { margin: 0; font: 800 34px/1 var(--display); }
.ac-pill { border: 2px solid var(--night); border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 800; }
.ac-pill:empty { display: none; }
.ac-pill.good { background: var(--mint); }
.ac-pill.bad { background: var(--coral); color: #FFFFFF; }
.ac-planbox .ac-hint { margin: 12px 0; }
.ac-meter { height: 12px; border: 2px solid var(--night); border-radius: 999px; overflow: hidden; background: #F1F2F5; max-width: 420px; margin-bottom: 12px; }
.ac-meter i { display: block; height: 100%; background: var(--cobalt); }
.ac-planlist { margin: 0 0 18px; padding-left: 20px; }
.ac-planlist li { margin: 4px 0; }
#plSwitch { margin-bottom: 18px; }
