html, body { margin: 0; background: #efe8db; }

[data-composition-id] {
    position: relative;
    overflow: hidden;
    background: #efe8db;
    color: #26282d;
    font-family: 'Work Sans', sans-serif;
}

.layer { position: absolute; inset: 0; }

/* A beat: a full ground with its words in the left column of the safe area. */
.beat { position: absolute; inset: 0; }
.col {
    position: absolute;
    left: 64px;
    top: 64px;
    bottom: 64px;
    width: 470px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.col h1 { margin: 0; font-size: 104px; font-weight: 850; line-height: 0.95; letter-spacing: -0.035em; }
.col .line { margin: 24px 0 0; font-size: 36px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.col .label { margin: 0 0 16px; font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.col .caption { margin: 0; font-size: 36px; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }

/* The phone's canvas fills the stage; the screen is placed by a matrix from its top left. */
#phone canvas { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; }
.screen {
    position: absolute;
    left: 0;
    top: 0;
    width: 780px;
    height: 1676px;
    transform-origin: 0 0;
    border-radius: 98px;
    overflow: hidden;
    backface-visibility: hidden;
}

/* The app, drawn at 390 by 838 and zoomed 2x so it stays sharp under the matrix. */
.app {
    zoom: 2;
    position: relative;
    width: 390px;
    height: 838px;
    background: #fbf8f2;
    color: #26282d;
    font-family: 'Work Sans', sans-serif;
}
.status { position: absolute; left: 0; right: 0; top: 0; height: 50px; }
.clock { position: absolute; left: 40px; top: 17px; font-size: 16px; font-weight: 650; }
.island { position: absolute; left: 135px; top: 11px; width: 120px; height: 34px; border-radius: 17px; background: #0e0f12; }
.icons { position: absolute; right: 30px; top: 19px; display: flex; gap: 6px; align-items: flex-end; }
.bars { display: flex; gap: 2px; align-items: flex-end; height: 11px; }
.bars b { width: 3px; border-radius: 1px; background: #26282d; }
.bars b:nth-child(1) { height: 4px; }
.bars b:nth-child(2) { height: 6px; }
.bars b:nth-child(3) { height: 8px; }
.bars b:nth-child(4) { height: 11px; }
.battery { position: relative; width: 23px; height: 11px; border-radius: 3px; border: 1.5px solid #8b857b; box-sizing: border-box; }
.battery b { position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 14px; border-radius: 1px; background: #26282d; }

.today { position: absolute; left: 22px; top: 62px; margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.date { position: absolute; left: 22px; top: 106px; margin: 0; font-size: 15px; font-weight: 500; color: #6e685f; }

.entry { position: absolute; left: 16px; right: 16px; top: 144px; height: 48px; display: flex; gap: 8px; }
.field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    background: #efe8db;
    box-shadow: inset 0 0 0 2px transparent;
    font-size: 17px;
    font-weight: 500;
    white-space: pre;
}
.field.focus { box-shadow: inset 0 0 0 2px #8f84e6; }
.placeholder { color: #8b857b; }
.caret { width: 2px; height: 22px; margin-left: 1px; border-radius: 1px; background: #6a5ee0; }
.add {
    width: 66px;
    border-radius: 14px;
    background: #B1A8FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 650;
}

.list { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; }
.done-head {
    position: absolute;
    left: 22px;
    top: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6e685f;
}
.rows { position: absolute; inset: 0; }
.row {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 0;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    border-radius: 14px;
    background: #fbf8f2;
    box-sizing: border-box;
}
.tick {
    position: relative;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px #b6ad9e;
}
.tick .fill { position: absolute; inset: 0; border-radius: 50%; background: #B1A8FF; }
.tick svg { position: absolute; inset: 0; width: 26px; height: 26px; overflow: visible; }
.tick path { fill: none; stroke: #26282d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.task { position: relative; font-size: 17px; font-weight: 500; white-space: nowrap; }
.strike { position: absolute; left: -2px; right: -2px; top: 53%; height: 1.5px; background: currentColor; transform-origin: 0 50%; }

/* A touch: where the finger lands. */
.touch {
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    z-index: 3;
    border-radius: 50%;
    background: rgba(38, 40, 45, 0.28);
    box-shadow: 0 0 0 2px rgba(38, 40, 45, 0.18);
}
